|
|
@ -59,7 +59,7 @@ static KVncView *kvncview;
|
|
|
|
//Passwords and TDEWallet data
|
|
|
|
//Passwords and TDEWallet data
|
|
|
|
extern TDEWallet::Wallet *wallet;
|
|
|
|
extern TDEWallet::Wallet *wallet;
|
|
|
|
bool useTDEWallet = false;
|
|
|
|
bool useTDEWallet = false;
|
|
|
|
static TQCString password;
|
|
|
|
static TQString password;
|
|
|
|
static TQMutex passwordLock;
|
|
|
|
static TQMutex passwordLock;
|
|
|
|
static TQWaitCondition passwordWaiter;
|
|
|
|
static TQWaitCondition passwordWaiter;
|
|
|
|
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ KVncView::KVncView(TQWidget *parent,
|
|
|
|
m_cursorState(dotCursorState)
|
|
|
|
m_cursorState(dotCursorState)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kvncview = this;
|
|
|
|
kvncview = this;
|
|
|
|
password = _password.latin1();
|
|
|
|
password = _password;
|
|
|
|
dpy = tqt_xdisplay();
|
|
|
|
dpy = tqt_xdisplay();
|
|
|
|
setFixedSize(16,16);
|
|
|
|
setFixedSize(16,16);
|
|
|
|
setFocusPolicy(TQ_StrongFocus);
|
|
|
|
setFocusPolicy(TQ_StrongFocus);
|
|
|
@ -417,7 +417,7 @@ void KVncView::customEvent(TQCustomEvent *e)
|
|
|
|
emit showingPasswordDialog(true);
|
|
|
|
emit showingPasswordDialog(true);
|
|
|
|
|
|
|
|
|
|
|
|
if (KPasswordDialog::getPassword(password, i18n("Access to the system requires a password.")) != KPasswordDialog::Accepted)
|
|
|
|
if (KPasswordDialog::getPassword(password, i18n("Access to the system requires a password.")) != KPasswordDialog::Accepted)
|
|
|
|
password = TQCString();
|
|
|
|
password = TQString();
|
|
|
|
|
|
|
|
|
|
|
|
emit showingPasswordDialog(false);
|
|
|
|
emit showingPasswordDialog(false);
|
|
|
|
|
|
|
|
|
|
|
@ -450,7 +450,7 @@ void KVncView::customEvent(TQCustomEvent *e)
|
|
|
|
wallet->setFolder(krdc_folder);
|
|
|
|
wallet->setFolder(krdc_folder);
|
|
|
|
TQString newPass;
|
|
|
|
TQString newPass;
|
|
|
|
if ( wallet->hasEntry(kvncview->host()) && !wallet->readPassword(kvncview->host(), newPass) ) {
|
|
|
|
if ( wallet->hasEntry(kvncview->host()) && !wallet->readPassword(kvncview->host(), newPass) ) {
|
|
|
|
password=newPass.latin1();
|
|
|
|
password=newPass;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -792,7 +792,7 @@ int getPassword(char * &passwd) {
|
|
|
|
|
|
|
|
|
|
|
|
//Process the password if we got it, clear it if we didn't
|
|
|
|
//Process the password if we got it, clear it if we didn't
|
|
|
|
if (retV) {
|
|
|
|
if (retV) {
|
|
|
|
passwd = strdup((const char*)password);
|
|
|
|
passwd = strdup(password.utf8());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Pack up and go home
|
|
|
|
//Pack up and go home
|
|
|
|