QuasarAppLib
QuasarAppUtils::SettingsListner Class Referenceabstract

The SettingsListner class is listner of the ISettings global object. The SettingsListner class is abstrct class and contains only one method for hendling settings changes. More...

#include <settingslistner.h>

Collaboration diagram for QuasarAppUtils::SettingsListner:
Collaboration graph

Public Member Functions

 SettingsListner ()
 
virtual ~SettingsListner ()
 

Protected Member Functions

virtual void handleSettingsChanged (const QString &key, const QVariant &value)=0
 handleSettingsChanged This method will be invoked when settings of application has bean changed.
 

Detailed Description

The SettingsListner class is listner of the ISettings global object. The SettingsListner class is abstrct class and contains only one method for hendling settings changes.

Example of use :

protected:
void handleSettingsChanged(const QString& key, const QVariant& value) override {
if (key == "shareName") {
setSessinon(static_cast<long long >(rand()) * rand());
}
}
};
The SettingsListner class is listner of the ISettings global object. The SettingsListner class is abs...
void gen(int size, QByteArray &result)
See also
ISettings

Definition at line 39 of file settingslistner.h.

Constructor & Destructor Documentation

◆ SettingsListner()

QuasarAppUtils::SettingsListner::SettingsListner ( )

Definition at line 13 of file settingslistner.cpp.

Here is the call graph for this function:

◆ ~SettingsListner()

QuasarAppUtils::SettingsListner::~SettingsListner ( )
virtual

Definition at line 28 of file settingslistner.cpp.

Member Function Documentation

◆ handleSettingsChanged()

virtual void QuasarAppUtils::SettingsListner::handleSettingsChanged ( const QString key,
const QVariant value 
)
protectedpure virtual

handleSettingsChanged This method will be invoked when settings of application has bean changed.

Parameters
keyThis is key of a changed settings.
valueThis is a new value of a changed settings.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: