diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-11-10 17:13:18 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-11-10 17:13:18 +0900 |
commit | fcf98b70b8664d991f5c31062aba4947d404ed41 (patch) | |
tree | 74cc56c6a97749a357137aeab4dc9243a1f60d40 | |
parent | 9223e1c194eea392ce07a7909afcc2e3b3713c95 (diff) | |
download | tdeutils-feat/use-tdeuniqueapplication.tar.gz tdeutils-feat/use-tdeuniqueapplication.zip |
Rename KUniqueApplication to TDEUniqueApplicationfeat/use-tdeuniqueapplication
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | ark/arkapp.cpp | 2 | ||||
-rw-r--r-- | ark/arkapp.h | 4 | ||||
-rw-r--r-- | ark/main.cpp | 2 | ||||
-rw-r--r-- | kgpg/kgpg.cpp | 2 | ||||
-rw-r--r-- | kgpg/kgpg.h | 6 | ||||
-rw-r--r-- | kgpg/main.cpp | 8 | ||||
-rw-r--r-- | kjots/main.cpp | 8 | ||||
-rw-r--r-- | klaptopdaemon/laptop_daemon.cpp | 2 | ||||
-rw-r--r-- | tdelirc/README.profile-creation | 4 | ||||
-rw-r--r-- | tdelirc/irkick/main.cpp | 6 | ||||
-rw-r--r-- | tdewallet/main.cpp | 8 |
11 files changed, 26 insertions, 26 deletions
diff --git a/ark/arkapp.cpp b/ark/arkapp.cpp index 4a98c94..7fc9efe 100644 --- a/ark/arkapp.cpp +++ b/ark/arkapp.cpp @@ -106,7 +106,7 @@ ArkApplication * ArkApplication::getInstance() } ArkApplication::ArkApplication() - : KUniqueApplication(), m_windowCount(0) + : TDEUniqueApplication(), m_windowCount(0) { m_mainwidget = new TQWidget; setMainWidget(m_mainwidget); diff --git a/ark/arkapp.h b/ark/arkapp.h index 1d98fa3..89de47b 100644 --- a/ark/arkapp.h +++ b/ark/arkapp.h @@ -33,7 +33,7 @@ #include <tqdict.h> // KDE includes -#include <kuniqueapplication.h> +#include <tdeuniqueapplication.h> class TQString; class TQStringList; @@ -49,7 +49,7 @@ class EqualKey // This class follows the singleton pattern. -class ArkApplication : public KUniqueApplication +class ArkApplication : public TDEUniqueApplication { TQ_OBJECT diff --git a/ark/main.cpp b/ark/main.cpp index 3ec8593..3fd5e1e 100644 --- a/ark/main.cpp +++ b/ark/main.cpp @@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ // -// Note: This is a KUniqueApplication. +// Note: This is a TDEUniqueApplication. // To debug add --nofork to the command line. // Be aware that newInstance() will not be called in this case, but you // can run ark from a console, and that will invoke it in the debugger. diff --git a/kgpg/kgpg.cpp b/kgpg/kgpg.cpp index 359644e..b48794f 100644 --- a/kgpg/kgpg.cpp +++ b/kgpg/kgpg.cpp @@ -909,7 +909,7 @@ kgpgapplet::~kgpgapplet() } KgpgAppletApp::KgpgAppletApp() - : KUniqueApplication()//, kgpg_applet( 0 ) + : TDEUniqueApplication()//, kgpg_applet( 0 ) { running=false; diff --git a/kgpg/kgpg.h b/kgpg/kgpg.h index 409f92b..2ce6008 100644 --- a/kgpg/kgpg.h +++ b/kgpg/kgpg.h @@ -24,7 +24,7 @@ #include <tdeaction.h> #include <ksystemtray.h> -#include <kuniqueapplication.h> +#include <tdeuniqueapplication.h> #include <kurl.h> #include <tdeshortcut.h> @@ -119,7 +119,7 @@ signals: void importedKeys(TQStringList); }; -class kgpgapplet : public KSystemTray//KUniqueApplication +class kgpgapplet : public KSystemTray//TDEUniqueApplication { TQ_OBJECT @@ -143,7 +143,7 @@ private slots: class TDECmdLineArgs; -class KgpgAppletApp : public KUniqueApplication +class KgpgAppletApp : public TDEUniqueApplication { TQ_OBJECT diff --git a/kgpg/main.cpp b/kgpg/main.cpp index 73b99bf..7ef747b 100644 --- a/kgpg/main.cpp +++ b/kgpg/main.cpp @@ -21,7 +21,7 @@ #include <tdemessagebox.h> -#include <kuniqueapplication.h> +#include <tdeuniqueapplication.h> #include <dcopclient.h> #include <tdeaboutdata.h> #include <tdecmdlineargs.h> @@ -54,12 +54,12 @@ int main(int argc, char *argv[]) about.addAuthor( "Jean-Baptiste Mardelle", 0, "bj@altern.org" ); TDECmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::addCmdLineOptions(options); - KUniqueApplication::addCmdLineOptions(); + TDEUniqueApplication::addCmdLineOptions(); //KMessageBox::sorry(0,"nombre: "+TQString::number(i)); - if (!KUniqueApplication::start()) + if (!TDEUniqueApplication::start()) return 0; //KgpgAppletApp *app; @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) /* - KUniqueApplication app; + TDEUniqueApplication app; // register ourselves as a dcop client //app.dcopClient()->registerAs(app.name(), false); diff --git a/kjots/main.cpp b/kjots/main.cpp index 48c55fa..343675a 100644 --- a/kjots/main.cpp +++ b/kjots/main.cpp @@ -24,7 +24,7 @@ #endif #include <stdlib.h> -#include <kuniqueapplication.h> +#include <tdeuniqueapplication.h> #include <tdecmdlineargs.h> #include <tdeconfig.h> #include <tdeaboutdata.h> @@ -48,15 +48,15 @@ int main( int argc, char **argv ) aboutData.addAuthor("Stanislav Kljuhhin", 0, "crz@starman.ee"); aboutData.addAuthor("Christoph Neerfeld", I18N_NOOP("Original author"), "chris@kde.org"); TDECmdLineArgs::init(argc, argv, &aboutData); - KUniqueApplication::addCmdLineOptions(); + TDEUniqueApplication::addCmdLineOptions(); - if (!KUniqueApplication::start()) + if (!TDEUniqueApplication::start()) { fprintf(stderr, "kjots is already running!\n"); exit(0); } - KUniqueApplication a; + TDEUniqueApplication a; // backwards compatibility code to convert "old" user font settings // to the new config settings diff --git a/klaptopdaemon/laptop_daemon.cpp b/klaptopdaemon/laptop_daemon.cpp index 20843f7..1649fc8 100644 --- a/klaptopdaemon/laptop_daemon.cpp +++ b/klaptopdaemon/laptop_daemon.cpp @@ -314,7 +314,7 @@ void laptop_daemon::setBlankSaver(bool blanked) TQByteArray ba; TQDataStream ds(ba, IO_WriteOnly); ds << bool(blanked); - // can't use kapp->dcopClient() because it breaks KUniqueApplication + // can't use kapp->dcopClient() because it breaks TDEUniqueApplication DCOPClient c; c.attach(); c.send("kdesktop", "KScreensaverIface", "setBlankOnly(bool)", ba); diff --git a/tdelirc/README.profile-creation b/tdelirc/README.profile-creation index 80ec429..b977bd2 100644 --- a/tdelirc/README.profile-creation +++ b/tdelirc/README.profile-creation @@ -50,8 +50,8 @@ service name (found in the .desktop file) as attributes of them: </profile> b) Inside populate with name and author information. If your application is not a -KUniqueApplication, you **must** declare this with an "instances" tag, giving the -attribute "unique" a value of "0" (it defaults to "1", a KUniqueApplication). You +TDEUniqueApplication, you **must** declare this with an "instances" tag, giving the +attribute "unique" a value of "0" (it defaults to "1", a TDEUniqueApplication). You may optionally describe the default behavior TDELirc should take should there be more than one instance of the application, with the attribute "ifmulti" which may take one of "dontsend" (do nothing if >1 instance), "sendtoone" (send call to one diff --git a/tdelirc/irkick/main.cpp b/tdelirc/irkick/main.cpp index 612262d..be98cae 100644 --- a/tdelirc/irkick/main.cpp +++ b/tdelirc/irkick/main.cpp @@ -13,7 +13,7 @@ #include <tdeaboutdata.h> #include <tdeglobal.h> #include <kdebug.h> -#include <kuniqueapplication.h> +#include <tdeuniqueapplication.h> #include "irkick.h" @@ -27,8 +27,8 @@ extern "C" TDE_EXPORT int kdemain(int argc, char *argv[]) aboutData->addCredit("Antonio Larrosa Jiménez", I18N_NOOP("Ideas"), "larrosa@kde.org"); TDECmdLineArgs::init( argc, argv, aboutData ); - KUniqueApplication::addCmdLineOptions(); - KUniqueApplication app; + TDEUniqueApplication::addCmdLineOptions(); + TDEUniqueApplication app; TDEGlobal::locale()->insertCatalogue( "tdelirc" ); app.disableSessionManagement(); IRKick *theIRKick = new IRKick("IRKick"); diff --git a/tdewallet/main.cpp b/tdewallet/main.cpp index bd66c37..fad986a 100644 --- a/tdewallet/main.cpp +++ b/tdewallet/main.cpp @@ -24,7 +24,7 @@ #include <tdelocale.h> #include <kmimetype.h> #include <kstandarddirs.h> -#include <kuniqueapplication.h> +#include <tdeuniqueapplication.h> #include <tqfile.h> #include <tqfileinfo.h> @@ -32,9 +32,9 @@ #include "tdewalletmanager.h" -class MyApp : public KUniqueApplication { +class MyApp : public TDEUniqueApplication { public: - MyApp() : KUniqueApplication() { ref(); } + MyApp() : TDEUniqueApplication() { ref(); } virtual ~MyApp() {} virtual int newInstance() { return 0; } @@ -60,7 +60,7 @@ int main(int argc, char **argv) { TDECmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::addCmdLineOptions(options); - if (!KUniqueApplication::start()) { + if (!TDEUniqueApplication::start()) { return 0; } |