Example #1
0
bool CGUIDialogLockSettings::ShowAndGetLock(LockType &lockMode, std::string &password, int header /* = 20091 */)
{
  CProfile::CLock locks(lockMode, password);
  if (!ShowAndGetLock(locks, header, false, false))
    return false;

  locks.Validate();
  lockMode = locks.mode;
  password = locks.code;

  return true;
}
Example #2
0
bool CGUIDialogLockSettings::ShowAndGetLock(LockType& iLockMode, CStdString& strPassword, int iHeader)
{
  CProfile::CLock locks(iLockMode, strPassword);
  if (ShowAndGetLock(locks, iHeader, false, false))
  {
    locks.Validate();
    iLockMode = locks.mode;
    strPassword = locks.code;
    return true;
  }
  return false;
}