summaryrefslogtreecommitdiffstats
path: root/kcron/main.cpp
blob: f6427109c20005f62dbbf557a3027a59b2a1c0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/***************************************************************************
 *   Main.                                                                 *
 *   --------------------------------------------------------------------  *
 *   Copyright (C) 1999, Gary Meyer <[email protected]>                       *
 *   --------------------------------------------------------------------  *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   * 
 ***************************************************************************/

#include <kapplication.h>
#include <klocale.h>
#include "ktapp.h"
#include <kcmdlineargs.h>
#include <kaboutdata.h>
 
int main(int argc, char* argv[]) 
{ 
    static const char description[] = I18N_NOOP("TDE Task Scheduler");

    TDEAboutData aboutData("kcron", I18N_NOOP("KCron"), 
      VERSION, description, TDEAboutData::License_GPL, 
      "(c) 1999-2000, Gary Meyer");

    aboutData.addAuthor("Gary Meyer", 0, "[email protected]");
    aboutData.addAuthor("Robert Berry", 0, "[email protected]");
    aboutData.addAuthor("James Ots", 0, "[email protected]");
    aboutData.addAuthor("Alberto G. Hierro", 0, "[email protected]");

    TDECmdLineArgs::init(argc, argv, &aboutData);
  
    TDEApplication app;
      
    if (app.isRestored())
      { 
        RESTORE(KTApp);
      }
    else 
      {
        KTApp* kcron = new KTApp;
        if (!kcron->init())
           return 1;
        kcron->show();
      }
    return app.exec();
}