diff options
Diffstat (limited to 'examples/agent/klistener.cpp')
-rw-r--r-- | examples/agent/klistener.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/examples/agent/klistener.cpp b/examples/agent/klistener.cpp index 32bfb981a..147b95a67 100644 --- a/examples/agent/klistener.cpp +++ b/examples/agent/klistener.cpp @@ -18,61 +18,61 @@ * Boston, MA 02110-1301, USA. */ -#include <QtCore/QDebug> -#include <QInputDialog> +#include <TQtCore/TQDebug> +#include <TQInputDialog> #include "klistener.h" #include "agent/polkitqt1-agent-session.h" -using namespace PolkitQt1::Agent; +using namespace PolkitTQt1::Agent; -KListener::KListener(QObject *parent) +KListener::KListener(TQObject *parent) : Listener(parent) { - qDebug() << "Registering KDE listener"; + tqDebug() << "Registering KDE listener"; } // README: this is just testing code... -void KListener::initiateAuthentication(const QString &actionId, - const QString &message, - const QString &iconName, - const PolkitQt1::Details &details, - const QString &cookie, - const PolkitQt1::Identity::List &identities, +void KListener::initiateAuthentication(const TQString &actionId, + const TQString &message, + const TQString &iconName, + const PolkitTQt1::Details &details, + const TQString &cookie, + const PolkitTQt1::Identity::List &identities, AsyncResult *result) { - qDebug() << "initiateAuthentication for " << actionId << " with message " << message; - qDebug() << "iconName " << iconName; - qDebug() << details.keys(); - qDebug() << "cookie" << cookie; + tqDebug() << "initiateAuthentication for " << actionId << " with message " << message; + tqDebug() << "iconName " << iconName; + tqDebug() << details.keys(); + tqDebug() << "cookie" << cookie; - Q_FOREACH (const PolkitQt1::Identity &identity, identities) { - qDebug() << identity.toString(); + Q_FOREACH (const PolkitTQt1::Identity &identity, identities) { + tqDebug() << identity.toString(); Session *session; session = new Session(identity, cookie, result); - connect(session, SIGNAL(request(QString, bool)), this, SLOT(request(QString, bool))); + connect(session, SIGNAL(request(TQString, bool)), this, SLOT(request(TQString, bool))); connect(session, SIGNAL(completed(bool)), this, SLOT(completed(bool))); - connect(session, SIGNAL(showError(QString)), this, SLOT(showError(QString))); - connect(session, SIGNAL(showInfo(QString)), this, SLOT(showInfo(QString))); + connect(session, SIGNAL(showError(TQString)), this, SLOT(showError(TQString))); + connect(session, SIGNAL(showInfo(TQString)), this, SLOT(showInfo(TQString))); session->initiate(); } } bool KListener::initiateAuthenticationFinish() { - qDebug() << "initiateAuthenticationFinish()"; + tqDebug() << "initiateAuthenticationFinish()"; return true; } void KListener::cancelAuthentication() { - qDebug() << "Cancelling authentication"; + tqDebug() << "Cancelling authentication"; } -void KListener::request(const QString &request, bool echo) +void KListener::request(const TQString &request, bool echo) { - qDebug() << "Request: " << request; + tqDebug() << "Request: " << request; Session *session = (Session *)sender(); @@ -81,7 +81,7 @@ void KListener::request(const QString &request, bool echo) void KListener::completed(bool gainedAuthorization) { - qDebug() << "Completed: " << gainedAuthorization; + tqDebug() << "Completed: " << gainedAuthorization; Session *session = (Session *)sender(); session->result()->setCompleted(); @@ -89,12 +89,12 @@ void KListener::completed(bool gainedAuthorization) delete session; } -void KListener::showError(const QString &text) +void KListener::showError(const TQString &text) { - qDebug() << "Error: " << text; + tqDebug() << "Error: " << text; } -void KListener::showInfo(const QString &text) +void KListener::showInfo(const TQString &text) { - qDebug() << "Info: " << text; + tqDebug() << "Info: " << text; } |