26 #include "Utils/typedefs.h"
28 enum class SettingKey : unsigned short
48 Lib_SplitterStateArtist,
49 Lib_SplitterStateTrack,
50 Lib_SplitterStateGenre,
51 Lib_SplitterStateDate,
55 Lib_DC_PlayImmediately,
57 Lib_DD_PlayIfStoppedAndEmpty,
68 Lib_CoverScaledPMCache,
72 Lib_UseViewClearButton,
74 Lib_SortIgnoreArtistArticle,
75 Lib_HeaderAutoResizeArtists,
76 Lib_HeaderAutoResizeAlbums,
77 Lib_HeaderAutoResizeTracks,
81 Dir_TagToFilenameExpression,
96 Player_NotifyNewVersion,
98 Player_SplitterControls,
103 PL_LastTrackBeforeStop,
106 PL_LoadSavedPlaylists,
107 PL_LoadTemporaryPlaylists,
111 PL_RememberTrackAfterStop,
118 PL_CurrentTrackCustomColorStandard,
119 PL_CurrentTrackColorStringStandard,
120 PL_CurrentTrackCustomColorDark,
121 PL_CurrentTrackColorStringDark,
122 PL_JumpToCurrentTrack,
124 Notification_Timeout,
129 AudioConvert_NumberThreads,
130 AudioConvert_PreferredConverter,
131 AudioConvert_QualityLameVBR,
132 AudioConvert_QualityLameCBR,
133 AudioConvert_QualityOgg,
134 Engine_CovertTargetPath,
138 Engine_CurTrackPos_s,
139 Engine_CrossFaderActive,
140 Engine_CrossFaderTime,
142 Engine_PreservePitch,
151 Engine_SR_SessionPath,
152 Engine_SR_SessionPathTemplate,
153 Engine_SR_AutoRecord,
168 Stream_SearchWindowSize,
176 Cover_SaveToSayonaraDir,
179 Icon_ForceInDarkTheme,
188 AlternativeCovers_Size,
212 enum class ViewType : quint8;
215 template<typename DataType, SettingKey keyIndex>
219 using Data = DataType;
220 const static SettingKey key = keyIndex;
227 #define INST_ABSTR(ns, type, settingkey) \
229 using settingkey = SettingIdentifier<type, SettingKey:: settingkey>; \
232 #define INST(type, settingkey) INST_ABSTR(Set, type, settingkey)
233 #define INST_NO_DB(type, settingkey) INST_ABSTR(SetNoDB, type, settingkey)
240 INST(
int, LFM_ScrobbleTimeSec)
242 INST(QString, LFM_Username)
243 INST(QString, LFM_Password)
245 INST(
bool, LFM_Corrections)
246 INST(
bool, LFM_ShowErrors)
247 INST(QString, LFM_SessionKey)
253 INST(QString, Lib_Path)
254 INST(QByteArray, Lib_ColStateAlbums)
255 INST(QByteArray, Lib_ColStateArtists)
256 INST(QByteArray, Lib_ColStateTracks)
257 INST(
bool, Lib_LiveSearch)
259 INST(QString, Lib_CurPlugin)
260 INST(QByteArray, Lib_SplitterStateArtist)
261 INST(QByteArray, Lib_SplitterStateTrack)
262 INST(QByteArray, Lib_SplitterStateGenre)
263 INST(QByteArray, Lib_SplitterStateDate)
264 INST(
int, Lib_OldWidth)
265 INST(
bool, Lib_DC_DoNothing)
266 INST(
bool, Lib_DC_PlayIfStopped)
267 INST(
bool, Lib_DC_PlayImmediately)
268 INST(
bool, Lib_DD_DoNothing)
269 INST(
bool, Lib_DD_PlayIfStoppedAndEmpty)
270 INST(
int, Lib_SearchMode)
271 INST(
bool, Lib_AutoUpdate)
272 INST(
bool, Lib_ShowAlbumArtists)
273 INST(
bool, Lib_ShowAlbumCovers)
274 INST(::Library::ViewType, Lib_ViewType)
275 INST(
int, Lib_CoverZoom)
276 INST(
int, Lib_CoverOrigPMCache)
277 INST(
int, Lib_CoverScaledPMCache)
278 INST(
bool, Lib_CoverShowUtils)
279 INST(
bool, Lib_CoverShowArtist)
280 INST(
bool, Lib_GenreTree)
282 INST(
int, Lib_LastIndex)
283 INST(
bool, Lib_FontBold)
284 INST(
bool, Lib_UseViewClearButton)
285 INST(
bool, Lib_ShowFilterExtBar)
286 INST(
bool, Lib_SortIgnoreArtistArticle)
287 INST(
bool, Lib_HeaderAutoResizeArtists)
288 INST(
bool, Lib_HeaderAutoResizeAlbums)
289 INST(
bool, Lib_HeaderAutoResizeTracks)
291 INST(
bool, Dir_ShowTracks)
292 INST(QByteArray, Dir_SplitterDirFile)
293 INST(QByteArray, Dir_SplitterTracks)
294 INST(QString, Dir_TagToFilenameExpression)
296 INST(QString, Player_Version)
297 INST(QString, Player_Language)
298 INST(
int, Player_Style)
299 INST(
int, Player_ControlStyle)
300 INST(
bool, Player_FadingCover)
301 INST(
bool, Player_Fullscreen)
302 INST(
bool, Player_Maximized)
303 INST(QByteArray, Player_Geometry)
304 INST(QString, Player_ShownPlugin)
305 INST(
bool, Player_OneInstance)
306 INST(
bool, Player_Min2Tray)
307 INST(
bool, Player_ShowTrayIcon)
308 INST(
bool, Player_StartInTray)
309 INST(
bool, Player_514Fix)
310 INST(
bool, Player_NotifyNewVersion)
311 INST(QByteArray, Player_SplitterState)
313 INST(QByteArray, Player_SplitterControls)
314 INST(QByteArray, Player_PrivId)
315 INST(QByteArray, Player_PublicId)
319 INST(
bool, PL_LoadSavedPlaylists)
320 INST(
bool, PL_LoadTemporaryPlaylists)
321 INST(
bool, PL_LoadLastTrack)
322 INST(
bool, PL_RememberTime)
323 INST(
bool, PL_StartPlaying)
324 INST(
int, PL_LastTrack)
325 INST(
int, PL_LastTrackBeforeStop)
326 INST(
int, PL_LastPlaylist)
327 INST(QString, PL_EntryLook)
328 INST(
bool, PL_ShowClearButton)
330 INST(
bool, PL_ShowNumbers)
331 INST(
bool, PL_ShowBottomBar)
332 INST(
bool, PL_RememberTrackAfterStop)
333 INST(
bool, PL_ShowCovers)
334 INST(
bool, PL_ShowRating)
335 INST(
bool, PL_CurrentTrackCustomColorStandard)
336 INST(QString, PL_CurrentTrackColorStringStandard)
337 INST(
bool, PL_CurrentTrackCustomColorDark)
338 INST(QString, PL_CurrentTrackColorStringDark)
339 INST(
bool, PL_JumpToCurrentTrack)
341 INST(
bool, Notification_Show)
342 INST(
int, Notification_Timeout)
343 INST(QString, Notification_Name)
345 INST(
int, AudioConvert_NumberThreads)
346 INST(QString, AudioConvert_PreferredConverter)
347 INST(
int, AudioConvert_QualityLameVBR)
348 INST(
int, AudioConvert_QualityLameCBR)
349 INST(
int, AudioConvert_QualityOgg)
351 INST(QString, Engine_Name)
352 INST(
int, Engine_Vol)
353 INST(
bool, Engine_Mute)
354 INST(
int, Engine_CurTrackPos_s)
355 INST(QString, Engine_CovertTargetPath)
356 INST(
int, Engine_SpectrumBins)
357 INST(
bool, Engine_ShowSpectrum)
358 INST(
bool, Engine_ShowLevel)
359 INST(
bool, Engine_CrossFaderActive)
360 INST(
int, Engine_CrossFaderTime)
361 INST(
int, Engine_Pitch)
362 INST(
bool, Engine_SpeedActive)
363 INST(
float, Engine_Speed)
364 INST(
bool, Engine_PreservePitch)
365 INST(QString, Engine_Sink)
366 INST(QString, Engine_AlsaDevice)
367 INST(
int, Engine_BufferSizeMS)
369 INST(
bool, Engine_SR_Active)
370 INST(
bool, Engine_SR_Warning)
371 INST(QString, Engine_SR_Path)
372 INST(
bool, Engine_SR_SessionPath)
373 INST(QString, Engine_SR_SessionPathTemplate)
374 INST(
bool, Engine_SR_AutoRecord)
376 INST(
int, Spectrum_Style)
377 INST(
int, Level_Style)
378 INST(
bool, Broadcast_Active)
379 INST(
bool, Broadcast_Prompt)
380 INST(
int, Broadcast_Port)
382 INST(
bool, Remote_Active)
383 INST(
int, Remote_Port)
384 INST(
bool, Remote_Discoverable)
385 INST(
int, Remote_DiscoverPort)
387 INST(
bool, Stream_NewTab)
388 INST(
bool, Stream_ShowHistory)
389 INST(QSize, Stream_SearchWindowSize)
391 INST(
int, Lyrics_Zoom)
392 INST(QString, Lyrics_Server)
394 INST(QStringList, Cover_Server)
395 INST(
bool, Cover_FetchFromWWW)
396 INST(
bool, Cover_SaveToDB)
397 INST(
bool, Cover_StartSearch)
398 INST(
bool, Cover_SaveToLibrary)
399 INST(
bool, Cover_SaveToSayonaraDir)
400 INST(QString, Cover_TemplatePath)
401 INST(QString, Icon_Theme)
402 INST(
bool, Icon_ForceInDarkTheme)
404 INST(
bool, Proxy_Active)
405 INST(QString, Proxy_Username)
406 INST(QString, Proxy_Password)
407 INST(QString, Proxy_Hostname)
408 INST(
int, Proxy_Port)
409 INST(
bool, Proxy_SavePw)
411 INST(
int, Speed_LastTab)
413 INST(QSize, InfoDialog_Size)
414 INST(QSize, AlternativeCovers_Size)
416 INST(
int, Settings_Revision)
418 INST(
int, Logger_Level)
420 INST_NO_DB(
bool, MP3enc_found)
421 INST_NO_DB(
bool, Pitch_found)
422 INST_NO_DB(
bool, Player_Quit)
The EQ_Setting class. Container for Equalizer configurations.
Definition: EqualizerSetting.h:35
The Sortings class.
Definition: Sorting.h:37
The Mode class.
Definition: PlaylistMode.h:42
Definition: EngineUtils.h:33
Definition: SettingKey.h:217
INST(bool, LFM_Active) INST(int
Set namespace defines the setting: Which key and which type.
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
Definition: typedefs.h:33
The RawShortcutMap struct consisting of a specifier writable into database and a shortcut....
Definition: RawShortcutMap.h:38