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
65
66
67
68
69
70
71
72
73
|
/***************************************************************************
* *
* KNetLoad 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 "knetload.h"
#include "../version.h"
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kuniqueapplication.h>
static const char description[] =
I18N_NOOP("A small network load meter for Kicker (the KDE panel).");
static const char message[] =
I18N_NOOP("KNetLoad was first released on the 8th of August, 1999.");
static const char version[] = VERSION; /*VERSION;*/
int main(int argc, char **argv) {
KAboutData aboutData("knetload", I18N_NOOP("KNetLoad"), version,
description, KAboutData::License_GPL,
"(c) 1999-2000, Markus Gustavsson\n"
"(c) 2002, Ben Burton\n"
"(c) 2004, Flameeyes",
message, "http://flameeyes.web.ctonet.it/", "dgp85@users.sourceforge.net");
aboutData.addAuthor("Markus Gustavsson", "Original author",
"mighty@fragzone.se");
aboutData.addAuthor("Ben Burton", "KDE3 rewrite, current maintainer",
"bab@debian.org");
aboutData.addAuthor("Flameeyes", "2.00 Version, maintainer",
"dgp85@users.sourceforge.net");
aboutData.addAuthor("Roland Riegel", "BSD and Solaris support",
"feedback@roland-riegel.de");
aboutData.addAuthor("Bill Wilson", "BSD and Solaris support",
"bill@gkrellm.net");
aboutData.addAuthor("Hajimu Umemoto", "BSD support",
"ume@mahoroba.org");
aboutData.addAuthor("Anthony Mallet", "BSD support",
"anthony.mallet@useless-ficus.net");
aboutData.addAuthor("Daisuke Yabuki", "Solaris support",
"dxy@acm.org");
aboutData.addCredit("Njaard, Charles Samuels",
"Support and help with KDE", "charles@kde.org");
aboutData.addCredit("rikkus, Rik Hemsley",
"Support and help with KDE", "rik@kde.org");
aboutData.addCredit("Mark Halpaap",
"Independent port to KDE3", "mark.halpaap@gmx.net");
aboutData.addCredit("Thanks to everyone in #KDE OpenProjects for "
"being supportive and helpful!");
KCmdLineArgs::init(argc, argv, &aboutData);
KUniqueApplication::addCmdLineOptions();
if (! KUniqueApplication::start()) {
fprintf(stderr, I18N_NOOP("KNetLoad is already running.\n"));
return 1;
}
KUniqueApplication app;
app.setMainWidget(new KNetLoad());
return app.exec();
}
|