diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-30 13:47:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-30 13:47:29 +0900 |
commit | e8494e60efeb94c67c813d1c1c038031915e8c17 (patch) | |
tree | 3238b3e8ceeb577a8eda00da66704c7e5fc6f9f5 /agent/polkitqt1-agent-session.cpp | |
parent | 28de2ff84f59ac0b173670aa9c5331bc77c1e63f (diff) | |
download | polkit-tqt-e8494e60efeb94c67c813d1c1c038031915e8c17.tar.gz polkit-tqt-e8494e60efeb94c67c813d1c1c038031915e8c17.zip |
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'agent/polkitqt1-agent-session.cpp')
-rw-r--r-- | agent/polkitqt1-agent-session.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/agent/polkitqt1-agent-session.cpp b/agent/polkitqt1-agent-session.cpp index 52ddacf5e..add3d95b1 100644 --- a/agent/polkitqt1-agent-session.cpp +++ b/agent/polkitqt1-agent-session.cpp @@ -20,14 +20,14 @@ #include "polkitqt1-agent-session.h" -#include <QtCore/QDebug> +#include <TQtCore/TQDebug> #include "polkitqt1-identity.h" #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 #include <polkitagent/polkitagent.h> -using namespace PolkitQt1::Agent; +using namespace PolkitTQt1::Agent; class Session::Private { @@ -49,8 +49,8 @@ Session::Private::~Private() // polkitAgentSession is freed in Session d'tor } -Session::Session(const PolkitQt1::Identity &identity, const QString &cookie, AsyncResult *result, QObject *parent) - : QObject(parent) +Session::Session(const PolkitTQt1::Identity &identity, const TQString &cookie, AsyncResult *result, TQObject *parent) + : TQObject(parent) , d(new Private) { d->result = result; @@ -61,8 +61,8 @@ Session::Session(const PolkitQt1::Identity &identity, const QString &cookie, Asy g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-info", G_CALLBACK(Private::showInfo), this); } -Session::Session(PolkitAgentSession *pkAgentSession, QObject *parent) - : QObject(parent) +Session::Session(PolkitAgentSession *pkAgentSession, TQObject *parent) + : TQObject(parent) , d(new Private) { d->polkitAgentSession = pkAgentSession; @@ -85,7 +85,7 @@ void Session::initiate() polkit_agent_session_initiate(d->polkitAgentSession); } -void Session::setResponse(const QString &response) +void Session::setResponse(const TQString &response) { polkit_agent_session_response(d->polkitAgentSession, response.toUtf8().data()); } @@ -102,7 +102,7 @@ AsyncResult *Session::result() void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authorization, gpointer user_data) { - qDebug() << "COMPLETED"; + tqDebug() << "COMPLETED"; Session *session = (Session *)user_data; Q_EMIT(session)->completed(gained_authorization); @@ -113,20 +113,20 @@ void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authoriz void Session::Private::request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data) { - qDebug() << "REQUEST"; - Q_EMIT((Session *)user_data)->request(QString::fromUtf8(request), echo_on); + tqDebug() << "REQUEST"; + Q_EMIT((Session *)user_data)->request(TQString::fromUtf8(request), echo_on); } void Session::Private::showError(PolkitAgentSession *s, gchar *text, gpointer user_data) { - qDebug() << "showError"; - Q_EMIT((Session *)user_data)->showError(QString::fromUtf8(text)); + tqDebug() << "showError"; + Q_EMIT((Session *)user_data)->showError(TQString::fromUtf8(text)); } void Session::Private::showInfo(PolkitAgentSession *s, gchar *text, gpointer user_data) { - qDebug() << "showInfo"; - Q_EMIT((Session *)user_data)->showInfo(QString::fromUtf8(text)); + tqDebug() << "showInfo"; + Q_EMIT((Session *)user_data)->showInfo(TQString::fromUtf8(text)); } // @@ -160,7 +160,7 @@ void AsyncResult::setCompleted() d->result = NULL; } -void AsyncResult::setError(const QString &text) +void AsyncResult::setError(const TQString &text) { Q_ASSERT(d->result); g_simple_async_result_set_error(d->result, POLKIT_ERROR, POLKIT_ERROR_FAILED, "%s", text.toUtf8().data()); |