1 /***************************************************************************
4 begin : Sam Apr 7 11:44:20 CEST 2001
5 copyright : (C) 2001 by Stefan Winter
6 email : mail@stefan-winter.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #include <kcmdlineargs.h>
19 #include <kaboutdata.h>
21 #include <kapplication.h>
23 #include "kwifimanager.h"
25 #define VERSION "4_0_0"
28 static const char description
[] = I18N_NOOP ( "KWiFiManager - Wireless LAN Manager for KDE" );
31 static KCmdLineOptions options
[] = {
36 main ( int argc
, char *argv
[] )
38 KAboutData
aboutData ( "kwifimanager", I18N_NOOP ( "KWiFiManager" ), VERSION
,
39 description
, KAboutData::License_GPL
, "(c) 2001-05, Stefan Winter" );
40 aboutData
.addAuthor ( "Stefan Winter", I18N_NOOP ( "Original Author and Maintainer" ), "swinter@kde.org" );
41 aboutData
.addCredit ( "Helge Deller", I18N_NOOP ( "Lots of Fixes and Optimizations, added Session Management" ),
44 KCmdLineArgs::init ( argc
, argv
, &aboutData
);
45 KCmdLineArgs::addCmdLineOptions ( options
); // Add our own options.
46 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs ( );
51 if ( app
.isSessionRestored ( ) )
53 RESTORE ( KWiFiManagerApp ( 0, "mainWindow" ) );
54 KWiFiManagerApp
*kwifimanager
= new KWiFiManagerApp ();
55 if ( kwifimanager
&& kwifimanager
->startDocked ( ) )
56 kwifimanager
->hide ( );
60 KWiFiManagerApp
*kwifimanager
= new KWiFiManagerApp ( 0, "mainWindow" );
61 kwifimanager
->show ( );