TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicSettingManager Class Reference

The class of the paramater setting manager. More...

#include <musicsettingmanager.h>

+ Inheritance diagram for MusicSettingManager:

Public Types

enum  Config {
  Null = -1, ScreenSize = 0x1000, WidgetPosition = 0x1001, WidgetSize = 0x1002,
  ConfigVersion = 0x2000, PlayMode = 0x2001, Volume = 0x2002, LastPlayIndex = 0x2003,
  LanguageIndex = 0x3000, StartUpMode = 0x3001, StartUpPlayMode = 0x3002, CloseEventMode = 0x3003,
  CloseNetWorkMode = 0x3004, FileAssociationMode = 0x3005, FileAssociationValue = 0x3006, WindowConciseMode = 0x3007,
  RemoteWidgetMode = 0x3008, WindowQuitMode = 0x3009, ExtraDevicePath = 0x300A, LastFileDialogPath = 0x300B,
  MediaLibraryPath = 0x300C, BackgroundThemeValue = 0x4000, BackgroundTransparent = 0x4001, BackgroundListTransparent = 0x4002,
  BackgroundTransparentEnable = 0x4003, HotkeyEnable = 0x5000, HotkeyValue = 0x5001, OtherCheckUpdateEnable = 0x6000,
  OtherReadAlbumCover = 0x6001, OtherReadFileInfo = 0x6002, OtherWriteAlbumCover = 0x6003, OtherWriteFileInfo = 0x6004,
  OtherSideByMode = 0x6005, OtherSideByInMode = 0x6006, OtherLrcKTVMode = 0x6007, OtherScreenSaverEnable = 0x6008,
  OtherScreenSaverTime = 0x6009, OtherScreenSaverIndex = 0x600A, OtherPlaylistAutoSaveEnable = 0x600B, OtherRandomShuffleMode = 0x600C,
  OtherHighDpiScalingEnable = 0x600D, RippleLowPowerMode = 0x7000, RippleSpectrumEnable = 0x7001, RippleSpectrumColor = 0x7002,
  ShowInteriorLrc = 0x8000, LrcColor = 0x8001, LrcSize = 0x8002, LrcType = 0x8003,
  LrcFamily = 0x8004, LrcFrontgroundColor = 0x8005, LrcBackgroundColor = 0x8006, LrcColorTransparent = 0x8007,
  ShowDesktopLrc = 0x9000, DLrcColor = 0x9001, DLrcSize = 0x9002, DLrcType = 0x9003,
  DLrcFamily = 0x9004, DLrcFrontgroundColor = 0x9005, DLrcBackgroundColor = 0x9006, DLrcColorTransparent = 0x9007,
  DLrcWindowMode = 0x9008, DLrcSingleLineMode = 0x9009, DLrcLockedMode = 0x900A, DLrcGeometry = 0x900B,
  EqualizerEnable = 0xA000, EqualizerValue = 0xA001, EqualizerIndex = 0xA002, EnhancedMusicIndex = 0xA003,
  EnhancedFadeEnable = 0xA004, EnhancedFadeInValue = 0xA005, EnhancedFadeOutValue = 0xA006, EnhancedEffectValue = 0xA007,
  TimerAutoIndex = 0xB000, TimerAutoPlayMode = 0xB001, TimerAutoPlayHour = 0xB002, TimerAutoPlaySecond = 0xB003,
  TimerAutoPlayRepeat = 0xB004, TimerAutoPlayItemIndex = 0xB005, TimerAutoPlaySongIndex = 0xB006, TimerAutoStopMode = 0xB007,
  TimerAutoStopHour = 0xB008, TimerAutoStopSecond = 0xB009, TimerAutoStopRepeat = 0xB00A, TimerAutoShutdownMode = 0xB00B,
  TimerAutoShutdownHour = 0xB00C, TimerAutoShutdownSecond = 0xB00D, TimerAutoShutdownRepeat = 0xB00E, DownloadMusicDirPath = 0xC000,
  DownloadLrcDirPath = 0xC001, DownloadServerIndex = 0xC002, DownloadCacheEnable = 0xC003, DownloadCacheSize = 0xC004,
  DownloadLimitEnable = 0xC005, DownloadDownloadLimitSize = 0xC006, DownloadUploadLimitSize = 0xC007, DownloadFileNameRule = 0xC008
}
 

