Rename KUniqueApplication to TDEUniqueApplication

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 2 weeks ago
parent 2feacbb6d3
commit 692de2d5dc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -30,7 +30,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
@ -51,11 +51,11 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Gerardo Puga", I18N_NOOP("Current maintainer"), "gpuga@gioia.ing.unlp.edu.ar"); aboutData.addAuthor("Gerardo Puga", I18N_NOOP("Current maintainer"), "gpuga@gioia.ing.unlp.edu.ar");
TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
if (!KUniqueApplication::start()) { if (!TDEUniqueApplication::start()) {
fprintf(stderr, "%s is already running!\n", aboutData.appName()); fprintf(stderr, "%s is already running!\n", aboutData.appName());
exit(0); exit(0);
} }
KUniqueApplication app; TDEUniqueApplication app;
// session management // session management
AmorSessionWidget *sessionWidget = new AmorSessionWidget; AmorSessionWidget *sessionWidget = new AmorSessionWidget;

@ -33,7 +33,7 @@
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <tdeconfig.h> #include <tdeconfig.h>
#include <kdebug.h> #include <kdebug.h>

@ -78,10 +78,10 @@ int main(int argc, char *argv[])
"dev@gioelebarabucci.com", "http://www.gioelebarabucci.com"); "dev@gioelebarabucci.com", "http://www.gioelebarabucci.com");
TDECmdLineArgs::init( argc, argv, aboutData ); TDECmdLineArgs::init( argc, argv, aboutData );
if (!KUniqueApplication::start()) if (!TDEUniqueApplication::start())
exit(0); exit(0);
KUniqueApplication a; TDEUniqueApplication a;
Kodometer *o = new Kodometer(); Kodometer *o = new Kodometer();

@ -1,4 +1,4 @@
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <kdebug.h> #include <kdebug.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
@ -17,15 +17,15 @@ int main (int argc, char *argv[])
TDECmdLineArgs::init( argc, argv, &aboutdata ); TDECmdLineArgs::init( argc, argv, &aboutdata );
// TDECmdLineArgs::addCmdLineOptions( options ); // TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions(); TDEUniqueApplication::addCmdLineOptions();
if (!KUniqueApplication::start()) if (!TDEUniqueApplication::start())
{ {
kdDebug() << "dcopservice is already running!" << endl; kdDebug() << "dcopservice is already running!" << endl;
return (0); return (0);
} }
KUniqueApplication app; TDEUniqueApplication app;
// This app is started automatically, no need for session management // This app is started automatically, no need for session management
app.disableSessionManagement(); app.disableSessionManagement();
kdDebug() << "starting dcopservice " << endl; kdDebug() << "starting dcopservice " << endl;

@ -178,7 +178,7 @@ int main(int argc, char *argv[])
TDEAboutData about("kworldclock", I18N_NOOP("TDE World Clock"), "1.5"); TDEAboutData about("kworldclock", I18N_NOOP("TDE World Clock"), "1.5");
TDECmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions(); TDEUniqueApplication::addCmdLineOptions();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("themes")) if (args->isSet("themes"))
@ -188,7 +188,7 @@ int main(int argc, char *argv[])
return 0; return 0;
} }
if (!KUniqueApplication::start()) if (!TDEUniqueApplication::start())
return 0; return 0;
WatchApplication app; WatchApplication app;

@ -29,7 +29,7 @@
/* /*
** Bug reports and questions can be sent to kde-devel@kde.org ** Bug reports and questions can be sent to kde-devel@kde.org
*/ */
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tdemainwindow.h> #include <tdemainwindow.h>
@ -69,14 +69,14 @@ private:
}; };
class WatchApplication : public KUniqueApplication class WatchApplication : public TDEUniqueApplication
{ {
TQ_OBJECT TQ_OBJECT
public: public:
WatchApplication() : KUniqueApplication() {}; WatchApplication() : TDEUniqueApplication() {};
int newInstance(); int newInstance();

Loading…
Cancel
Save