Qmmp
Public Slots | Public Member Functions | Static Public Member Functions
QmmpUiSettings Class Reference

#include <qmmpuisettings.h>

List of all members.

Public Slots

void sync ()

Public Member Functions

 QmmpUiSettings (QObject *parent=0)
virtual ~QmmpUiSettings ()
bool convertUnderscore () const
bool convertTwenty () const
bool useMetadata () const
const QString format () const
void setConvertUnderscore (bool enabled)
void setConvertTwenty (bool enabled)
void setFormat (const QString &format)
void setUseMetadata (bool enabled)
bool resumeOnStartup () const
void setResumeOnStartup (bool enabled)
QStringList restrictFilters () const
void setRestrictFilters (const QString &filters)
QStringList excludeFilters () const
void setExcludeFilters (const QString &filters)
bool useDefaultPlayList () const
QString defaultPlayListName () const
void setDefaultPlayList (const QString &name, bool enabled=true)

Static Public Member Functions

static QmmpUiSettingsinstance ()

Detailed Description

The QmmpUiSettings class provides access to global libqmmpui library settings.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

QmmpUiSettings ( QObject *  parent = 0) [explicit]

Constructor.

Parameters:
parentParent object. This functions is for internal usage only, use QmmpSettings::instance() instead.
virtual ~QmmpUiSettings ( ) [virtual]

Destructor.


Member Function Documentation

bool convertTwenty ( ) const

Returns state of the "Convert %20 to blanks" option (true - enabled, false - disabled).

bool convertUnderscore ( ) const

Returns state of the "Convert underscores to blanks" option (true - enabled, false - disabled).

QString defaultPlayListName ( ) const

Returns default playlist name.

QStringList excludeFilters ( ) const

Returns a list of filters which should be excluded from incoming files while directory scanning.

const QString format ( ) const

Returns title format string.

static QmmpUiSettings* instance ( ) [static]

Returns a pointer to the QmmpUiSettings instance.

QStringList restrictFilters ( ) const

Returns a list of filters which should be used for directory scanning.

bool resumeOnStartup ( ) const

Returns true if option "Resume On Startup" is enabled, otherwise returns false

void setConvertTwenty ( bool  enabled)

Sets the "Convert %20 to blanks" option state to enabled

Parameters:
enabledOption state (true - enabled, false - disabled)
void setConvertUnderscore ( bool  enabled)

Sets the "Convert underscores to blanks" option state to enabled

Parameters:
enabledOption state (true - enabled, false - disabled)
void setDefaultPlayList ( const QString &  name,
bool  enabled = true 
)

Sets default playlist options.

Parameters:
nameDefault playlist name.
enabledDefault playlist state (true - enabled, false - disabled).
void setExcludeFilters ( const QString &  filters)

Sets a list of filters which should be excluded from incoming files while directory scanning.

Parameters:
filtersA set of filters separated by semicolon (Example: *.cue;*.ogg).
void setFormat ( const QString &  format)

Sets short title template.

Parameters:
formattitle template.
See also:
MetaDataFormatter
void setRestrictFilters ( const QString &  filters)

Disables all builtin directory scanning filters and sets them to filters (Example: *.mp3;*.ogg).

void setResumeOnStartup ( bool  enabled)

Sets the "Resume on startup" option state to enabled

Parameters:
enabledOption state (true - enabled, false - disabled)
void setUseMetadata ( bool  enabled)

Sets metadata usage option state to enabled

Parameters:
enabledOption state (true - enabled, false - disabled)
void sync ( ) [slot]

Writes all unsaved settings to configuration file

bool useDefaultPlayList ( ) const

Returns true if defaut playlist is enabled, othewise returns false. Default playlist receives files from command line.

bool useMetadata ( ) const

Returns the state of metadata usage (true - use, false - not use).


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator