diff options
Diffstat (limited to 'krfb/krfb/main.cpp')
-rw-r--r-- | krfb/krfb/main.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/krfb/krfb/main.cpp b/krfb/krfb/main.cpp index 4428e983..0910b9d8 100644 --- a/krfb/krfb/main.cpp +++ b/krfb/krfb/main.cpp @@ -31,10 +31,10 @@ #include <kaboutapplication.h> #include <klocale.h> #include <kmessagebox.h> -#include <qobject.h> -#include <qwindowdefs.h> -#include <qcstring.h> -#include <qdatastream.h> +#include <tqobject.h> +#include <tqwindowdefs.h> +#include <tqcstring.h> +#include <tqdatastream.h> #include <dcopref.h> #include <signal.h> @@ -57,7 +57,7 @@ void checkKInetd(bool &kinetdAvailable, bool &krfbAvailable) { DCOPRef ref("kded", "kinetd"); ref.setDCOPClient(KApplication::dcopClient()); - DCOPReply r = ref.call("isInstalled", QString("krfb")); + DCOPReply r = ref.call("isInstalled", TQString("krfb")); if (!r.isValid()) { kinetdAvailable = false; krfbAvailable = false; @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) Configuration *config; KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); - QString fdString; + TQString fdString; if (!args->isSet(ARG_KINETD)) { bool kinetdA, krfbA; checkKInetd(kinetdA, krfbA); @@ -145,33 +145,33 @@ int main(int argc, char *argv[]) RFBController controller(config); KRfbIfaceImpl dcopiface(&controller); - QObject::connect(&app, SIGNAL(lastWindowClosed()), // dont show passivepopup - &trayicon, SLOT(prepareQuit())); - QObject::connect(&app, SIGNAL(lastWindowClosed()), - &controller, SLOT(closeConnection())); - - QObject::connect(&trayicon, SIGNAL(showManageInvitations()), - config, SLOT(showManageInvitationsDialog())); - QObject::connect(&trayicon, SIGNAL(enableDesktopControl(bool)), - &controller, SLOT(enableDesktopControl(bool))); - QObject::connect(&trayicon, SIGNAL(diconnectedMessageDisplayed()), - &app, SLOT(quit())); - - QObject::connect(&dcopiface, SIGNAL(exitApp()), - &controller, SLOT(closeConnection())); - QObject::connect(&dcopiface, SIGNAL(exitApp()), - &app, SLOT(quit())); - - QObject::connect(&controller, SIGNAL(sessionRefused()), - &app, SLOT(quit())); - QObject::connect(&controller, SIGNAL(sessionEstablished(QString)), - &trayicon, SLOT(showConnectedMessage(QString))); - QObject::connect(&controller, SIGNAL(sessionFinished()), - &trayicon, SLOT(showDisconnectedMessage())); - QObject::connect(&controller, SIGNAL(desktopControlSettingChanged(bool)), - &trayicon, SLOT(setDesktopControlSetting(bool))); - QObject::connect(&controller, SIGNAL(quitApp()), - &app, SLOT(quit())); + TQObject::connect(&app, TQT_SIGNAL(lastWindowClosed()), // dont show passivepopup + &trayicon, TQT_SLOT(prepareQuit())); + TQObject::connect(&app, TQT_SIGNAL(lastWindowClosed()), + &controller, TQT_SLOT(closeConnection())); + + TQObject::connect(&trayicon, TQT_SIGNAL(showManageInvitations()), + config, TQT_SLOT(showManageInvitationsDialog())); + TQObject::connect(&trayicon, TQT_SIGNAL(enableDesktopControl(bool)), + &controller, TQT_SLOT(enableDesktopControl(bool))); + TQObject::connect(&trayicon, TQT_SIGNAL(diconnectedMessageDisplayed()), + &app, TQT_SLOT(quit())); + + TQObject::connect(&dcopiface, TQT_SIGNAL(exitApp()), + &controller, TQT_SLOT(closeConnection())); + TQObject::connect(&dcopiface, TQT_SIGNAL(exitApp()), + &app, TQT_SLOT(quit())); + + TQObject::connect(&controller, TQT_SIGNAL(sessionRefused()), + &app, TQT_SLOT(quit())); + TQObject::connect(&controller, TQT_SIGNAL(sessionEstablished(TQString)), + &trayicon, TQT_SLOT(showConnectedMessage(TQString))); + TQObject::connect(&controller, TQT_SIGNAL(sessionFinished()), + &trayicon, TQT_SLOT(showDisconnectedMessage())); + TQObject::connect(&controller, TQT_SIGNAL(desktopControlSettingChanged(bool)), + &trayicon, TQT_SLOT(setDesktopControlSetting(bool))); + TQObject::connect(&controller, TQT_SIGNAL(quitApp()), + &app, TQT_SLOT(quit())); sigset_t sigs; sigemptyset(&sigs); |