drumstick  2.10.0
C++MIDIlibrariesusingQtobjects,idioms,andstyle.
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 persistent settings and sets the INI format as well. More...
 
static QString fileName ()
 SettingsFactory::fileName returns the file name of the persistent settings. More...
 
static QSettings::Format format ()
 SettingsFactory::format returns the storage format of the persistent settings. 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 58 of file settingsfactory.h.

Member Function Documentation

◆ fileName()

QString fileName ( )
static

SettingsFactory::fileName returns the file name of the persistent settings.

Returns
QString the global file name of the persistent settings

Definition at line 54 of file settingsfactory.cpp.

◆ format()

QSettings::Format format ( )
static

SettingsFactory::format returns the storage format of the persistent settings.

Returns
QSettings::Format the storage format of the persistent settings

Definition at line 63 of file settingsfactory.cpp.

◆ 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 73 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 91 of file settingsfactory.cpp.

References SettingsFactory::getQSettings().

◆ setFileName()

void setFileName ( const QString  name)
static

SettingsFactory::setFileName sets the global file name for the persistent 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: