From 35181c8a0f3b1e381a53b59bb327c477e55c0178 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 17 Dec 2021 19:53:54 +0900 Subject: Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tq Signed-off-by: Michele Calgaro --- src/policykitlistener.h | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/policykitlistener.h') diff --git a/src/policykitlistener.h b/src/policykitlistener.h index 21286fc..f7906e4 100644 --- a/src/policykitlistener.h +++ b/src/policykitlistener.h @@ -21,60 +21,60 @@ */ -#include +#include -#include -#include +#include +#include class AuthDialog; -using namespace PolkitQt1::Agent; +using namespace PolkitTQt1::Agent; class PolicyKitListener : public Listener { Q_OBJECT - Q_CLASSINFO("D-Bus Interface", "org.kde.Polkit1AuthAgent") + TQ_CLASSINFO("D-Bus Interface", "org.kde.Polkit1AuthAgent") public: - PolicyKitListener(QObject *parent = 0); + PolicyKitListener(TQObject *parent = 0); virtual ~PolicyKitListener(); public 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 tryAgain(); void finishObtainPrivilege(); - void request(const QString &request, bool echo); + void request(const TQString &request, bool echo); void completed(bool gainedAuthorization); - void showError(const QString &text); + void showError(const TQString &text); - void setWIdForAction(const QString &action, qulonglong wID); - /* void showInfo(const QString &text); */ + void setWIdForAction(const TQString &action, qulonglong wID); + /* void showInfo(const TQString &text); */ private: - QWeakPointer m_dialog; - QWeakPointer m_session; + TQWeakPointer m_dialog; + TQWeakPointer m_session; bool m_inProgress; bool m_gainedAuthorization; bool m_wasCancelled; int m_numTries; - PolkitQt1::Identity::List m_identities; - PolkitQt1::Agent::AsyncResult* m_result; - QString m_cookie; - PolkitQt1::Identity m_selectedUser; - QHash< QString, qulonglong > m_actionsToWID; + PolkitTQt1::Identity::List m_identities; + PolkitTQt1::Agent::AsyncResult* m_result; + TQString m_cookie; + PolkitTQt1::Identity m_selectedUser; + TQHash< TQString, qulonglong > m_actionsToWID; private slots: void dialogAccepted(); void dialogCanceled(); - void userSelected(const PolkitQt1::Identity &identity); + void userSelected(const PolkitTQt1::Identity &identity); }; #endif -- cgit v1.2.1