| 322 | } |
| 323 | |
| 324 | WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const |
| 325 | { |
| 326 | if(!m_wallet->isCrypted()) |
| 327 | { |
| 328 | return Unencrypted; |
| 329 | } |
| 330 | else if(m_wallet->isLocked()) |
| 331 | { |
| 332 | return Locked; |
| 333 | } |
| 334 | else |
| 335 | { |
| 336 | return Unlocked; |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphrase) |
| 341 | { |
no test coverage detected