Rename KUniqueApplication to TDEUniqueApplication

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 2 weeks ago
parent 5219fba662
commit 8b15518e52
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -119,7 +119,7 @@ void KQApplication::slotSplashTimeout()
} }
KQUniqueApplication::KQUniqueApplication() KQUniqueApplication::KQUniqueApplication()
: KUniqueApplication() : TDEUniqueApplication()
{ {
TDEGlobal::dirs()->addPrefix(PREFIX); TDEGlobal::dirs()->addPrefix(PREFIX);
dcopClient()->registerAs("quanta", false); dcopClient()->registerAs("quanta", false);

@ -20,7 +20,7 @@
#define KTQAPPLICATION_H #define KTQAPPLICATION_H
#include <tqframe.h> #include <tqframe.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
class TDECmdLineArgs; class TDECmdLineArgs;
class KSplashScreen; class KSplashScreen;
@ -62,7 +62,7 @@ class KQApplication : public TDEApplication, KQApplicationPrivate
void slotSplashTimeout(); void slotSplashTimeout();
}; };
class KQUniqueApplication : public KUniqueApplication, KQApplicationPrivate class KQUniqueApplication : public TDEUniqueApplication, KQApplicationPrivate
{ {
TQ_OBJECT TQ_OBJECT

@ -187,7 +187,7 @@ int main(int argc, char *argv[])
for ( int i = 1; i < argc; i++ ) { for ( int i = 1; i < argc; i++ ) {
if ( strcmp(argv[i], uniq) == 0 ) { if ( strcmp(argv[i], uniq) == 0 ) {
isUnique = true; isUnique = true;
KUniqueApplication::addCmdLineOptions(); // before calling parsedArgs! TDEUniqueApplication::addCmdLineOptions(); // before calling parsedArgs!
break; break;
} }
} }
@ -196,8 +196,8 @@ int main(int argc, char *argv[])
TDEApplication::disableAutoDcopRegistration(); TDEApplication::disableAutoDcopRegistration();
if (isUnique) { if (isUnique) {
KUniqueApplication::dcopClient()->registerAs("quanta-foo"); TDEUniqueApplication::dcopClient()->registerAs("quanta-foo");
if (KUniqueApplication::dcopClient()->isApplicationRegistered("quanta")) if (TDEUniqueApplication::dcopClient()->isApplicationRegistered("quanta"))
{ {
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
for (int i = 0; i < args->count(); i++) for (int i = 0; i < args->count(); i++)

@ -593,7 +593,7 @@ DCOPReply QuantaCommon::callDCOPMethod(const TQString& interface, const TQString
{ {
TQStringList argumentList = TQStringList::split(",", arguments, true); TQStringList argumentList = TQStringList::split(",", arguments, true);
TQString app = "quanta"; TQString app = "quanta";
if (!kapp->inherits("KUniqueApplication")) if (!kapp->inherits("TDEUniqueApplication"))
{ {
pid_t pid = ::getpid(); pid_t pid = ::getpid();
app += TQString("-%1").arg(pid); app += TQString("-%1").arg(pid);

@ -336,7 +336,7 @@ bool TagAction::slotActionActivated(TDEAction::ActivationReason reason, TQt::But
} }
pid_t pid = ::getpid(); pid_t pid = ::getpid();
if (kapp->inherits("KUniqueApplication")) if (kapp->inherits("TDEUniqueApplication"))
{ {
command.replace("%pid", TQString("unique %1").arg(pid)); command.replace("%pid", TQString("unique %1").arg(pid));
} else } else
@ -590,7 +590,7 @@ bool TagAction::slotActionActivated()
} }
pid_t pid = ::getpid(); pid_t pid = ::getpid();
if (kapp->inherits("KUniqueApplication")) if (kapp->inherits("TDEUniqueApplication"))
{ {
command.replace("%pid", TQString("unique %1").arg(pid)); command.replace("%pid", TQString("unique %1").arg(pid));
} else } else

Loading…
Cancel
Save