summaryrefslogtreecommitdiffstats
path: root/korn/main.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /korn/main.cpp
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
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/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/main.cpp')
-rw-r--r--korn/main.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/korn/main.cpp b/korn/main.cpp
new file mode 100644
index 000000000..97a79441c
--- /dev/null
+++ b/korn/main.cpp
@@ -0,0 +1,53 @@
+/*
+ * (C) 1999, 2000 Sirtaj Singh Kang <taj@kde.org>
+ * (C) 2000 Rik Hemsley <rik@kde.org>
+ */
+
+#include"kornapp.h"
+#include <kaboutdata.h>
+#include <kcmdlineargs.h>
+#include <klocale.h>
+
+#include"kornshell.h"
+
+static const char description[] = I18N_NOOP("KDE mail checker");
+static const char version[] = "0.4";
+
+
+int main(int argc, char *argv[])
+{
+ KAboutData aboutData(argv[0], I18N_NOOP("Korn"),
+ version, description, KAboutData::License_GPL,
+ I18N_NOOP("(c) 1999-2004, The Korn Developers"));
+ aboutData.addAuthor("Sirtaj Singh Kang",0, "taj@kde.org");
+ aboutData.addAuthor("Cristian Tibirna",0, "tibirna@kde.org");
+ aboutData.addAuthor("Kurt Granroth",0, "granroth@kde.org");
+ aboutData.addAuthor("Rik Hemsley",0, "rik@kde.org");
+ aboutData.addAuthor("Fixes by Jörg Habenicht",0, "j.habenicht@europemail.com");
+ aboutData.addAuthor("Preview by Heiner Eichmann",0, "h.eichmann@gmx.de");
+ aboutData.addAuthor("Mart Kelder",0,"mart@kelder31.nl");
+
+ KCmdLineArgs::init( argc, argv, &aboutData );
+ KUniqueApplication::addCmdLineOptions();
+
+ if( !KUniqueApplication::start() ) {
+ // Already running. Should pop up the preferences dialog
+ return 0;
+ }
+
+ KornApp *app = new KornApp();
+ KornShell *korn = new KornShell( 0, "shell" );
+ app->setShell( korn );
+
+ //app->enableSessionManagement( true );
+
+ //if( korn->init() ) {
+ korn->show();
+ app->exec();
+ //}
+
+ delete korn;
+ delete app;
+
+ return 0;
+}