diff options
Diffstat (limited to 'examples/agent')
-rw-r--r-- | examples/agent/klistener.cpp | 58 | ||||
-rw-r--r-- | examples/agent/klistener.h | 30 | ||||
-rw-r--r-- | examples/agent/main.cpp | 2 | ||||
-rw-r--r-- | examples/agent/pkagentexample.cpp | 6 | ||||
-rw-r--r-- | examples/agent/pkagentexample.h | 6 |
5 files changed, 51 insertions, 51 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; } diff --git a/examples/agent/klistener.h b/examples/agent/klistener.h index 2576acdca..d0e45c6ba 100644 --- a/examples/agent/klistener.h +++ b/examples/agent/klistener.h @@ -21,36 +21,36 @@ #ifndef POLKIT_QT_AGENT_KDE_LISTENER_H #define POLKIT_QT_AGENT_KDE_LISTENER_H -#include <QtCore/QObject> -#include <QtCore/QString> +#include <TQtCore/TQObject> +#include <TQtCore/TQString> #include "agent/polkitqt1-agent-listener.h" #include "core/polkitqt1-identity.h" #include "core/polkitqt1-details.h" #include "agent/polkitqt1-agent-session.h" -class KListener : public PolkitQt1::Agent::Listener +class KListener : public PolkitTQt1::Agent::Listener { Q_OBJECT - Q_DISABLE_COPY(KListener) + TQ_DISABLE_COPY(KListener) public: - KListener(QObject *parent = 0); + KListener(TQObject *parent = 0); ~KListener() {}; public Q_SLOTS: - void initiateAuthentication(const QString &actionId, - const QString &message, - const QString &iconName, - const PolkitQt1::Details &details, - const QString &cookie, - const PolkitQt1::Identity::List &identities, - PolkitQt1::Agent::AsyncResult *result); + void initiateAuthentication(const TQString &actionId, + const TQString &message, + const TQString &iconName, + const PolkitTQt1::Details &details, + const TQString &cookie, + const PolkitTQt1::Identity::List &identities, + PolkitTQt1::Agent::AsyncResult *result); bool initiateAuthenticationFinish(); void cancelAuthentication(); - void request(const QString &request, bool echo); + void request(const TQString &request, bool echo); void completed(bool gainedAuthorization); - void showError(const QString &text); - void showInfo(const QString &text); + void showError(const TQString &text); + void showInfo(const TQString &text); }; #endif diff --git a/examples/agent/main.cpp b/examples/agent/main.cpp index 682b04747..8e61f7066 100644 --- a/examples/agent/main.cpp +++ b/examples/agent/main.cpp @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ -#include <QApplication> +#include <TQApplication> #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 diff --git a/examples/agent/pkagentexample.cpp b/examples/agent/pkagentexample.cpp index ed36363ba..858376c22 100644 --- a/examples/agent/pkagentexample.cpp +++ b/examples/agent/pkagentexample.cpp @@ -3,15 +3,15 @@ #include <polkitagent/polkitagent.h> #include "pkagentexample.h" #include <glib-object.h> -#include <QtCore/QDebug> +#include <TQtCore/TQDebug> #include "polkitqt1-subject.h" PkAgentExample::PkAgentExample(int &argc, char **argv) - : QCoreApplication(argc, argv) + : TQCoreApplication(argc, argv) { g_type_init(); - PolkitQt1::UnixSessionSubject session(getpid()); + PolkitTQt1::UnixSessionSubject session(getpid()); m_listener.registerListener(session, "/org/kde/PolicyKit1/AuthenticationAgent"); } diff --git a/examples/agent/pkagentexample.h b/examples/agent/pkagentexample.h index 62c7035a5..61dfb3dab 100644 --- a/examples/agent/pkagentexample.h +++ b/examples/agent/pkagentexample.h @@ -24,11 +24,11 @@ #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 -#include <QtDBus/QDBusContext> -#include <QCoreApplication> +#include <TQtDBus/TQDBusContext> +#include <TQCoreApplication> #include "klistener.h" -class PkAgentExample : public QCoreApplication +class PkAgentExample : public TQCoreApplication { Q_OBJECT public: |