summaryrefslogtreecommitdiffstats
path: root/src/policykitlistener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/policykitlistener.cpp')
-rw-r--r--src/policykitlistener.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/policykitlistener.cpp b/src/policykitlistener.cpp
index 6da9461..c2ea924 100644
--- a/src/policykitlistener.cpp
+++ b/src/policykitlistener.cpp
@@ -24,26 +24,26 @@
#include <KDebug>
#include <KWindowSystem>
-#include <PolkitQt1/Agent/Listener>
-#include <PolkitQt1/Agent/Session>
-#include <PolkitQt1/Subject>
-#include <PolkitQt1/Identity>
-#include <PolkitQt1/Details>
-#include <QtDBus/QDBusConnection>
+#include <PolkitTQt1/Agent/Listener>
+#include <PolkitTQt1/Agent/Session>
+#include <PolkitTQt1/Subject>
+#include <PolkitTQt1/Identity>
+#include <PolkitTQt1/Details>
+#include <TQtDBus/TQDBusConnection>
#include "polkit1authagentadaptor.h"
-PolicyKitListener::PolicyKitListener(QObject *parent)
+PolicyKitListener::PolicyKitListener(TQObject *parent)
: Listener(parent)
, m_inProgress(false)
, m_selectedUser(0)
{
(void) new Polkit1AuthAgentAdaptor(this);
- if (!QDBusConnection::sessionBus().registerObject("/org/kde/Polkit1AuthAgent", this,
- QDBusConnection::ExportScriptableSlots |
- QDBusConnection::ExportScriptableProperties |
- QDBusConnection::ExportAdaptors)) {
+ if (!TQDBusConnection::sessionBus().registerObject("/org/kde/Polkit1AuthAgent", this,
+ TQDBusConnection::ExportScriptableSlots |
+ TQDBusConnection::ExportScriptableProperties |
+ TQDBusConnection::ExportAdaptors)) {
kWarning() << "Could not initiate DBus helper!";
}
@@ -54,19 +54,19 @@ PolicyKitListener::~PolicyKitListener()
{
}
-void PolicyKitListener::setWIdForAction(const QString& action, qulonglong wID)
+void PolicyKitListener::setWIdForAction(const TQString& action, qulonglong wID)
{
kDebug() << "On to the handshake";
m_actionsToWID[action] = wID;
}
-void PolicyKitListener::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 PolicyKitListener::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)
{
kDebug() << "Initiating authentication";
@@ -93,7 +93,7 @@ void PolicyKitListener::initiateAuthentication(const QString &actionId,
m_dialog = new AuthDialog(actionId, message, iconName, details, identities, parentId);
connect(m_dialog.data(), SIGNAL(okClicked()), SLOT(dialogAccepted()));
connect(m_dialog.data(), SIGNAL(cancelClicked()), SLOT(dialogCanceled()));
- connect(m_dialog.data(), SIGNAL(adminUserSelected(PolkitQt1::Identity)), SLOT(userSelected(PolkitQt1::Identity)));
+ connect(m_dialog.data(), SIGNAL(adminUserSelected(PolkitTQt1::Identity)), SLOT(userSelected(PolkitTQt1::Identity)));
kDebug() << "WinId of the dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
m_dialog.data()->setOptions();
@@ -120,9 +120,9 @@ void PolicyKitListener::tryAgain()
// We will create new session only when some user is selected
if (m_selectedUser.isValid()) {
m_session = new Session(m_selectedUser, m_cookie, m_result);
- connect(m_session.data(), SIGNAL(request(QString,bool)), this, SLOT(request(QString,bool)));
+ connect(m_session.data(), SIGNAL(request(TQString,bool)), this, SLOT(request(TQString,bool)));
connect(m_session.data(), SIGNAL(completed(bool)), this, SLOT(completed(bool)));
- connect(m_session.data(), SIGNAL(showError(QString)), this, SLOT(showError(QString)));
+ connect(m_session.data(), SIGNAL(showError(TQString)), this, SLOT(showError(TQString)));
m_session.data()->initiate();
}
@@ -180,7 +180,7 @@ void PolicyKitListener::cancelAuthentication()
finishObtainPrivilege();
}
-void PolicyKitListener::request(const QString &request, bool echo)
+void PolicyKitListener::request(const TQString &request, bool echo)
{
Q_UNUSED(echo);
kDebug() << "Request: " << request;
@@ -200,7 +200,7 @@ void PolicyKitListener::completed(bool gainedAuthorization)
finishObtainPrivilege();
}
-void PolicyKitListener::showError(const QString &text)
+void PolicyKitListener::showError(const TQString &text)
{
kDebug() << "Error: " << text;
}
@@ -226,7 +226,7 @@ void PolicyKitListener::dialogCanceled()
finishObtainPrivilege();
}
-void PolicyKitListener::userSelected(const PolkitQt1::Identity &identity)
+void PolicyKitListener::userSelected(const PolkitTQt1::Identity &identity)
{
m_selectedUser = identity;
// If some user is selected we must destroy existing session