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()
: KUniqueApplication()
: TDEUniqueApplication()
{
TDEGlobal::dirs()->addPrefix(PREFIX);
dcopClient()->registerAs("quanta", false);

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

@ -187,7 +187,7 @@ int main(int argc, char *argv[])
for ( int i = 1; i < argc; i++ ) {
if ( strcmp(argv[i], uniq) == 0 ) {
isUnique = true;
KUniqueApplication::addCmdLineOptions(); // before calling parsedArgs!
TDEUniqueApplication::addCmdLineOptions(); // before calling parsedArgs!
break;
}
}
@ -196,8 +196,8 @@ int main(int argc, char *argv[])
TDEApplication::disableAutoDcopRegistration();
if (isUnique) {
KUniqueApplication::dcopClient()->registerAs("quanta-foo");
if (KUniqueApplication::dcopClient()->isApplicationRegistered("quanta"))
TDEUniqueApplication::dcopClient()->registerAs("quanta-foo");
if (TDEUniqueApplication::dcopClient()->isApplicationRegistered("quanta"))
{
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
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);
TQString app = "quanta";
if (!kapp->inherits("KUniqueApplication"))
if (!kapp->inherits("TDEUniqueApplication"))
{
pid_t pid = ::getpid();
app += TQString("-%1").arg(pid);

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

Loading…
Cancel
Save