summaryrefslogtreecommitdiffstats
path: root/KMFSysTray/main.cpp
diff options
context:
space:
mode:
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 <[email protected]>, (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, "[email protected]" );
+ aboutData.addAuthor( "Christian Hubinger", 0, "[email protected]" );
+ 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();
+}