summaryrefslogtreecommitdiffstats
path: root/KMFSysTray/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:04:17 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:04:17 +0000
commitc3b707c026782768bd8c0e6ae6b574fe8a36802d (patch)
tree5ca6782031b1546c788290cc0b95524369ff01ea /KMFSysTray/main.cpp
downloadkmyfirewall-c3b707c026782768bd8c0e6ae6b574fe8a36802d.tar.gz
kmyfirewall-c3b707c026782768bd8c0e6ae6b574fe8a36802d.zip
Added old abandoned KDE3 version of kmyfirewall
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmyfirewall@1091559 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'KMFSysTray/main.cpp')
-rw-r--r--KMFSysTray/main.cpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/KMFSysTray/main.cpp b/KMFSysTray/main.cpp
new file mode 100644
index 0000000..fe24ce8
--- /dev/null
+++ b/KMFSysTray/main.cpp
@@ -0,0 +1,57 @@
+//
+// C++ Implementation: main
+//
+// Description:
+//
+//
+// Author: Christian Hubinger <e9806056@student.tuwien.ac.at>, (C) 2005
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+
+#include <qwidget.h>
+
+#include <kapplication.h>
+#include <kaboutapplication.h>
+#include <kcmdlineargs.h>
+#include <kaboutdata.h>
+#include <klocale.h>
+#include <kconfig.h>
+#include <kdebug.h>
+
+
+#include "../kmyfirewall/version.h"
+#include "../kmyfirewall/kmfwidgets/kmfiptdocview.h"
+
+
+#include "kmfsystray.h"
+#include "kmfiptwatcher.h"
+#include "details.h"
+
+
+static const char description[] = I18N_NOOP( "KMFSysTray - IPTables monitor" );
+
+
+static KCmdLineOptions options[] = {
+ { "+[URL]", I18N_NOOP( "Files/URLs to Open." ), 0 },
+ { "--test ", I18N_NOOP("A short option which takes an argument."), 0 },
+ { 0, 0, 0}
+};
+
+int main( int argc, char *argv[] ) {
+ KAboutData aboutData( "kmfsystray", I18N_NOOP( "KMFSysTray" ),
+ KMYFIREWALL_VERSION, description, KAboutData::License_GPL,
+ COPYRIGHT_STRING, 0, 0, "e9806056@student.tuwien.ac.at" );
+ aboutData.addAuthor( "Christian Hubinger", 0, "e9806056@student.tuwien.ac.at" );
+ aboutData.setHomepage( "http://kmyfirewall.sourceforge.net" );
+ KCmdLineArgs::init( argc, argv, &aboutData );
+ KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
+
+ KApplication a;
+ // Details *mainWid = new Details( 0 );
+
+ KMFIPTDocView *mainWid = new KMFIPTDocView( 0 );
+ KMFSysTray *st = new KMFSysTray( mainWid );
+ return a.exec();
+}