drumstick  2.7.0
SettingsFactory Class Reference

The SettingsFactory class holds a global QSettings object. More...

#include <settingsfactory.h>

Public Member Functions

QSettingsgetQSettings ()
 SettingsFactory::getQSettings creates and/or returns a QSettings object pointer. More...
 
QSettingsoperator-> ()
 SettingsFactory::operator -> is equivalent to calling getQSettings() More...
 

Static Public Member Functions

static void setFileName (const QString name)
 SettingsFactory::setFileName sets the global file name for the persisting settings and sets the INI format as well. More...
 

Detailed Description

The SettingsFactory class holds a global QSettings object.

This class creates and returns a QSettings object globally configured instance using native or file storage.

Examples:
vpiano.cpp.

Definition at line 48 of file settingsfactory.h.

Member Function Documentation

◆ getQSettings()

QSettings * getQSettings ( )

SettingsFactory::getQSettings creates and/or returns a QSettings object pointer.

Returns
the internal QSettings object pointer
Examples:
vpiano.cpp.

Definition at line 51 of file settingsfactory.cpp.

Referenced by SettingsFactory::operator->().

◆ operator->()

QSettings * operator-> ( )

SettingsFactory::operator -> is equivalent to calling getQSettings()

Returns
the internal QSettings object pointer

Definition at line 68 of file settingsfactory.cpp.

References SettingsFactory::getQSettings().

◆ setFileName()

void setFileName ( const QString  name)
static

SettingsFactory::setFileName sets the global file name for the persisting settings and sets the INI format as well.

Parameters
namethe new file name
Examples:
vpiano.cpp.

Definition at line 40 of file settingsfactory.cpp.


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