/[projects]/misc/serverspy/main.cpp
ViewVC logotype

Contents of /misc/serverspy/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download)
Wed Sep 16 20:13:41 2009 UTC (14 years, 8 months ago) by torben
File size: 1094 byte(s)
Added some old code for storage/ reference


1 /*
2 * Copyright (C) 2003 Torben Nielsen <torben.nielsen@rocketmail.com>
3 */
4
5 #include "serverspy.h"
6 #include <qapplication.h>
7 /*
8 #include <kaboutdata.h>
9 #include <kcmdlineargs.h>
10 #include <klocale.h>
11 */
12
13 static const char description[] =
14 "A KDE KPart Application";
15
16 static const char version[] = "0.1";
17 /*
18 static KCmdLineOptions options[] =
19 {
20 // { "+[URL]", I18N_NOOP( "Document to open." ), 0 },
21 KCmdLineLastOption
22 };
23 */
24
25 int main(int argc, char **argv)
26 {
27 /*
28 KAboutData about("serverspy", I18N_NOOP("serverspy"), version, description,
29 KAboutData::License_GPL, "(C) 2003 Torben Nielsen", 0, 0, "torben.nielsen@rocketmail.com");
30 about.addAuthor( "Torben Nielsen", 0, "torben.nielsen@rocketmail.com" );
31 KCmdLineArgs::init(argc, argv, &about);
32 KCmdLineArgs::addCmdLineOptions( options );
33 */
34 QApplication app(argc, argv);
35 Serverspy *mainWin = 0;
36
37 mainWin = new Serverspy();
38 app.setMainWidget( mainWin );
39 mainWin->show();
40
41 // mainWin has WDestructiveClose flag by default, so it will delete itself.
42 return app.exec();
43 }

  ViewVC Help
Powered by ViewVC 1.1.20