|
|
@ -17,7 +17,7 @@
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
|
|
|
|
|
|
|
static const char description[] =
|
|
|
|
static const char description[] =
|
|
|
|
I18N_NOOP("A small network load meter for Kicker (the TDE panel).");
|
|
|
|
I18N_NOOP("A small network load meter for Kicker (the TDE panel).");
|
|
|
@ -60,14 +60,14 @@ int main(int argc, char **argv) {
|
|
|
|
"being supportive and helpful!");
|
|
|
|
"being supportive and helpful!");
|
|
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
|
|
if (! KUniqueApplication::start()) {
|
|
|
|
if (! TDEUniqueApplication::start()) {
|
|
|
|
fprintf(stderr, I18N_NOOP("KNetLoad is already running.\n"));
|
|
|
|
fprintf(stderr, I18N_NOOP("KNetLoad is already running.\n"));
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KUniqueApplication app;
|
|
|
|
TDEUniqueApplication app;
|
|
|
|
app.setMainWidget(new KNetLoad());
|
|
|
|
app.setMainWidget(new KNetLoad());
|
|
|
|
return app.exec();
|
|
|
|
return app.exec();
|
|
|
|
}
|
|
|
|
}
|
|
|
|