From 2bda8f7717adf28da4af0d34fb82f63d2868c31d Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdelirc/irkick/main.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 kdelirc/irkick/main.cpp (limited to 'kdelirc/irkick/main.cpp') diff --git a/kdelirc/irkick/main.cpp b/kdelirc/irkick/main.cpp new file mode 100644 index 0000000..956d000 --- /dev/null +++ b/kdelirc/irkick/main.cpp @@ -0,0 +1,39 @@ +/*************************************************************************** + main.cpp - Implementation of the main window + ------------------- + copyright : (C) 2002 by Gav Wood + email : gav@kde.org +***************************************************************************/ + +// This program is free software. + +#include +#include +#include +#include +#include +#include +#include + +#include "irkick.h" + +extern "C" KDE_EXPORT int kdemain(int argc, char *argv[]) +{ + KAboutData *aboutData = new KAboutData("irkick", I18N_NOOP("IRKick"), VERSION, I18N_NOOP("The KDE Infrared Remote Control Server"), KAboutData::License_GPL, "(c) 2003, Gav Wood", 0, 0, "gav@kde.org"); + aboutData->addAuthor("Gav Wood", I18N_NOOP("Author"), "gav@kde.org", "http://www.indigoarchive.net/gav/"); + aboutData->addCredit("Malte Starostik", I18N_NOOP("Original LIRC interface code"), "malte.starostik@t-online.de"); + aboutData->addCredit("Dirk Ziegelmeier", I18N_NOOP("Ideas, concept code"), "dirk@ziegelmeier.net"); + aboutData->addCredit("Zsolt Rizsanyi", I18N_NOOP("Random patches"), "rizsanyi@myrealbox.com"); + aboutData->addCredit("Antonio Larrosa Jiménez", I18N_NOOP("Ideas"), "larrosa@kde.org"); + + KCmdLineArgs::init( argc, argv, aboutData ); + KUniqueApplication::addCmdLineOptions(); + KUniqueApplication app; + KGlobal::locale()->insertCatalogue( "kdelirc" ); + app.disableSessionManagement(); + IRKick *theIRKick = new IRKick("IRKick"); + + int ret = app.exec(); + delete theIRKick; + return ret; +} -- cgit v1.2.3