summaryrefslogtreecommitdiffstats
path: root/kradio3/src/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:23:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:23:26 +0000
commitae364d9bed0589bf1a22cd5f530c563462379e3e (patch)
treee32727e2664e7ce68d0d30270afa040320ae35a1 /kradio3/src/main.cpp
downloadtderadio-ae364d9bed0589bf1a22cd5f530c563462379e3e.tar.gz
tderadio-ae364d9bed0589bf1a22cd5f530c563462379e3e.zip
Added old KDE3 version of kradio
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1094417 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/src/main.cpp')
-rw-r--r--kradio3/src/main.cpp73
1 files changed, 73 insertions, 0 deletions
diff --git a/kradio3/src/main.cpp b/kradio3/src/main.cpp
new file mode 100644
index 0000000..443d6bf
--- /dev/null
+++ b/kradio3/src/main.cpp
@@ -0,0 +1,73 @@
+/***************************************************************************
+ main.cpp - description
+ -------------------
+ begin : Don M�r 8 21:57:17 CET 2001
+ copyright : (C) 2001-2005 by Ernst Martin Witte, Frank Schwanz
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include <kcmdlineargs.h>
+#include <kaboutdata.h>
+#include <klocale.h>
+
+#include "include/kradioversion.h"
+#include "include/kradioapp.h"
+
+#include "include/debug-profiler.h"
+
+static KCmdLineOptions options[] =
+{
+ { 0, 0, 0 }
+};
+
+int main(int argc, char *argv[])
+{
+ BlockProfiler profiler_about("main::aboutdata");
+
+ KAboutData aboutData("kradio", I18N_NOOP("KRadio"),
+ KRADIO_VERSION, "KRadio", KAboutData::License_GPL,
+ "(c) 2002-2005 Martin Witte, Klas Kalass, Frank Schwanz",
+ 0,
+ "http://sourceforge.net/projects/kradio",
+ 0);
+ aboutData.addAuthor("Martin Witte", I18N_NOOP("rewrite for 0.3.0, recording, lirc support, alarms, misc"), "[email protected]");
+ aboutData.addAuthor("Marcus Camen", I18N_NOOP("Buildsystem, Standards Conformance, Cleanups"), "[email protected]");
+ aboutData.addAuthor("Klas Kalass", I18N_NOOP("Miscellaneous"), "[email protected]");
+ aboutData.addAuthor("Frank Schwanz", I18N_NOOP("idea, first basic application"), "[email protected]");
+
+ KCmdLineArgs::init( argc, argv, &aboutData );
+ KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
+
+ profiler_about.stop();
+
+ BlockProfiler profiler_kradioapp("main::KRadioApp");
+
+ KRadioApp a;
+
+ profiler_kradioapp.stop();
+ BlockProfiler profiler_restore("main::restore");
+
+ a.restoreState(KGlobal::config());
+ a.startPlugins();
+
+ profiler_restore.stop();
+
+ int ret = a.exec();
+
+ global_time_profiler.printData();
+ global_mem_profiler.printData();
+
+ IErrorLogClient::staticLogDebug("normal shutdown");
+
+ return ret;
+}
+