Public Member Functions

void setValue (Config type, const QVariant &var)
 
void setValue (const QString &stype, const QVariant &var)
 
QVariant value (Config type) const
 
QVariant value (const QString &stype) const
 
int count () const
 
bool isEmpty () const
 
bool contains (Config type) const
 

Private Member Functions

Config stringToEnum (const QString &stype) const
 

Private Attributes

QVariant m_variant
 
QMap< Config, QVariant > m_parameter
 

Detailed Description

The class of the paramater setting manager.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 29 of file musicsettingmanager.h.

Member Enumeration Documentation

Enumerator
Null 

No Parameter

ScreenSize 

Screen Size Parameter

WidgetPosition 

Widget Position Parameter

WidgetSize 

Widget Size Parameter

ConfigVersion 

Config Version Parameter

PlayMode 

Play Mode Parameter

Volume 

Volume Parameter

LastPlayIndex 

Last Play Index Parameter

LanguageIndex 

Language Index Parameter

StartUpMode 

Start Up Mode Parameter

StartUpPlayMode 

Start Up Play Mode Parameter

CloseEventMode 

Close Event Parameter

CloseNetWorkMode 

Close NetWork Parameter

FileAssociationMode 

File Association Parameter

FileAssociationValue 

File Association Value Parameter

WindowConciseMode 

Window Concise Parameter

RemoteWidgetMode 

Remote Widget Mode Parameter

WindowQuitMode 

Window Quit Mode Parameter

ExtraDevicePath 

Extra Device Path Parameter

LastFileDialogPath 

Last File Dialog Path Parameter

MediaLibraryPath 

Media Library Path Parameter

BackgroundThemeValue 

Background Theme Parameter

BackgroundTransparent 

Background Transparent Parameter

BackgroundListTransparent 

Background List Transparent Parameter

BackgroundTransparentEnable 

Background Transparent Enable Parameter

HotkeyEnable 

Hotkey Enable Parameter

HotkeyValue 

Hotkey String Parameter

OtherCheckUpdateEnable 

Other Check Update Parameter

OtherReadAlbumCover 

Other Read File Album Parameter

OtherReadFileInfo 

Other Read File Info Parameter

OtherWriteAlbumCover 

Other Write File Album Parameter

OtherWriteFileInfo 

Other Write File Info Parameter

OtherSideByMode 

Other App Side By Mode Parameter

OtherSideByInMode 

Other App Side By In Mode Parameter

OtherLrcKTVMode 

Other Lrc KTV Mode Parameter

OtherScreenSaverEnable 

Other Screen Saver Enable Parameter

OtherScreenSaverTime 

Other Screen Saver Time Parameter

OtherScreenSaverIndex 

Other Screen Saver Index Parameter

OtherPlaylistAutoSaveEnable 

Other Playlist Auto Save Enable Parameter

OtherRandomShuffleMode 

Other Random Shuffle Mode Parameter

OtherHighDpiScalingEnable 

Other High DPI Scaling Enable Parameter

RippleLowPowerMode 

Ripple Low Power Mode Parameter

RippleSpectrumEnable 

Ripple Spectrum Enable Parameter

RippleSpectrumColor 

Ripple Spectrum Color Parameter

ShowInteriorLrc 

Show Interior Lrc Parameter

LrcColor 

Lrc Color Parameter

LrcSize 

Lrc Size Parameter

LrcType 

Lrc Type Parameter

LrcFamily 

Lrc Family Parameter

LrcFrontgroundColor 

Lrc Frontground Color Parameter

LrcBackgroundColor 

Lrc Background Color Parameter

LrcColorTransparent 

Lrc Color Transparent Parameter

ShowDesktopLrc 

Show Desktop Lrc Parameter

DLrcColor 

Desktop Lrc Color Parameter

DLrcSize 

Desktop Lrc Size Parameter

DLrcType 

Desktop Lrc Type Parameter

DLrcFamily 

Desktop Lrc Family Parameter

DLrcFrontgroundColor 

Desktop Lrc Frontground Color Parameter

DLrcBackgroundColor 

Desktop Lrc Background Color Parameter

