1 #ifndef SETTINGSPRIVATE_H 2 #define SETTINGSPRIVATE_H 28 const QString &application =
"MiamPlayer");
31 QMap<QString, QVariant> fontPointSizeMap;
34 QMap<QString, QVariant> fontFamilyMap;
36 QPalette _standardPalette;
47 DD_AddToPlaylist = 2};
59 LSM_HighlightOnly = 1};
63 PDA_DiscardOnClose = 2};
74 void disablePlugin(
const QString &absFilePath);
77 bool colorsAlternateBG()
const;
79 bool copyTracksFromPlaylist()
const;
82 const QString customIcon(
const QString &buttonName)
const;
84 QPalette customPalette()
const;
86 QString defaultLocationFileExplorer()
const;
97 bool hasCustomIcon(
const QString &buttonName)
const;
101 bool isCustomColors()
const;
103 bool isCustomTextColorOverriden()
const;
105 bool isExtendedSearchVisible()
const;
108 bool isFileSystemMonitored()
const;
111 bool isLibraryFilteredByArticles()
const;
113 bool isPlaylistResizeColumns()
const;
116 bool isRectTabs()
const;
118 bool isRemoteControlEnabled()
const;
121 bool isReorderArtistsArticle()
const;
124 bool isButtonThemeCustomized()
const;
130 QByteArray lastActivePlaylistGeometry()
const;
132 QByteArray lastActiveViewGeometry(
const QString &menuAction)
const;
135 QList<uint> lastPlaylistSession()
const;
137 QStringList libraryFilteredByArticles()
const;
142 QStringList musicLocations()
const;
144 int tabsOverlappingLength()
const;
147 qint64 playbackSeekTime()
const;
153 bool playbackKeepPlaylists()
const;
156 bool playbackRestorePlaylistsAtStartup()
const;
158 QMap<QString, PluginInfo> plugins()
const;
160 uint remoteControlPort()
const;
162 void setCustomColorRole(QPalette::ColorRole cr,
const QColor &color);
165 void setCustomIcon(
const QString &buttonName,
const QString &iconPath);
168 bool setLanguage(
const QString &lang);
170 void setLastActiveViewGeometry(
const QString &menuAction,
const QByteArray &viewGeometry);
173 void setLastPlaylistSession(
const QList<uint> &ids);
175 void setMusicLocations(
const QStringList &locations);
177 void setRemoteControlEnabled(
bool b);
179 void setShortcut(
const QString &objectName,
const QKeySequence &keySequence);
181 QKeySequence shortcut(
const QString &objectName)
const;
183 int volumeBarHideAfter()
const;
186 bool initLanguage(
const QString &lang);
189 void setDefaultLocationFileExplorer(
const QString &location);
196 void addMusicLocations(
const QList<QDir> &dirs);
199 void setColorsAlternateBG(
bool b);
202 void setCopyTracksFromPlaylist(
bool b);
205 void setCustomColors(
bool b);
208 void setCustomTextColorOverride(
bool b);
214 void setExtendedSearchVisible(
bool b);
217 void setFont(
const FontFamily &fontFamily,
const QFont &font);
220 void setFontPointSize(
const FontFamily &fontFamily,
int i);
223 void setIsLibraryFilteredByArticles(
bool b);
226 void setLastActivePlaylistGeometry(
const QByteArray &);
229 void setLibraryFilteredByArticles(
const QStringList &tagList);
232 void setMonitorFileSystem(
bool b);
235 void setPlaybackSeekTime(
int t);
237 void setPlaybackKeepPlaylists(
bool b);
238 void setPlaybackRestorePlaylistsAtStartup(
bool b);
240 void setRemoteControlPort(
uint port);
242 void setReorderArtistsArticle(
bool b);
244 void setSearchAndExcludeLibrary(
bool b);
246 void setTabsOverlappingLength(
int l);
248 void setTabsRect(
bool b);
250 void setButtonThemeCustomized(
bool b);
252 void setVolumeBarHideAfter(
int seconds);
255 void customIconForMediaButtonChanged(
const QString &button);
257 void languageAboutToChange(
const QString &newLanguage);
259 void fontHasChanged(
FontFamily,
const QFont &font);
261 void librarySearchModeHasChanged();
263 void monitorFileSystemChanged(
bool);
266 void musicLocationsHaveChanged(
const QStringList &oldLocations,
const QStringList &newLocations);
268 void remoteControlChanged(
bool enabled,
uint port);
271 Q_DECLARE_METATYPE(QPalette::ColorRole)
273 #endif // SETTINGSPRIVATE_H unsigned int uint
Definition: taglib.h:68
LibrarySearchMode
Definition: settingsprivate.h:58
SettingsPrivate class contains all relevant pairs of (keys, values) used by Miam-Player.
Definition: settingsprivate.h:19
DragDropAction
Definition: settingsprivate.h:45
PlaylistDefaultAction
Definition: settingsprivate.h:61
The PluginInfo class is a Data Access Object.
Definition: plugininfo.h:16
InsertPolicy
Definition: settingsprivate.h:53
FontFamily
Definition: settingsprivate.h:49
QTranslator playerTranslator
Definition: settingsprivate.h:65
#define MIAMCORE_LIBRARY
Definition: miamcore_global.h:11