summaryrefslogtreecommitdiffstats
path: root/tdelirc/irkick/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdelirc/irkick/main.cpp')
-rw-r--r--tdelirc/irkick/main.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/tdelirc/irkick/main.cpp b/tdelirc/irkick/main.cpp
new file mode 100644
index 0000000..5d5a791
--- /dev/null
+++ b/tdelirc/irkick/main.cpp
@@ -0,0 +1,39 @@
+/***************************************************************************
+ main.cpp - Implementation of the main window
+ -------------------
+ copyright : (C) 2002 by Gav Wood
+***************************************************************************/
+
+// This program is free software.
+
+#include <tdelocale.h>
+#include <tdecmdlineargs.h>
+#include <twin.h>
+#include <tdeaboutdata.h>
+#include <tdeglobal.h>
+#include <kdebug.h>
+#include <kuniqueapplication.h>
+
+#include "irkick.h"
+
+extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
+{
+ TDEAboutData *aboutData = new TDEAboutData("irkick", I18N_NOOP("IRKick"), VERSION, I18N_NOOP("The TDE Infrared Remote Control Server"), TDEAboutData::License_GPL, "(c) 2003, Gav Wood", 0, 0, "[email protected]");
+ aboutData->addAuthor("Gav Wood", I18N_NOOP("Author"), "[email protected]", "http://www.indigoarchive.net/gav/");
+ aboutData->addCredit("Malte Starostik", I18N_NOOP("Original LIRC interface code"), "[email protected]");
+ aboutData->addCredit("Dirk Ziegelmeier", I18N_NOOP("Ideas, concept code"), "[email protected]");
+ aboutData->addCredit("Zsolt Rizsanyi", I18N_NOOP("Random patches"), "[email protected]");
+ aboutData->addCredit("Antonio Larrosa JimĂ©nez", I18N_NOOP("Ideas"), "[email protected]");
+
+ TDECmdLineArgs::init( argc, argv, aboutData );
+ KUniqueApplication::addCmdLineOptions();
+ KUniqueApplication app;
+ TDEGlobal::locale()->insertCatalogue( "tdelirc" );
+ app.disableSessionManagement();
+ IRKick *theIRKick = new IRKick("IRKick");
+
+ int ret = app.exec();
+ delete theIRKick;
+ return ret;
+}