KiCad PCB EDA Suite
Loading...
Searching...
No Matches
secrets.cpp File Reference
#include <kiplatform/secrets.h>
#include <windows.h>
#include <wincred.h>
#include <wx/string.h>

Go to the source code of this file.

Namespaces

namespace  KIPLATFORM
 
namespace  KIPLATFORM::SECRETS
 

Functions

bool KIPLATFORM::SECRETS::StoreSecret (const wxString &aService, const wxString &aKey, const wxString &aSecret)
 
void KIPLATFORM::SECRETS::StoreSecretAsync (const wxString &aService, const wxString &aKey, const wxString &aSecret, std::function< void(bool)> aDone=nullptr)
 Like StoreSecret(), but never blocks the event loop while the platform asks the user to unlock the store.
 
bool KIPLATFORM::SECRETS::GetSecret (const wxString &aService, const wxString &aKey, wxString &aSecret)
 
void KIPLATFORM::SECRETS::GetSecretAsync (const wxString &aService, const wxString &aKey, std::function< void(bool, const wxString &)> aDone)
 Like GetSecret(), but never blocks the event loop while the platform asks the user to unlock the store.
 
bool KIPLATFORM::SECRETS::GetSecretNoPrompt (const wxString &aService, const wxString &aKey, wxString &aSecret)
 Like GetSecret(), but never waits on the user.
 
bool KIPLATFORM::SECRETS::DeleteSecret (const wxString &aService, const wxString &aKey)