|
|
|
@ -76,10 +76,10 @@ void PolkitListener::initiateAuthentication(const TQString &actionId, const TQSt
|
|
|
|
|
m_inProgress = true;
|
|
|
|
|
|
|
|
|
|
m_dialog = new AuthDialog(actionId, message, iconName, details, identities);
|
|
|
|
|
connect(m_dialog, TQT_SIGNAL(okClicked()), TQT_SLOT(dialogAccepted()));
|
|
|
|
|
connect(m_dialog, TQT_SIGNAL(cancelClicked()), TQT_SLOT(dialogCanceled()));
|
|
|
|
|
connect(m_dialog, TQT_SIGNAL(adminUserSelected(const PolkitTQt::Identity&)),
|
|
|
|
|
TQT_SLOT(userSelected(const PolkitTQt::Identity&)));
|
|
|
|
|
connect(m_dialog, TQ_SIGNAL(okClicked()), TQ_SLOT(dialogAccepted()));
|
|
|
|
|
connect(m_dialog, TQ_SIGNAL(cancelClicked()), TQ_SLOT(dialogCanceled()));
|
|
|
|
|
connect(m_dialog, TQ_SIGNAL(adminUserSelected(const PolkitTQt::Identity&)),
|
|
|
|
|
TQ_SLOT(userSelected(const PolkitTQt::Identity&)));
|
|
|
|
|
|
|
|
|
|
m_dialog->setOptions();
|
|
|
|
|
m_dialog->show();
|
|
|
|
@ -108,11 +108,11 @@ void PolkitListener::tryAgain()
|
|
|
|
|
if (m_selectedUser.isValid())
|
|
|
|
|
{
|
|
|
|
|
m_session = new Session(m_selectedUser, m_cookie, m_result);
|
|
|
|
|
connect(m_session, TQT_SIGNAL(request(const TQString&, bool)), this,
|
|
|
|
|
TQT_SLOT(request(const TQString&, bool)));
|
|
|
|
|
connect(m_session, TQT_SIGNAL(completed(bool)), this, TQT_SLOT(completed(bool)));
|
|
|
|
|
connect(m_session, TQT_SIGNAL(showError(const TQString&)), this,
|
|
|
|
|
TQT_SLOT(showError(const TQString&)));
|
|
|
|
|
connect(m_session, TQ_SIGNAL(request(const TQString&, bool)), this,
|
|
|
|
|
TQ_SLOT(request(const TQString&, bool)));
|
|
|
|
|
connect(m_session, TQ_SIGNAL(completed(bool)), this, TQ_SLOT(completed(bool)));
|
|
|
|
|
connect(m_session, TQ_SIGNAL(showError(const TQString&)), this,
|
|
|
|
|
TQ_SLOT(showError(const TQString&)));
|
|
|
|
|
m_session->initiate();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|