diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-17 19:53:54 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-17 19:53:54 +0900 |
commit | 35181c8a0f3b1e381a53b59bb327c477e55c0178 (patch) | |
tree | 1c546bbf2c5b44a8319cd4a1a43146ba1a3998e8 /src/policykitlistener.h | |
parent | 5a3408879dbba9ac96ea027a16a5c67aaf49d855 (diff) | |
download | polkit-agent-tde-35181c8a0f3b1e381a53b59bb327c477e55c0178.tar.gz polkit-agent-tde-35181c8a0f3b1e381a53b59bb327c477e55c0178.zip |
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tq
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/policykitlistener.h')
-rw-r--r-- | src/policykitlistener.h | 50 |
1 files changed, 25 insertions, 25 deletions
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 <PolkitQt1/Agent/Listener> +#include <PolkitTQt1/Agent/Listener> -#include <QtCore/QWeakPointer> -#include <QtCore/QHash> +#include <TQtCore/TQWeakPointer> +#include <TQtCore/TQHash> 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<AuthDialog> m_dialog; - QWeakPointer<Session> m_session; + TQWeakPointer<AuthDialog> m_dialog; + TQWeakPointer<Session> 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 |