Rename KUniqueApplication to TDEUniqueApplication

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/89/head
Michele Calgaro 4 months ago
parent 9223e1c194
commit fcf98b70b8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -106,7 +106,7 @@ ArkApplication * ArkApplication::getInstance()
} }
ArkApplication::ArkApplication() ArkApplication::ArkApplication()
: KUniqueApplication(), m_windowCount(0) : TDEUniqueApplication(), m_windowCount(0)
{ {
m_mainwidget = new TQWidget; m_mainwidget = new TQWidget;
setMainWidget(m_mainwidget); setMainWidget(m_mainwidget);

@ -33,7 +33,7 @@
#include <tqdict.h> #include <tqdict.h>
// KDE includes // KDE includes
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
class TQString; class TQString;
class TQStringList; class TQStringList;
@ -49,7 +49,7 @@ class EqualKey
// This class follows the singleton pattern. // This class follows the singleton pattern.
class ArkApplication : public KUniqueApplication class ArkApplication : public TDEUniqueApplication
{ {
TQ_OBJECT TQ_OBJECT

@ -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. // To debug add --nofork to the command line.
// Be aware that newInstance() will not be called in this case, but you // 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. // can run ark from a console, and that will invoke it in the debugger.

@ -909,7 +909,7 @@ kgpgapplet::~kgpgapplet()
} }
KgpgAppletApp::KgpgAppletApp() KgpgAppletApp::KgpgAppletApp()
: KUniqueApplication()//, kgpg_applet( 0 ) : TDEUniqueApplication()//, kgpg_applet( 0 )
{ {
running=false; running=false;

@ -24,7 +24,7 @@
#include <tdeaction.h> #include <tdeaction.h>
#include <ksystemtray.h> #include <ksystemtray.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <kurl.h> #include <kurl.h>
#include <tdeshortcut.h> #include <tdeshortcut.h>
@ -119,7 +119,7 @@ signals:
void importedKeys(TQStringList); void importedKeys(TQStringList);
}; };
class kgpgapplet : public KSystemTray//KUniqueApplication class kgpgapplet : public KSystemTray//TDEUniqueApplication
{ {
TQ_OBJECT TQ_OBJECT
@ -143,7 +143,7 @@ private slots:
class TDECmdLineArgs; class TDECmdLineArgs;
class KgpgAppletApp : public KUniqueApplication class KgpgAppletApp : public TDEUniqueApplication
{ {
TQ_OBJECT TQ_OBJECT

@ -21,7 +21,7 @@
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <dcopclient.h> #include <dcopclient.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
@ -54,12 +54,12 @@ int main(int argc, char *argv[])
about.addAuthor( "Jean-Baptiste Mardelle", 0, "bj@altern.org" ); about.addAuthor( "Jean-Baptiste Mardelle", 0, "bj@altern.org" );
TDECmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions(); TDEUniqueApplication::addCmdLineOptions();
//KMessageBox::sorry(0,"nombre: "+TQString::number(i)); //KMessageBox::sorry(0,"nombre: "+TQString::number(i));
if (!KUniqueApplication::start()) if (!TDEUniqueApplication::start())
return 0; return 0;
//KgpgAppletApp *app; //KgpgAppletApp *app;
@ -69,7 +69,7 @@ int main(int argc, char *argv[])
/* /*
KUniqueApplication app; TDEUniqueApplication app;
// register ourselves as a dcop client // register ourselves as a dcop client
//app.dcopClient()->registerAs(app.name(), false); //app.dcopClient()->registerAs(app.name(), false);

@ -24,7 +24,7 @@
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <tdeconfig.h> #include <tdeconfig.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
@ -48,15 +48,15 @@ int main( int argc, char **argv )
aboutData.addAuthor("Stanislav Kljuhhin", 0, "crz@starman.ee"); aboutData.addAuthor("Stanislav Kljuhhin", 0, "crz@starman.ee");
aboutData.addAuthor("Christoph Neerfeld", I18N_NOOP("Original author"), "chris@kde.org"); aboutData.addAuthor("Christoph Neerfeld", I18N_NOOP("Original author"), "chris@kde.org");
TDECmdLineArgs::init(argc, argv, &aboutData); TDECmdLineArgs::init(argc, argv, &aboutData);
KUniqueApplication::addCmdLineOptions(); TDEUniqueApplication::addCmdLineOptions();
if (!KUniqueApplication::start()) if (!TDEUniqueApplication::start())
{ {
fprintf(stderr, "kjots is already running!\n"); fprintf(stderr, "kjots is already running!\n");
exit(0); exit(0);
} }
KUniqueApplication a; TDEUniqueApplication a;
// backwards compatibility code to convert "old" user font settings // backwards compatibility code to convert "old" user font settings
// to the new config settings // to the new config settings

@ -314,7 +314,7 @@ void laptop_daemon::setBlankSaver(bool blanked)
TQByteArray ba; TQByteArray ba;
TQDataStream ds(ba, IO_WriteOnly); TQDataStream ds(ba, IO_WriteOnly);
ds << bool(blanked); ds << bool(blanked);
// can't use kapp->dcopClient() because it breaks KUniqueApplication // can't use kapp->dcopClient() because it breaks TDEUniqueApplication
DCOPClient c; DCOPClient c;
c.attach(); c.attach();
c.send("kdesktop", "KScreensaverIface", "setBlankOnly(bool)", ba); c.send("kdesktop", "KScreensaverIface", "setBlankOnly(bool)", ba);

@ -50,8 +50,8 @@ service name (found in the .desktop file) as attributes of them:
</profile> </profile>
b) Inside populate with name and author information. If your application is not a 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 TDEUniqueApplication, you **must** declare this with an "instances" tag, giving the
attribute "unique" a value of "0" (it defaults to "1", a KUniqueApplication). You 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 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 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 take one of "dontsend" (do nothing if >1 instance), "sendtoone" (send call to one

@ -13,7 +13,7 @@
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <tdeglobal.h> #include <tdeglobal.h>
#include <kdebug.h> #include <kdebug.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include "irkick.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"); aboutData->addCredit("Antonio Larrosa Jiménez", I18N_NOOP("Ideas"), "larrosa@kde.org");
TDECmdLineArgs::init( argc, argv, aboutData ); TDECmdLineArgs::init( argc, argv, aboutData );
KUniqueApplication::addCmdLineOptions(); TDEUniqueApplication::addCmdLineOptions();
KUniqueApplication app; TDEUniqueApplication app;
TDEGlobal::locale()->insertCatalogue( "tdelirc" ); TDEGlobal::locale()->insertCatalogue( "tdelirc" );
app.disableSessionManagement(); app.disableSessionManagement();
IRKick *theIRKick = new IRKick("IRKick"); IRKick *theIRKick = new IRKick("IRKick");

@ -24,7 +24,7 @@
#include <tdelocale.h> #include <tdelocale.h>
#include <kmimetype.h> #include <kmimetype.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
@ -32,9 +32,9 @@
#include "tdewalletmanager.h" #include "tdewalletmanager.h"
class MyApp : public KUniqueApplication { class MyApp : public TDEUniqueApplication {
public: public:
MyApp() : KUniqueApplication() { ref(); } MyApp() : TDEUniqueApplication() { ref(); }
virtual ~MyApp() {} virtual ~MyApp() {}
virtual int newInstance() { return 0; } virtual int newInstance() { return 0; }
@ -60,7 +60,7 @@ int main(int argc, char **argv) {
TDECmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
if (!KUniqueApplication::start()) { if (!TDEUniqueApplication::start()) {
return 0; return 0;
} }

Loading…
Cancel
Save