Fix some error
[kdeaccessibility.git] / ksayit / src / main.cpp
blob907541b514cf9270343abb8d17856da32bb3ef4e
1 /***************************************************************************
2 main.cpp - description
3 -------------------
4 begin : Son Aug 10 13:26:57 EDT 2003
5 copyright : (C) 2003 by Robert Vogl
6 email : voglrobe@saphir
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
16 ***************************************************************************/
18 #include <stdlib.h>
20 // QT includes
22 // KDE includes
23 #include <kapplication.h>
24 #include <kcmdlineargs.h>
25 #include <kaboutdata.h>
26 #include <kglobal.h>
27 #include <klocale.h>
28 #include <arts/kartsdispatcher.h>
29 #include <dcopclient.h>
31 // App specific includes
32 #include "version.h"
33 #include "ksayit.h"
34 //Added by qt3to4:
35 #include <Q3CString>
37 static const char *description =
38 I18N_NOOP("KSayIt - A Text To Speech frontend for KDE");
39 // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
42 int main(int argc, char *argv[])
45 KAboutData aboutData( "ksayit", I18N_NOOP("KSayIt"),
46 KSAYIT_VERSION, description, KAboutData::License_GPL,
47 "(c) 1996 - 2005, Robert Vogl", 0, 0, "voglrobe@web.de");
48 aboutData.addAuthor("Robert Vogl",0, "voglrobe@web.de");
49 KCmdLineArgs::init( argc, argv, &aboutData );
51 KApplication app;
53 // setup MCOP
54 KArtsDispatcher dispatcher;
56 // setup DCOP
57 Q3CString appID = app.dcopClient()->registerAs( app.name(), false );
59 KSayItApp *ksayit = new KSayItApp(0, "MainWindow", 0, appID);
60 // ksayit->hide();
61 ksayit->show();
63 return app.exec();