1#ifndef IV_SRC_CONFIG_USERPROFILEMANAGER_HPP_
2#define IV_SRC_CONFIG_USERPROFILEMANAGER_HPP_
18 const std::weak_ptr<iv::diamar::UserProfile> &defaultWithAccess);
26 void configure(
const std::weak_ptr<iv::diamar::UserProfile> &defaultUser,
27 std::weak_ptr<iv::diamar::UserProfile> defaultUserWithAccess);
36 void setDefaultProfile(
const std::weak_ptr<iv::diamar::UserProfile> &userProfile);
37 void setProfile(
const std::weak_ptr<iv::diamar::UserProfile> &userProfile);
52 [[nodiscard]] std::weak_ptr<iv::diamar::UserProfile>
getUserProfile()
const;
58 std::weak_ptr<iv::diamar::UserProfile>
m_active;
Definition UserProfileManager.hpp:12
bool mustBeNotifiedByRepeatersZone() const
Definition UserProfileManager.cpp:341
void restartTimer()
Definition UserProfileManager.cpp:76
bool isChangedToDefault() const
Definition UserProfileManager.cpp:313
bool hasPermissionToChangeSecuritySettings() const
Definition UserProfileManager.cpp:162
void setChangedToDefault(bool value)
Definition UserProfileManager.cpp:131
std::weak_ptr< iv::diamar::UserProfile > m_defaultWithAccess
Definition UserProfileManager.hpp:62
std::weak_ptr< iv::diamar::UserProfile > m_default
Definition UserProfileManager.hpp:59
static std::string generateRandomPassword()
Definition UserProfileManager.cpp:15
bool m_isChangedToDefault
Definition UserProfileManager.hpp:64
bool mustBeNotified() const
Definition UserProfileManager.cpp:318
std::weak_ptr< iv::diamar::UserProfile > getUserProfileActive() const
Definition UserProfileManager.cpp:369
bool hasPermissionToCreateBackup() const
Definition UserProfileManager.cpp:188
UserProfileManager & operator=(UserProfileManager &&other)=delete
std::weak_ptr< iv::diamar::UserProfile > getUserProfileDefault() const
Definition UserProfileManager.cpp:374
void setDefaultProfile(const std::weak_ptr< iv::diamar::UserProfile > &userProfile)
Definition UserProfileManager.cpp:86
std::weak_ptr< iv::diamar::UserProfile > m_normalDefault
Definition UserProfileManager.hpp:60
bool m_inPerpetualMode
Definition UserProfileManager.hpp:65
bool hasPermissionToControlAccess() const
Definition UserProfileManager.cpp:287
const iv::core::MonotonicTimer & timerAccess() const
Definition UserProfileManager.cpp:51
UserProfileManager()
Definition UserProfileManager.cpp:26
void processTimer()
Definition UserProfileManager.cpp:56
iv::core::MonotonicTimer m_timerAccess
Definition UserProfileManager.hpp:66
std::weak_ptr< iv::diamar::UserProfile > m_active
Definition UserProfileManager.hpp:58
iv::diamar::eUserProfileType getTypeCurrentUser() const
Definition UserProfileManager.cpp:81
std::weak_ptr< iv::diamar::UserProfile > getUserProfile() const
Definition UserProfileManager.cpp:364
void configure(const std::weak_ptr< iv::diamar::UserProfile > &defaultUser, std::weak_ptr< iv::diamar::UserProfile > defaultUserWithAccess)
Definition UserProfileManager.cpp:38
~UserProfileManager()=default
void setProfile(const std::weak_ptr< iv::diamar::UserProfile > &userProfile)
Definition UserProfileManager.cpp:93
UserProfileManager(const UserProfileManager &other)=delete
bool hasPermissionToRecoverBackup() const
Definition UserProfileManager.cpp:214
std::weak_ptr< iv::diamar::UserProfile > getUserProfileDefaultWithAccess() const
Definition UserProfileManager.cpp:379
UserProfileManager & operator=(const UserProfileManager &other)=delete
bool hasPermissionToChangeNetworks() const
Definition UserProfileManager.cpp:136
UserProfileManager(UserProfileManager &&other)=delete
bool hasPermissionToACK() const
Definition UserProfileManager.cpp:239
bool hasPermissionToChangeParameters() const
Definition UserProfileManager.cpp:262
Definition MonotonicTimer.hpp:12
Definition ConfigSsh.hpp:13
eUserProfileType
Definition enums.hpp:34