1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
//
// C++ Implementation: main
//
// Description:
//
//
// Author: Christian Hubinger <[email protected]>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <tqwidget.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();
}
|