29 #include <lunaservice.h>
31 #include "cjson/json.h"
51 int setPasscode(
const std::string& mode,
const std::string& passcode, std::string& errorText);
52 bool matchPasscode(std::string passcode,
int& retriesLeft,
bool& lockedOut);
69 static bool cbDeviceWipe (LSHandle *sh, LSMessage *message,
void *data);
74 void registerService();
76 int validatePasscode(
const EASPolicy *
const policy,
const std::string& mode,
77 const std::string& passcode)
const;
78 int validateStrength(QString passcode)
const;
81 std::string readPasscode()
const;
82 void readDecryptedPasscode(std::string& passcode)
const;
83 void safelyEraseString(std::string& str)
const;
87 static bool keyManagerConnected(LSHandle* handle, LSMessage* msg,
void* ctxt);
88 void initKeyManager();
89 void updateKeyManager(
const std::string& oldPasscode);
93 void slotPolicyChanged (
const EASPolicy *
const policy);
98 std::string m_lockMode;