summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: 6b587e56e16b158eb3c041f5f2dd0f3fed2b6d67 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

/***************************************************************************
 *                                                                         *
 *   KCPULoad is copyright (c) 1999-2000, Markus Gustavsson                *
 *                         (c) 2002, Ben Burton                            *
 *                                                                         *
 *   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 "kcpuload.h"

#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <tdelocale.h>
#include <kuniqueapplication.h>

static const char *description =
    I18N_NOOP("A small CPU usage meter for Kicker (the TDE panel).");
static const char *message =
    I18N_NOOP("KCPULoad was first released on the 8th of August, 1999.");
static const char *version = "2.00";

int main(int argc, char **argv) {
    TDEAboutData aboutData("kcpuload", I18N_NOOP("KCPULoad"), version,
        description, TDEAboutData::License_GPL,
        "(c) 1999-2000, Markus Gustavsson\n"
        "(c) 2002, Ben Burton\n"
	"(c) 2009, Timothy Pearson",
        message, 0 /* TODO: Website */, "[email protected]");

    aboutData.addAuthor("Markus Gustavsson", "Original author",
        "[email protected]");
    aboutData.addAuthor("Ben Burton", "KDE3 rewrite, current maintainer",
        "[email protected]");
    aboutData.addAuthor("Andy Fawcett", "BSD support",
        "[email protected]");
    aboutData.addAuthor("Robbie Ward", "BSD support",
        "[email protected]");

    aboutData.addCredit("Njaard, Charles Samuels",
        "Support and help with KDE", "[email protected]");
    aboutData.addCredit("rikkus, Rik Hemsley",
        "Support and help with KDE", "[email protected]");
    aboutData.addCredit("Mark Halpaap",
        "Independent port to KDE3", "[email protected]");
    aboutData.addCredit("Thanks to everyone in #KDE OpenProjects for "
        "being supportive and helpful!");

    TDECmdLineArgs::init(argc, argv, &aboutData);
    KUniqueApplication::addCmdLineOptions();

    if (! KUniqueApplication::start()) {
        fprintf(stderr, I18N_NOOP("KCPULoad is already running!\n"));
        return 1;
    }

    KUniqueApplication app;
    app.setMainWidget(new KCPULoad());
    return app.exec();
}