From 5a0afc9e219fe72a763af031a4b3ce385316f1ea Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 10 Nov 2024 17:48:31 +0900 Subject: [PATCH] Rename KUniqueApplication to TDEUniqueApplication Signed-off-by: Michele Calgaro --- doc/kdearch/index.docbook | 4 ++-- languages/cpp/app_templates/dcopservice/main.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/kdearch/index.docbook b/doc/kdearch/index.docbook index 0dbe8dbe..8dff869d 100644 --- a/doc/kdearch/index.docbook +++ b/doc/kdearch/index.docbook @@ -116,7 +116,7 @@ Initializes and controls a KDE application. -<ulink url="kdeapi:tdecore/KUniqueApplication">KUniqueApplication</ulink> +<ulink url="kdeapi:tdecore/TDEUniqueApplication">TDEUniqueApplication</ulink> Makes sure only one instance of an application can run simultaneously. @@ -2097,7 +2097,7 @@ registered with DCOP and uses the running service. If it is not registered yet, KDE will start it up and wait until is registered. Thus, you can immediately send DCOP calls to the service. In such a case, the service should be implemented as a -KUniqueApplication. +TDEUniqueApplication. diff --git a/languages/cpp/app_templates/dcopservice/main.cpp b/languages/cpp/app_templates/dcopservice/main.cpp index cf1d3ae6..2e7f3722 100644 --- a/languages/cpp/app_templates/dcopservice/main.cpp +++ b/languages/cpp/app_templates/dcopservice/main.cpp @@ -1,6 +1,6 @@ %{CPP_TEMPLATE} -#include +#include #include #include #include @@ -28,15 +28,15 @@ int main (int argc, char *argv[]) TDECmdLineArgs::init( argc, argv, &aboutdata ); TDECmdLineArgs::addCmdLineOptions( options ); - KUniqueApplication::addCmdLineOptions(); + TDEUniqueApplication::addCmdLineOptions(); - if (!KUniqueApplication::start()) + if (!TDEUniqueApplication::start()) { kdDebug() << "%{APPNAMELC} is already running!" << endl; return (0); } - KUniqueApplication app; + TDEUniqueApplication app; kdDebug() << "starting %{APPNAMELC} " << endl; // This app is started automatically, no need for session management app.disableSessionManagement();