Miam-Player  0.8.0
A nice music player
Settings Class Reference

Settings class contains all relevant pairs of (keys, values) used by Miam-Player. More...

#include <settings.h>

Inheritance diagram for Settings:

Public Types

enum  RequestSqlModel { RSM_Hierarchical = 1, RSM_Flat = 2 }
 

Public Slots

void setLastActiveView (const QString &viewName)
 Slots. More...
 
void setThemeName (const QString &theme)
 
void setVolume (qreal v)
 

Signals

void themeHasChanged ()
 

Public Member Functions

QString lastActiveView () const
 
RequestSqlModel sqlModel () const
 
QString theme () const
 
qreal volume () const
 
QMap< QString, QVariant > shortcuts () const
 

Static Public Member Functions

static Settingsinstance ()
 

Detailed Description

Settings class contains all relevant pairs of (keys, values) used by Miam-Player.

Author
Matthieu Bachelier

Member Enumeration Documentation

Enumerator
RSM_Hierarchical 
RSM_Flat 

Member Function Documentation

Settings * Settings::instance ( )
static

Singleton Pattern to easily use Settings everywhere in the app.

Singleton pattern to be able to easily use settings everywhere in the app.

QString Settings::lastActiveView ( ) const

Returns the last view activated by the user. Used when reopening the player.

void Settings::setLastActiveView ( const QString &  viewName)
slot

Slots.

Sets the last view activated by the user. Used when reopening the player.

void Settings::setThemeName ( const QString &  theme)
slot

Sets a new theme.

void Settings::setVolume ( qreal  v)
slot

Sets volume from the slider.

QMap< QString, QVariant > Settings::shortcuts ( ) const
Settings::RequestSqlModel Settings::sqlModel ( ) const
QString Settings::theme ( ) const

Returns the actual theme name.

void Settings::themeHasChanged ( )
signal
qreal Settings::volume ( ) const

Returns volume from the slider.


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