From 95e28f5bcadbf0ac052c4f29d77b4ab5e6648d1b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Jan 2013 00:24:38 -0600 Subject: Rename KApplication to TDEApplication to avoid conflicts with KDE4 --- doc/kdearch/index.docbook | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/kdearch') diff --git a/doc/kdearch/index.docbook b/doc/kdearch/index.docbook index 000cf9c3..65963503 100644 --- a/doc/kdearch/index.docbook +++ b/doc/kdearch/index.docbook @@ -109,7 +109,7 @@ Core application skeleton - classes needed by almost every application. -<ulink url="kdeapi:tdecore/KApplication">KApplication</ulink> +<ulink url="kdeapi:tdecore/TDEApplication">TDEApplication</ulink> Initializes and controls a KDE application. @@ -1809,7 +1809,7 @@ action->setWhatsThis(i18n("Deletes the marked file")) The invocation of KHelpCenter is encapsulated in the -KApplication +TDEApplication class. In order to show the manual of your application, just use @@ -2091,8 +2091,8 @@ name. As additional properties, it contains two lines: X-DCOP-ServiceType specifies the way the service is started. The value Unique says that the service must not be started more than once. This means, if you try to start this service (e.g. via - -KApplication::startServiceByName(), KDE looks whether it is already + +TDEApplication::startServiceByName(), KDE looks whether it is already 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 @@ -2134,7 +2134,7 @@ X-TDE-StartupNotify=false Using DCOP services -A DCOP service is started with one of several methods in the KApplication +A DCOP service is started with one of several methods in the TDEApplication class: @@ -2143,7 +2143,7 @@ DCOPClient *client = kapp->dcopClient(); client->attach(); if (!client->isApplicationRegistered("kio_uiserver")) { QString error; - if (KApplication::startServiceByName("kio_uiserver", QStringList(), &error)) + if (TDEApplication::startServiceByName("kio_uiserver", QStringList(), &error)) cout << "Starting kioserver failed with message " << error << endl; } ... @@ -2165,10 +2165,10 @@ instead, because it is much simpler and less error prone. In the example given here, the service was started "by name", i.e. the -first argument to KApplication::startServiceByName() is +first argument to TDEApplication::startServiceByName() is the name is appearing in the Name line of the desktop file. An alternative is to use -KApplication::startServiceByDesktopName(), which takes +TDEApplication::startServiceByDesktopName(), which takes the file name of its desktop file as argument, i.e. in this case "kio_uiserver.desktop". -- cgit v1.2.1