Workspace 6.21.5
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
AgentSettings Class Reference

#include <Workspace/Application/Agent/agentsettings.h>

Inheritance diagram for AgentSettings:
[legend]

Public Member Functions

 AgentSettings (const QString &organisation, const QString &application, QSettings::Scope scope)
 
 ~AgentSettings () override
 
bool load ()
 
bool save ()
 
- Public Member Functions inherited from SettingContainer
 SettingContainer (const QString &organisation, const QString &application, QSettings::Scope scope)
 
 SettingContainer (const SettingContainer &)=delete
 
virtual ~SettingContainer ()
 
void add (const bool &defaultValue, const QString &key, const SettingItem< bool > &tag)
 
void add (const int &defaultValue, const QString &key, const SettingItem< int > &tag)
 
void add (const QString &defaultValue, const QString &key, const SettingItem< QString > &tag)
 
void addNested (const QString &key)
 
SettingContainergetNested (const QString &key)
 
QSettings::Scope getScope () const
 
bool getValue (const SettingItem< bool > &tag, QPair< bool, bool > defaultValue=qMakePair(false, false)) const
 
int getValue (const SettingItem< int > &tag, QPair< bool, int > defaultValue=qMakePair(false, 0)) const
 
QString getValue (const SettingItem< QString > &tag, QPair< bool, QString > defaultValue=qMakePair(false, QString())) const
 
void inherit (const SettingItem< bool > &tag)
 
void inherit (const SettingItem< int > &tag)
 
void inherit (const SettingItem< QString > &tag)
 
bool isInherited (const SettingItem< bool > &tag) const
 
bool isInherited (const SettingItem< int > &tag) const
 
bool isInherited (const SettingItem< QString > &tag) const
 
bool isMissing (const SettingItem< bool > &tag) const
 
bool isMissing (const SettingItem< int > &tag) const
 
bool isMissing (const SettingItem< QString > &tag) const
 
bool isWritable ()
 
bool load ()
 
bool load (QSettings &settings)
 
SettingContaineroperator= (const SettingContainer &)=delete
 
bool save () const
 
bool save (QSettings &settings) const
 
void setValue (const SettingItem< bool > &tag, bool value)
 
void setValue (const SettingItem< int > &tag, int value)
 
void setValue (const SettingItem< QString > &tag, QString value)
 

Static Public Attributes

static const Authentication::SettingItem< bool > startServerWithAgent
 

Protected Attributes

std::unique_ptr< AgentSettingsImpl > pImpl_
 

Detailed Description

Manages settings associated with an authentication server.

Constructor & Destructor Documentation

◆ AgentSettings()

AgentSettings ( const QString &  organisation,
const QString &  application,
QSettings::Scope  scope 
)

◆ ~AgentSettings()

~AgentSettings ( )
overridedefault

Destructor.

Member Function Documentation

◆ load()

bool load ( )

Loads the server settings from the settings area.

Returns
Returns true if the settings were successfully loaded.

◆ save()

bool save ( )

Saves the settings to the settings store.

Returns
Returns true if the settings were saved successfully.

Member Data Documentation

◆ pImpl_

std::unique_ptr<AgentSettingsImpl> pImpl_
protected

◆ startServerWithAgent

const Authentication::SettingItem< bool > startServerWithAgent
static