1 /***************************************************************************
4 begin : Mon Aug 26 15:41:23 CEST 2002
5 copyright : (C) 2002 by Gunnar Schmi Dt
6 email : kmouth@schmi-dt.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 ***************************************************************************/
19 #include <kcmdlineargs.h>
20 #include <kaboutdata.h>
22 #include <kuniqueapplication.h>
27 static const char description
[] =
28 I18N_NOOP("A type-and-say front end for speech synthesizers");
29 // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
32 int main(int argc
, char *argv
[])
35 KAboutData
aboutData( "kmouth", 0, ki18n("KMouth"),
36 KMOUTH_VERSION
, ki18n(description
), KAboutData::License_GPL
,
37 ki18n("(c) 2002/2003, Gunnar Schmi Dt"), KLocalizedString(), "http://www.schmi-dt.de/kmouth/index.en.html", "kmouth@schmi-dt.de");
38 aboutData
.addAuthor(ki18n("Gunnar Schmi Dt"),KLocalizedString(), "kmouth@schmi-dt.de");
39 KCmdLineArgs::init( argc
, argv
, &aboutData
);
41 KCmdLineOptions options
;
42 options
.add("+[File]", ki18n("History file to open"));
43 KCmdLineArgs::addCmdLineOptions( options
); // Add our own options.
45 aboutData
.addCredit(ki18n("Olaf Schmidt"), ki18n("Tips, extended phrase books"));
48 if (app
.isSessionRestored())
54 KMouthApp
*kmouth
= new KMouthApp();
55 if (!kmouth
->configured())
60 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs();
64 kmouth
->openDocumentFile(args
->url(0));