QuasarAppLib 1.0.530.c9fba11
QuasarAppUtils::SettingsListener Class Referenceabstract

The SettingsListener class is listener of the ISettings global object. The SettingsListener class is abstract class and contains only one method for hendling settings changes. More...

#include <settingslistener.h>

Collaboration diagram for QuasarAppUtils::SettingsListener:
Collaboration graph

Public Member Functions

 SettingsListener ()
virtual ~SettingsListener ()

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 SettingsListener class is listener of the ISettings global object. The SettingsListener class is abstract class and contains only one method for hendling settings changes.

Example of use :

class MyClass : protected QuasarAppUtils::SettingsListener {
protected:
void handleSettingsChanged(const QString& key, const QVariant& value) override {
if (key == "shareName") {
setSessinon(static_cast<long long >(rand()) * rand());
}
}
};
The SettingsListener class is listener of the ISettings global object. The SettingsListener class is ...
virtual void handleSettingsChanged(const QString &key, const QVariant &value)=0
handleSettingsChanged This method will be invoked when settings of application has bean changed.
See also
ISettings

Definition at line 39 of file settingslistener.h.

Constructor & Destructor Documentation

◆ SettingsListener()

QuasarAppUtils::SettingsListener::SettingsListener ( )

Definition at line 13 of file settingslistener.cpp.

Here is the call graph for this function:

◆ ~SettingsListener()

QuasarAppUtils::SettingsListener::~SettingsListener ( )
virtual

Definition at line 28 of file settingslistener.cpp.

Member Function Documentation

◆ handleSettingsChanged()

virtual void QuasarAppUtils::SettingsListener::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: