Rename KUniqueApplication to TDEUniqueApplication

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/60/head
Michele Calgaro 1 month ago
parent 35a1f25329
commit 5a0afc9e21
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -116,7 +116,7 @@ Initializes and controls a KDE application.
</formalpara></listitem> </formalpara></listitem>
<listitem><formalpara> <listitem><formalpara>
<title><ulink url="kdeapi:tdecore/KUniqueApplication">KUniqueApplication</ulink></title> <title><ulink url="kdeapi:tdecore/TDEUniqueApplication">TDEUniqueApplication</ulink></title>
<para> <para>
Makes sure only one instance of an application can run simultaneously. Makes sure only one instance of an application can run simultaneously.
</para> </para>
@ -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 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 send DCOP calls to the service. In such a case, the service should be implemented
as a as a
<ulink url="kdeapi:tdecore/KUniqueApplication.html">KUniqueApplication</ulink>. <ulink url="kdeapi:tdecore/TDEUniqueApplication.html">TDEUniqueApplication</ulink>.
</para> </para>
<para> <para>

@ -1,6 +1,6 @@
%{CPP_TEMPLATE} %{CPP_TEMPLATE}
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <kdebug.h> #include <kdebug.h>
@ -28,15 +28,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() << "%{APPNAMELC} is already running!" << endl; kdDebug() << "%{APPNAMELC} is already running!" << endl;
return (0); return (0);
} }
KUniqueApplication app; TDEUniqueApplication app;
kdDebug() << "starting %{APPNAMELC} " << endl; kdDebug() << "starting %{APPNAMELC} " << endl;
// This app is started automatically, no need for session management // This app is started automatically, no need for session management
app.disableSessionManagement(); app.disableSessionManagement();

Loading…
Cancel
Save