21 #ifndef QMMPUISETTINGS_H 22 #define QMMPUISETTINGS_H 25 #include <QStringList> 26 #include "playlistheadermodel.h" 27 #include "metadataformatter.h" 28 #include "qmmpui_export.h" 53 bool convertUnderscore()
const;
57 bool convertTwenty()
const;
61 bool useMetaData()
const;
65 const QString groupFormat()
const;
69 bool isRepeatableList()
const;
73 bool isShuffle()
const;
77 bool isGroupsEnabled()
const;
81 bool isRepeatableTrack()
const;
85 bool isNoPlayListAdvance()
const;
90 void setConvertUnderscore(
bool enabled);
95 void setConvertTwenty(
bool enabled);
100 void setGroupFormat(
const QString &groupFormat);
105 void setUseMetaData(
bool enabled);
109 bool resumeOnStartup()
const;
114 void setResumeOnStartup(
bool enabled);
119 void setUseClipboard(
bool enabled);
123 bool useClipboard()
const;
127 QStringList restrictFilters()
const;
131 void setRestrictFilters(
const QString &filters);
135 QStringList excludeFilters()
const;
140 void setExcludeFilters(
const QString &filters);
145 bool useDefaultPlayList()
const;
149 QString defaultPlayListName()
const;
155 void setDefaultPlayList(
const QString &name,
bool enabled =
true);
160 void setAutoSavePlayList(
bool enabled);
166 bool autoSavePlayList()
const;
171 void setClearPreviousPlayList(
bool enabled);
177 bool clearPreviousPlayList()
const;
182 bool readMetaDataForPlayLists()
const;
187 void setReadMetaDataForPlayLists(
bool enabled);
198 void repeatableListChanged(
bool state);
203 void shuffleChanged(
bool state);
208 void groupsChanged(
bool state);
213 void repeatableTrackChanged(
bool enabled);
219 void noPlayListAdvanceChanged(
bool enabled);
226 void setRepeatableList(
bool r);
231 void setShuffle(
bool s);
236 void setGroupsEnabled(
bool enabled);
241 void setRepeatableTrack(
bool enabled);
247 void setNoPlayListAdvance(
bool enabled);
259 QString m_group_format;
260 bool m_convertUnderscore, m_convertTwenty;
262 bool m_autosave_playlist;
265 bool m_groups_enabled;
267 bool m_no_pl_advance;
268 bool m_clear_prev_playlist;
269 bool m_read_metadata_for_playlist;
271 bool m_resume_on_startup;
272 QStringList m_exclude_filters, m_restrict_filters;
274 bool m_use_default_pl;
275 QString m_default_pl_name;
277 bool m_use_clipboard;
281 MetaDataHelper *m_helper;
284 #endif // QMMPUISETTINGS_H The QmmpUiSettings class provides access to global libqmmpui library settings.
Definition: qmmpuisettings.h:36