26 #include "Utils/typedefs.h" 28 enum class SettingKey : unsigned short
52 Lib_SplitterStateArtist,
53 Lib_SplitterStateTrack,
54 Lib_SplitterStateGenre,
55 Lib_SplitterStateDate,
59 Lib_DC_PlayImmediately,
61 Lib_DD_PlayIfStoppedAndEmpty,
72 Lib_CoverScaledPMCache,
76 Lib_UseViewClearButton,
78 Lib_SortIgnoreArtistArticle,
99 Player_NotifyNewVersion,
100 Player_SplitterState,
101 Player_SplitterControls,
107 PL_LastTrackBeforeStop,
110 PL_LoadSavedPlaylists,
111 PL_LoadTemporaryPlaylists,
115 PL_RememberTrackAfterStop,
122 Notification_Timeout,
127 AudioConvert_NumberThreads,
128 AudioConvert_PreferredConverter,
129 AudioConvert_QualityLameVBR,
130 AudioConvert_QualityLameCBR,
131 AudioConvert_QualityOgg,
132 Engine_CovertTargetPath,
136 Engine_CurTrackPos_s,
137 Engine_CrossFaderActive,
138 Engine_CrossFaderTime,
140 Engine_PreservePitch,
148 Engine_SR_SessionPath,
149 Engine_SR_SessionPathTemplate,
150 Engine_SR_AutoRecord,
163 Stream_SearchWindowSize,
171 Cover_SaveToSayonaraDir,
174 Icon_ForceInDarkTheme,
209 template<
typename DataType, SettingKey keyIndex>
214 const static SettingKey key=keyIndex;
222 #define INST_ABSTR(ns, type, settingkey) \ 224 using settingkey = SettingIdentifier<type, SettingKey:: settingkey>; \ 227 #define INST(type, settingkey) INST_ABSTR(Set, type, settingkey) 228 #define INST_NO_DB(type, settingkey) INST_ABSTR(SetNoDB, type, settingkey) 234 INST(
bool, LFM_Active)
235 INST(
int, LFM_ScrobbleTimeSec)
237 INST(QString, LFM_Username)
238 INST(QString, LFM_Password)
240 INST(
bool, LFM_Corrections)
241 INST(
bool, LFM_ShowErrors)
242 INST(QString, LFM_SessionKey)
249 INST(QString, Lib_Path)
256 INST(
bool, Lib_LiveSearch)
258 INST(QString, Lib_CurPlugin)
259 INST(QByteArray, Lib_SplitterStateArtist)
260 INST(QByteArray, Lib_SplitterStateTrack)
261 INST(QByteArray, Lib_SplitterStateGenre)
262 INST(QByteArray, Lib_SplitterStateDate)
263 INST(
int, Lib_OldWidth)
264 INST(
bool, Lib_DC_DoNothing)
265 INST(
bool, Lib_DC_PlayIfStopped)
266 INST(
bool, Lib_DC_PlayImmediately)
267 INST(
bool, Lib_DD_DoNothing)
268 INST(
bool, Lib_DD_PlayIfStoppedAndEmpty)
269 INST(
int, Lib_FontSize)
270 INST(
bool, Lib_FontBold)
271 INST(
int, Lib_SearchMode)
272 INST(
bool, Lib_AutoUpdate)
273 INST(
bool, Lib_ShowAlbumArtists)
274 INST(
bool, Lib_ShowAlbumCovers)
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_UseViewClearButton)
284 INST(
bool, Lib_ShowFilterExtBar)
285 INST(
bool, Lib_SortIgnoreArtistArticle)
287 INST(
bool, Dir_ShowTracks)
288 INST(QByteArray, Dir_SplitterDirFile)
289 INST(QByteArray, Dir_SplitterTracks)
292 INST(QString, Player_Version)
293 INST(QString, Player_Language)
294 INST(
int, Player_Style)
295 INST(
int, Player_ControlStyle)
296 INST(QString, Player_FontName)
297 INST(
int, Player_FontSize)
298 INST(
bool, Player_FadingCover)
299 INST(QSize, Player_Size)
300 INST(QPoint, Player_Pos)
301 INST(
bool, Player_Fullscreen)
302 INST(
bool, Player_Maximized)
303 INST(QString, Player_ShownPlugin)
304 INST(
bool, Player_OneInstance)
305 INST(
bool, Player_Min2Tray)
306 INST(
bool, Player_ShowTrayIcon)
307 INST(
bool, Player_StartInTray)
308 INST(
bool, Player_514Fix)
309 INST(
bool, Player_NotifyNewVersion)
310 INST(QByteArray, Player_SplitterState)
312 INST(QByteArray, Player_SplitterControls)
313 INST(QByteArray, Player_PrivId)
314 INST(QByteArray, Player_PublicId)
316 INST(QStringList, PL_Playlist)
317 INST(
bool, PL_LoadSavedPlaylists)
318 INST(
bool, PL_LoadTemporaryPlaylists)
319 INST(
bool, PL_LoadLastTrack)
320 INST(
bool, PL_RememberTime)
321 INST(
bool, PL_StartPlaying)
322 INST(
int, PL_LastTrack)
323 INST(
int, PL_LastTrackBeforeStop)
324 INST(
int, PL_LastPlaylist)
325 INST(QString, PL_EntryLook)
326 INST(
int, PL_FontSize)
327 INST(
bool, PL_ShowClearButton)
329 INST(
bool, PL_ShowNumbers)
330 INST(
bool, PL_RememberTrackAfterStop)
331 INST(
bool, PL_ShowCovers)
332 INST(
bool, PL_ShowRating)
334 INST(
bool, Notification_Show)
335 INST(
int, Notification_Timeout)
336 INST(QString, Notification_Name)
338 INST(
int, AudioConvert_NumberThreads)
339 INST(QString, AudioConvert_PreferredConverter)
340 INST(
int, AudioConvert_QualityLameVBR)
341 INST(
int, AudioConvert_QualityLameCBR)
342 INST(
int, AudioConvert_QualityOgg)
344 INST(QString, Engine_Name)
345 INST(
int, Engine_Vol)
346 INST(
bool, Engine_Mute)
347 INST(
int, Engine_CurTrackPos_s)
348 INST(QString, Engine_CovertTargetPath)
349 INST(
int, Engine_SpectrumBins)
350 INST(
bool, Engine_ShowSpectrum)
351 INST(
bool, Engine_ShowLevel)
352 INST(
bool, Engine_CrossFaderActive)
353 INST(
int, Engine_CrossFaderTime)
354 INST(
int, Engine_Pitch)
355 INST(
bool, Engine_SpeedActive)
356 INST(
float, Engine_Speed)
357 INST(
bool, Engine_PreservePitch)
358 INST(QString, Engine_Sink)
359 INST(
int, Engine_BufferSizeMS)
361 INST(
bool, Engine_SR_Active)
362 INST(
bool, Engine_SR_Warning)
363 INST(QString, Engine_SR_Path)
364 INST(
bool, Engine_SR_SessionPath)
365 INST(QString, Engine_SR_SessionPathTemplate)
366 INST(
bool, Engine_SR_AutoRecord)
368 INST(
int, Spectrum_Style)
369 INST(
int, Level_Style)
370 INST(
bool, Broadcast_Active)
371 INST(
bool, Broadcast_Prompt)
372 INST(
int, Broadcast_Port)
374 INST(
bool, Remote_Active)
375 INST(
int, Remote_Port)
377 INST(
bool, Stream_NewTab)
378 INST(
bool, Stream_ShowHistory)
379 INST(QSize, Stream_SearchWindowSize)
381 INST(
int, Lyrics_Zoom)
382 INST(QString, Lyrics_Server)
384 INST(QStringList, Cover_Server)
385 INST(
bool, Cover_FetchFromWWW)
386 INST(
bool, Cover_SaveToDB)
387 INST(
bool, Cover_StartSearch)
388 INST(
bool, Cover_SaveToLibrary)
389 INST(
bool, Cover_SaveToSayonaraDir)
390 INST(QString, Cover_TemplatePath)
391 INST(QString, Icon_Theme)
392 INST(
bool, Icon_ForceInDarkTheme)
394 INST(
bool, Proxy_Active)
395 INST(QString, Proxy_Username)
396 INST(QString, Proxy_Password)
397 INST(QString, Proxy_Hostname)
398 INST(
int, Proxy_Port)
399 INST(
bool, Proxy_SavePw)
401 INST(
int, Speed_LastTab)
403 INST(
int, Settings_Revision)
405 INST(
int, Logger_Level)
407 INST_NO_DB(
bool, MP3enc_found)
408 INST_NO_DB(
bool, Pitch_found)
409 INST_NO_DB(
bool, Player_Quit)
411 #endif // SETTINGKEY_H The Mode class.
Definition: PlaylistMode.h:42
INST(bool, LFM_Active) INST(int
Set namespace defines the setting: Which key and which type.
The Sortings class.
Definition: Sorting.h:35
Definition: typedefs.h:32
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:32
The EQ_Setting class. Container for Equalizer configurations.
Definition: EqualizerSetting.h:35
The RawShortcutMap struct consisting of a specifier writable into database and a shortcut. This class is used for converting a shortcut map into its database representation.
Definition: RawShortcutMap.h:36
Definition: Playlist.h:32
Definition: SettingKey.h:210
Definition: EngineUtils.h:33