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 static KCmdLineOptions options
[] =
34 { "+[File]", I18N_NOOP("History file to open"), 0 },
36 // INSERT YOUR COMMANDLINE OPTIONS HERE
39 int main(int argc
, char *argv
[])
42 KAboutData
aboutData( "kmouth", I18N_NOOP("KMouth"),
43 KMOUTH_VERSION
, description
, KAboutData::License_GPL
,
44 "(c) 2002/2003, Gunnar Schmi Dt", 0, "http://www.schmi-dt.de/kmouth/index.en.html", "kmouth@schmi-dt.de");
45 aboutData
.addAuthor("Gunnar Schmi Dt",0, "kmouth@schmi-dt.de");
46 KCmdLineArgs::init( argc
, argv
, &aboutData
);
47 KCmdLineArgs::addCmdLineOptions( options
); // Add our own options.
49 aboutData
.addCredit("Olaf Schmidt", I18N_NOOP("Tips, extended phrase books"), 0, 0);
58 KMouthApp
*kmouth
= new KMouthApp();
59 if (!kmouth
->configured())
64 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs();
68 kmouth
->openDocumentFile(args
->url(0));