File: main.cpp

package info (click to toggle)
kwirelessmonitor 0.5.91-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,180 kB
  • ctags: 267
  • sloc: sh: 8,939; perl: 2,717; cpp: 1,910; makefile: 108
file content (55 lines) | stat: -rw-r--r-- 1,897 bytes parent folder | download | duplicates (3)
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
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <kuniqueapplication.h>
#include <kglobal.h>
#include <khelpmenu.h>
#include <kpopupmenu.h>

#include "kwirelessmonitor.h"
#include "timerthread.h"

static const char *description =
	I18N_NOOP("KWirelessMonitor");
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
	
	
static KCmdLineOptions options[] =
{
  { 0, 0, 0 }
  // INSERT YOUR COMMANDLINE OPTIONS HERE
};

int main(int argc, char *argv[])
{

    KAboutData aboutData( "kwirelessmonitor", I18N_NOOP("KWirelessMonitor"),
            VERSION, description, KAboutData::License_GPL,
            "(c) 2004, An-Cheng Huang", 0, 0, "pach@cs.cmu.edu");
    aboutData.addAuthor("An-Cheng Huang",0, "pach@cs.cmu.edu");
    KCmdLineArgs::init( argc, argv, &aboutData );
    KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
    KUniqueApplication::addCmdLineOptions();

    KUniqueApplication a;
    KWirelessMonitor *kwirelessmonitor = new KWirelessMonitor();
    a.setMainWidget(kwirelessmonitor);
    TimerThread *tthread = new TimerThread(kwirelessmonitor);
    kwirelessmonitor->setTimerThread(tthread);

    kwirelessmonitor->setScaledContents(false);
    kwirelessmonitor->show();

    tthread->start();

    return a.exec();
}