| 411 | } |
| 412 | |
| 413 | void CParameterUser::slotLoadPassword() |
| 414 | { |
| 415 | #if HAVE_QTKEYCHAIN |
| 416 | qDebug(log) << Q_FUNC_INFO; |
| 417 | QKeychain::ReadPasswordJob* pReadJob = qobject_cast<QKeychain::ReadPasswordJob*>(sender()); |
| 418 | if(!pReadJob) return; |
| 419 | QString key = pReadJob->key(); |
| 420 | if (pReadJob->error()) { |
| 421 | qCritical(log) << "Fail: read key" << key << ";" << pReadJob->errorString(); |
| 422 | return; |
| 423 | } |
| 424 | qDebug(log) << "Read key" << key << "succeeded."; |
| 425 | SetPassword(pReadJob->textData()); |
| 426 | #endif |
| 427 | } |
| 428 | |
| 429 | void CParameterUser::slotLoadPassPhrase() |
| 430 | { |
nothing calls this directly
no test coverage detected