DLrcColorTransparent 

Desktop Lrc Color Transparent Parameter

DLrcWindowMode 

Desktop Lrc Window Mode Parameter

DLrcSingleLineMode 

Desktop Lrc Single Line Mode Parameter

DLrcLockedMode 

Desktop Lrc Locked Mode Parameter

DLrcGeometry 

Desktop Lrc Geometry Parameter

EqualizerEnable 

Equalizer Enable Parameter

EqualizerValue 

Equalizer Value Parameter

EqualizerIndex 

Equalizer Index Parameter

EnhancedMusicIndex 

Enhanced Music Parameter

EnhancedFadeEnable 

Enhanced Fade Enable Parameter

EnhancedFadeInValue 

Enhanced Fade In Value Parameter

EnhancedFadeOutValue 

Enhanced Fade Out Value Parameter

EnhancedEffectValue 

Enhanced Effect Value Parameter

TimerAutoIndex 

Timer Auto Index Parameter

TimerAutoPlayMode 

Timer Auto Play Parameter

TimerAutoPlayHour 

Timer Auto Play Hour Parameter

TimerAutoPlaySecond 

Timer Auto Play Second Parameter

TimerAutoPlayRepeat 

Timer Auto Play Repeat Parameter

TimerAutoPlayItemIndex 

Timer Auto Play Item Index Parameter

TimerAutoPlaySongIndex 

Timer Auto Play Song Index Parameter

TimerAutoStopMode 

Timer Auto Stop Parameter

TimerAutoStopHour 

Timer Auto Stop Hour Parameter

TimerAutoStopSecond 

Timer Auto Stop Second Parameter

TimerAutoStopRepeat 

Timer Auto Stop Repeat Parameter

TimerAutoShutdownMode 

Timer Auto Shutdown Parameter

TimerAutoShutdownHour 

Timer Auto Shutdown Hour Parameter

TimerAutoShutdownSecond 

Timer Auto Shutdown Second Parameter

TimerAutoShutdownRepeat 

Timer Auto Shutdown Repeat Parameter

DownloadMusicDirPath 

Download Music Dir Path Parameter

DownloadLrcDirPath 

Download Lrc Dir Path Parameter

DownloadServerIndex 

Download Server Parameter

DownloadCacheEnable 

Download Cache Enable Parameter

DownloadCacheSize 

Download Cache Size Parameter

DownloadLimitEnable 

Download Limit Parameter

DownloadDownloadLimitSize 

Download Download Limit Parameter

DownloadUploadLimitSize 

Download Upload Limit Parameter

DownloadFileNameRule 

Download File Name Rule Parameter

Definition at line 35 of file musicsettingmanager.h.

Member Function Documentation

bool MusicSettingManager::contains ( Config  type) const
inline

Current parameter contains type.

Definition at line 197 of file musicsettingmanager.h.

int MusicSettingManager::count ( ) const
inline

Get parameter count.

Definition at line 181 of file musicsettingmanager.h.

bool MusicSettingManager::isEmpty ( ) const
inline

Current parameter is empty.

Definition at line 189 of file musicsettingmanager.h.

void MusicSettingManager::setValue ( Config  type,
const QVariant &  var 
)
inline

Set current value by Config Type.

Definition at line 149 of file musicsettingmanager.h.

void MusicSettingManager::setValue ( const QString &  stype,
const QVariant &  var 
)
inline

Set current value by String Type.

Definition at line 157 of file musicsettingmanager.h.

Config MusicSettingManager::stringToEnum ( const QString &  stype) const
inlineprivate

Convert String type to Config Type.

Definition at line 206 of file musicsettingmanager.h.

References key, and TTKStaticCast.

QVariant MusicSettingManager::value ( Config  type) const
inline

Get current value by Config Type.

Definition at line 165 of file musicsettingmanager.h.

QVariant MusicSettingManager::value ( const QString &  stype) const
inline

Get current value by String Type.

Definition at line 173 of file musicsettingmanager.h.

Member Data Documentation

QMap<Config, QVariant> MusicSettingManager::m_parameter
private

Definition at line 215 of file musicsettingmanager.h.

QVariant MusicSettingManager::m_variant
private

Definition at line 214 of file musicsettingmanager.h.


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