Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

main.cpp

00001 /*! 00002 @class Main 00003 @brief Enthaelt die main Funktion von BluePhone. 00004 @author Thomas Gemperli, <bluephone@gemperli.net> 00005 @version 1.0 00006 @date 2004-05-07 00007 @par This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License. 00009 @file main.cpp 00010 */ 00011 00012 00013 #include <kapplication.h> 00014 #include <kaboutdata.h> 00015 #include <kcmdlineargs.h> 00016 #include <klocale.h> 00017 #include "bluephone.h" 00018 00019 00020 static const char description[] = 00021 I18N_NOOP("BluePhone - A tool to run a Sony Ericsson mobile phone from a PC."); 00022 00023 static const char version[] = "1.0"; 00024 00025 static KCmdLineOptions options[] = 00026 { 00027 // { "+[URL]", I18N_NOOP( "Document to open." ), 0 }, 00028 KCmdLineLastOption 00029 }; 00030 00031 int main(int argc, char **argv) 00032 { 00033 KAboutData about("bluephone", I18N_NOOP("BluePhone"), version, description, 00034 KAboutData::License_GPL, "(C) 2004 Thomas Gemperli", 0, "http://www.gemperli.net", "bluephone@gemperli.net"); 00035 about.addAuthor( "Thomas Gemperli", 0, "bluephone@gemperli.net" ); 00036 KCmdLineArgs::init(argc, argv, &about); 00037 KCmdLineArgs::addCmdLineOptions( options ); 00038 KApplication app; 00039 BluePhone *mainWin = 0; 00040 00041 mainWin = new BluePhone(); 00042 app.setMainWidget( mainWin ); 00043 mainWin->show(); 00044 00045 /* mainWin has WDestructiveClose flag by default, so it will delete itself. */ 00046 return app.exec(); 00047 } 00048

Generated on Tue Aug 17 14:42:27 2004 for BluePhone by doxygen 1.3.7