1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 00:55:33 +01:00

Replace slots with Q_SLOTS

This commit is contained in:
Jonas Kvinge 2024-08-12 01:06:15 +02:00
parent f624b7a331
commit cbce9892d5
209 changed files with 277 additions and 277 deletions

View File

@ -50,7 +50,7 @@ class _MessageHandlerBase : public QObject {
// After this is true, messages cannot be sent to the handler any more. // After this is true, messages cannot be sent to the handler any more.
bool is_device_closed() const { return is_device_closed_; } bool is_device_closed() const { return is_device_closed_; }
protected slots: protected Q_SLOTS:
void WriteMessage(const QByteArray &data); void WriteMessage(const QByteArray &data);
void DeviceReadyRead(); void DeviceReadyRead();
virtual void DeviceClosed(); virtual void DeviceClosed();

View File

@ -56,7 +56,7 @@ class _WorkerPoolBase : public QObject {
// Emitted when a worker failed to start. This usually happens when the worker wasn't found, or couldn't be executed. // Emitted when a worker failed to start. This usually happens when the worker wasn't found, or couldn't be executed.
void WorkerFailedToStart(); void WorkerFailedToStart();
protected slots: protected Q_SLOTS:
virtual void DoStart() {} virtual void DoStart() {}
virtual void NewConnection() {} virtual void NewConnection() {}
virtual void ProcessReadyReadStandardOutput() {} virtual void ProcessReadyReadStandardOutput() {}

View File

@ -57,7 +57,7 @@ class AnalyzerContainer : public QWidget {
void mouseReleaseEvent(QMouseEvent *e) override; void mouseReleaseEvent(QMouseEvent *e) override;
void wheelEvent(QWheelEvent *e) override; void wheelEvent(QWheelEvent *e) override;
private slots: private Q_SLOTS:
void ChangeAnalyzer(const int id); void ChangeAnalyzer(const int id);
void ChangeFramerate(int new_framerate); void ChangeFramerate(int new_framerate);
void DisableAnalyzer(); void DisableAnalyzer();

View File

@ -47,7 +47,7 @@ class BoomAnalyzer : public AnalyzerBase {
void transform(Scope &s) override; void transform(Scope &s) override;
void analyze(QPainter &p, const Scope &scope, const bool new_frame) override; void analyze(QPainter &p, const Scope &scope, const bool new_frame) override;
public slots: public Q_SLOTS:
void changeK_barHeight(int); void changeK_barHeight(int);
void changeF_peakSpeed(int); void changeF_peakSpeed(int);

View File

@ -64,7 +64,7 @@ class SCollection : public QObject {
private: private:
void SyncPlaycountAndRatingToFiles(); void SyncPlaycountAndRatingToFiles();
public slots: public Q_SLOTS:
void ReloadSettings(); void ReloadSettings();
void PauseWatcher(); void PauseWatcher();
@ -76,7 +76,7 @@ class SCollection : public QObject {
void IncrementalScan(); void IncrementalScan();
private slots: private Q_SLOTS:
void ExitReceived(); void ExitReceived();
void SongsPlaycountChanged(const SongList &songs, const bool save_tags = false); void SongsPlaycountChanged(const SongList &songs, const bool save_tags = false);
void SongsRatingChanged(const SongList &songs, const bool save_tags = false); void SongsRatingChanged(const SongList &songs, const bool save_tags = false);

View File

@ -236,7 +236,7 @@ class CollectionBackend : public CollectionBackendInterface {
void UpdateSongRatingAsync(const int id, const float rating, const bool save_tags = false); void UpdateSongRatingAsync(const int id, const float rating, const bool save_tags = false);
void UpdateSongsRatingAsync(const QList<int> &ids, const float rating, const bool save_tags = false); void UpdateSongsRatingAsync(const QList<int> &ids, const float rating, const bool save_tags = false);
public slots: public Q_SLOTS:
void Exit(); void Exit();
void GetAllSongs(const int id); void GetAllSongs(const int id);
void LoadDirectories(); void LoadDirectories();

View File

@ -54,7 +54,7 @@ class CollectionDirectoryModel : public QStandardItemModel {
QMap<int, CollectionDirectory> directories() const { return directories_; } QMap<int, CollectionDirectory> directories() const { return directories_; }
QStringList paths() const { return paths_; } QStringList paths() const { return paths_; }
private slots: private Q_SLOTS:
void AddDirectory(const CollectionDirectory &directory); void AddDirectory(const CollectionDirectory &directory);
void RemoveDirectory(const CollectionDirectory &directory); void RemoveDirectory(const CollectionDirectory &directory);

View File

@ -86,7 +86,7 @@ class CollectionFilterWidget : public QWidget {
bool SearchFieldHasFocus() const; bool SearchFieldHasFocus() const;
void FocusSearchField(); void FocusSearchField();
public slots: public Q_SLOTS:
void UpdateGroupByActions(); void UpdateGroupByActions();
void SetFilterMode(CollectionFilterOptions::FilterMode filter_mode); void SetFilterMode(CollectionFilterOptions::FilterMode filter_mode);
void FocusOnFilter(QKeyEvent *e); void FocusOnFilter(QKeyEvent *e);
@ -99,7 +99,7 @@ class CollectionFilterWidget : public QWidget {
protected: protected:
void keyReleaseEvent(QKeyEvent *e) override; void keyReleaseEvent(QKeyEvent *e) override;
private slots: private Q_SLOTS:
void GroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping); void GroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
void GroupByClicked(QAction *action); void GroupByClicked(QAction *action);
void SaveGroupBy(); void SaveGroupBy();

View File

@ -40,7 +40,7 @@ class CollectionItemDelegate : public QStyledItemDelegate {
explicit CollectionItemDelegate(QObject *parent); explicit CollectionItemDelegate(QObject *parent);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
public slots: public Q_SLOTS:
bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &idx) override; bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &idx) override;
}; };

View File

@ -209,7 +209,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
void SongsAdded(const SongList &songs); void SongsAdded(const SongList &songs);
void SongsRemoved(const SongList &songs); void SongsRemoved(const SongList &songs);
public slots: public Q_SLOTS:
void SetFilterMode(const CollectionFilterOptions::FilterMode filter_mode); void SetFilterMode(const CollectionFilterOptions::FilterMode filter_mode);
void SetFilterMaxAge(const int filter_max_age); void SetFilterMaxAge(const int filter_max_age);
@ -253,7 +253,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
void ClearItemPixmapCache(CollectionItem *item); void ClearItemPixmapCache(CollectionItem *item);
static qint64 MaximumCacheSize(Settings *s, const char *size_id, const char *size_unit_id, const qint64 cache_size_default); static qint64 MaximumCacheSize(Settings *s, const char *size_id, const char *size_unit_id, const qint64 cache_size_default);
private slots: private Q_SLOTS:
void Reload(); void Reload();
void ScheduleReset(); void ScheduleReset();
void ProcessUpdate(); void ProcessUpdate();

View File

@ -69,7 +69,7 @@ class CollectionView : public AutoExpandingTreeView {
int TotalArtists() const; int TotalArtists() const;
int TotalAlbums() const; int TotalAlbums() const;
public slots: public Q_SLOTS:
void TotalSongCountUpdated(const int count); void TotalSongCountUpdated(const int count);
void TotalArtistCountUpdated(const int count); void TotalArtistCountUpdated(const int count);
void TotalAlbumCountUpdated(const int count); void TotalAlbumCountUpdated(const int count);
@ -97,7 +97,7 @@ class CollectionView : public AutoExpandingTreeView {
void mouseReleaseEvent(QMouseEvent *e) override; void mouseReleaseEvent(QMouseEvent *e) override;
void contextMenuEvent(QContextMenuEvent *e) override; void contextMenuEvent(QContextMenuEvent *e) override;
private slots: private Q_SLOTS:
void Load(); void Load();
void AddToPlaylist(); void AddToPlaylist();
void AddToPlaylistEnqueue(); void AddToPlaylistEnqueue();

View File

@ -85,7 +85,7 @@ class CollectionWatcher : public QObject {
void ScanStarted(const int task_id); void ScanStarted(const int task_id);
public slots: public Q_SLOTS:
void AddDirectory(const CollectionDirectory &dir, const CollectionSubdirectoryList &subdirs); void AddDirectory(const CollectionDirectory &dir, const CollectionSubdirectoryList &subdirs);
void RemoveDirectory(const CollectionDirectory &dir); void RemoveDirectory(const CollectionDirectory &dir);
void SetRescanPaused(bool pause); void SetRescanPaused(bool pause);
@ -166,7 +166,7 @@ class CollectionWatcher : public QObject {
bool known_subdirs_dirty_; bool known_subdirs_dirty_;
}; };
private slots: private Q_SLOTS:
void ReloadSettings(); void ReloadSettings();
void Exit(); void Exit();
void DirectoryChanged(const QString &subdir); void DirectoryChanged(const QString &subdir);

View File

@ -43,14 +43,14 @@ class GroupByDialog : public QDialog {
explicit GroupByDialog(QWidget *parent = nullptr); explicit GroupByDialog(QWidget *parent = nullptr);
~GroupByDialog() override; ~GroupByDialog() override;
public slots: public Q_SLOTS:
void CollectionGroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping); void CollectionGroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
void accept() override; void accept() override;
Q_SIGNALS: Q_SIGNALS:
void Accepted(const CollectionModel::Grouping g, const bool separate_albums_by_grouping); void Accepted(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
private slots: private Q_SLOTS:
void Reset(); void Reset();
private: private:

View File

@ -54,7 +54,7 @@ class SavedGroupingManager : public QDialog {
Q_SIGNALS: Q_SIGNALS:
void UpdateGroupByActions(); void UpdateGroupByActions();
private slots: private Q_SLOTS:
void UpdateButtonState(); void UpdateButtonState();
void Remove(); void Remove();

View File

@ -81,7 +81,7 @@ class ContextAlbum : public QWidget {
Q_SIGNALS: Q_SIGNALS:
void FadeStopFinished(); void FadeStopFinished();
private slots: private Q_SLOTS:
void Update() { update(); } void Update() { update(); }
void AutomaticCoverSearchDone(); void AutomaticCoverSearchDone();
void FadeCurrentCover(const qreal value); void FadeCurrentCover(const qreal value);
@ -89,7 +89,7 @@ class ContextAlbum : public QWidget {
void FadePreviousCover(SharedPtr<PreviousCover> previous_cover); void FadePreviousCover(SharedPtr<PreviousCover> previous_cover);
void FadePreviousCoverFinished(SharedPtr<PreviousCover> previous_cover); void FadePreviousCoverFinished(SharedPtr<PreviousCover> previous_cover);
public slots: public Q_SLOTS:
void SearchCoverInProgress(); void SearchCoverInProgress();
private: private:

View File

@ -83,7 +83,7 @@ class ContextView : public QWidget {
Q_SIGNALS: Q_SIGNALS:
void AlbumEnabledChanged(); void AlbumEnabledChanged();
private slots: private Q_SLOTS:
void ActionShowAlbum(); void ActionShowAlbum();
void ActionShowData(); void ActionShowData();
void ActionShowLyrics(); void ActionShowLyrics();
@ -92,7 +92,7 @@ class ContextView : public QWidget {
void FadeStopFinished(); void FadeStopFinished();
void UpdateLyrics(const quint64 id, const QString &provider, const QString &lyrics); void UpdateLyrics(const quint64 id, const QString &provider, const QString &lyrics);
public slots: public Q_SLOTS:
void ReloadSettings(); void ReloadSettings();
void Playing(); void Playing();
void Stopped(); void Stopped();

View File

@ -112,10 +112,10 @@ class Application : public QObject {
QThread *MoveToNewThread(QObject *object); QThread *MoveToNewThread(QObject *object);
static void MoveToThread(QObject *object, QThread *thread); static void MoveToThread(QObject *object, QThread *thread);
private slots: private Q_SLOTS:
void ExitReceived(); void ExitReceived();
public slots: public Q_SLOTS:
void AddError(const QString &message); void AddError(const QString &message);
void ReloadSettings(); void ReloadSettings();
void OpenSettingsDialogAtPage(SettingsDialog::Page page); void OpenSettingsDialogAtPage(SettingsDialog::Page page);

View File

@ -88,10 +88,10 @@ class Database : public QObject {
void Error(const QString &error); void Error(const QString &error);
void Errors(const QStringList &errors); void Errors(const QStringList &errors);
private slots: private Q_SLOTS:
void Exit(); void Exit();
public slots: public Q_SLOTS:
void DoBackup(); void DoBackup();
private: private:

View File

@ -47,7 +47,7 @@ class DeleteFiles : public QObject {
Q_SIGNALS: Q_SIGNALS:
void Finished(const SongList &songs_with_errors); void Finished(const SongList &songs_with_errors);
private slots: private Q_SLOTS:
void ProcessSomeFiles(); void ProcessSomeFiles();
private: private:

View File

@ -48,7 +48,7 @@ class LocalRedirectServer : public QTcpServer {
Q_SIGNALS: Q_SIGNALS:
void Finished(); void Finished();
public slots: public Q_SLOTS:
void NewConnection(); void NewConnection();
void incomingConnection(qintptr socket_descriptor) override; void incomingConnection(qintptr socket_descriptor) override;
void Encrypted(); void Encrypted();

View File

@ -47,7 +47,7 @@ class MacFSListener : public FileSystemWatcherInterface {
Q_SIGNALS: Q_SIGNALS:
void PathChanged(const QString &path); void PathChanged(const QString &path);
private slots: private Q_SLOTS:
void UpdateStream(); void UpdateStream();
private: private:

View File

@ -71,7 +71,7 @@ class SystemTrayIcon : public QObject {
QPixmap CreateIcon(const QPixmap &icon, const QPixmap &grey_icon); QPixmap CreateIcon(const QPixmap &icon, const QPixmap &grey_icon);
void UpdateIcon(); void UpdateIcon();
private slots: private Q_SLOTS:
void ActionChanged(); void ActionChanged();
Q_SIGNALS: Q_SIGNALS:

View File

@ -139,7 +139,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void AuthorizationUrlReceived(const QUrl &url); void AuthorizationUrlReceived(const QUrl &url);
private slots: private Q_SLOTS:
void FilePathChanged(const QString &path); void FilePathChanged(const QString &path);
void EngineChanged(const EngineBase::Type enginetype); void EngineChanged(const EngineBase::Type enginetype);
@ -274,7 +274,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void DeleteFilesFinished(const SongList &songs_with_errors); void DeleteFilesFinished(const SongList &songs_with_errors);
public slots: public Q_SLOTS:
void CommandlineOptionsReceived(const QByteArray &string_options); void CommandlineOptionsReceived(const QByteArray &string_options);
void Raise(); void Raise();

View File

@ -88,7 +88,7 @@ class MergedProxyModel : public QAbstractProxyModel {
Q_SIGNALS: Q_SIGNALS:
void SubModelReset(const QModelIndex root, QAbstractItemModel *model); void SubModelReset(const QModelIndex root, QAbstractItemModel *model);
private slots: private Q_SLOTS:
void SourceModelReset(); void SourceModelReset();
void SubModelAboutToBeReset(); void SubModelAboutToBeReset();
void SubModelResetSlot(); void SubModelResetSlot();

View File

@ -206,7 +206,7 @@ class Mpris2 : public QObject {
// Playlist // Playlist
void PlaylistChanged(const MprisPlaylist &playlist); void PlaylistChanged(const MprisPlaylist &playlist);
private slots: private Q_SLOTS:
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result = AlbumCoverLoaderResult()); void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result = AlbumCoverLoaderResult());
void EngineStateChanged(EngineBase::State newState); void EngineStateChanged(EngineBase::State newState);
void VolumeChanged(); void VolumeChanged();

View File

@ -42,7 +42,7 @@ class NetworkTimeouts : public QObject {
protected: protected:
void timerEvent(QTimerEvent *e) override; void timerEvent(QTimerEvent *e) override;
private slots: private Q_SLOTS:
void ReplyFinished(); void ReplyFinished();
private: private:

View File

@ -64,7 +64,7 @@ class PlayerInterface : public QObject {
virtual void RegisterUrlHandler(UrlHandler *handler) = 0; virtual void RegisterUrlHandler(UrlHandler *handler) = 0;
virtual void UnregisterUrlHandler(UrlHandler *handler) = 0; virtual void UnregisterUrlHandler(UrlHandler *handler) = 0;
public slots: public Q_SLOTS:
virtual void ReloadSettings() = 0; virtual void ReloadSettings() = 0;
virtual void LoadVolume() = 0; virtual void LoadVolume() = 0;
virtual void SaveVolume() = 0; virtual void SaveVolume() = 0;
@ -155,7 +155,7 @@ class Player : public PlayerInterface {
void SetAnalyzer(AnalyzerContainer *analyzer) { analyzer_ = analyzer; } void SetAnalyzer(AnalyzerContainer *analyzer) { analyzer_ = analyzer; }
void SetEqualizer(SharedPtr<Equalizer> equalizer) { equalizer_ = equalizer; } void SetEqualizer(SharedPtr<Equalizer> equalizer) { equalizer_ = equalizer; }
public slots: public Q_SLOTS:
void ReloadSettings() override; void ReloadSettings() override;
void LoadVolume() override; void LoadVolume() override;
void SaveVolume() override; void SaveVolume() override;
@ -193,7 +193,7 @@ class Player : public PlayerInterface {
Q_SIGNALS: Q_SIGNALS:
void EngineChanged(const EngineBase::Type Type); void EngineChanged(const EngineBase::Type Type);
private slots: private Q_SLOTS:
void EngineStateChanged(const EngineBase::State); void EngineStateChanged(const EngineBase::State);
void EngineMetadataReceived(const EngineMetadata &engine_metadata); void EngineMetadataReceived(const EngineMetadata &engine_metadata);
void TrackAboutToEnd(); void TrackAboutToEnd();

View File

@ -77,7 +77,7 @@ class SystemTrayIcon : public QSystemTrayIcon {
void ShowHide(); void ShowHide();
void PlayPause(); void PlayPause();
private slots: private Q_SLOTS:
void Clicked(const QSystemTrayIcon::ActivationReason); void Clicked(const QSystemTrayIcon::ActivationReason);
private: private:

View File

@ -91,7 +91,7 @@ class SongLoader : public QObject {
void LoadAudioCDFinished(const bool success); void LoadAudioCDFinished(const bool success);
void LoadRemoteFinished(); void LoadRemoteFinished();
private slots: private Q_SLOTS:
void ScheduleTimeout(); void ScheduleTimeout();
void Timeout(); void Timeout();
void StopTypefind(); void StopTypefind();

View File

@ -49,7 +49,7 @@ class StandardItemIconLoader : public QObject {
void LoadIcon(const QUrl &art_automatic, const QUrl &art_manual, QStandardItem *for_item); void LoadIcon(const QUrl &art_automatic, const QUrl &art_manual, QStandardItem *for_item);
void LoadIcon(const Song &song, QStandardItem *for_item); void LoadIcon(const Song &song, QStandardItem *for_item);
private slots: private Q_SLOTS:
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result); void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
void RowsAboutToBeRemoved(const QModelIndex &parent, int begin, int end); void RowsAboutToBeRemoved(const QModelIndex &parent, int begin, int end);
void ModelReset(); void ModelReset();

View File

@ -116,11 +116,11 @@ class TagReaderClient : public QObject {
Q_SIGNALS: Q_SIGNALS:
void ExitFinished(); void ExitFinished();
private slots: private Q_SLOTS:
void Exit(); void Exit();
void WorkerFailedToStart(); void WorkerFailedToStart();
public slots: public Q_SLOTS:
void SaveSongsPlaycount(const SongList &songs); void SaveSongsPlaycount(const SongList &songs);
void SaveSongsRating(const SongList &songs); void SaveSongsRating(const SongList &songs);

View File

@ -49,7 +49,7 @@ class ThreadSafeNetworkDiskCache : public QAbstractNetworkCache {
bool remove(const QUrl &url) override; bool remove(const QUrl &url) override;
void updateMetaData(const QNetworkCacheMetaData &metaData) override; void updateMetaData(const QNetworkCacheMetaData &metaData) override;
public slots: public Q_SLOTS:
void clear() override; void clear() override;
private: private:

View File

@ -49,7 +49,7 @@ class Windows7ThumbBar : public QObject {
ITaskbarList3 *CreateTaskbarList(); ITaskbarList3 *CreateTaskbarList();
void SetupButton(const QAction *action, THUMBBUTTON *button); void SetupButton(const QAction *action, THUMBBUTTON *button);
private slots: private Q_SLOTS:
void ActionChangedTriggered(); void ActionChangedTriggered();
void ActionChanged(); void ActionChanged();

View File

@ -155,10 +155,10 @@ class AlbumCoverChoiceController : public QWidget {
static bool CanAcceptDrag(const QDragEnterEvent *e); static bool CanAcceptDrag(const QDragEnterEvent *e);
public slots: public Q_SLOTS:
void set_save_embedded_cover_override(const bool value) { save_embedded_cover_override_ = value; } void set_save_embedded_cover_override(const bool value) { save_embedded_cover_override_ = value; }
private slots: private Q_SLOTS:
void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics); void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
void SaveEmbeddedCoverFinished(TagReaderReply *reply, Song song, const bool art_embedded); void SaveEmbeddedCoverFinished(TagReaderReply *reply, Song song, const bool art_embedded);

View File

@ -69,7 +69,7 @@ class AlbumCoverExport : public QDialog {
DialogResult Exec(); DialogResult Exec();
private slots: private Q_SLOTS:
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) #if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
void ForceSizeToggled(Qt::CheckState state); void ForceSizeToggled(Qt::CheckState state);
#else #else

View File

@ -51,7 +51,7 @@ class AlbumCoverExporter : public QObject {
Q_SIGNALS: Q_SIGNALS:
void AlbumCoversExportUpdate(const int exported, const int skipped, const int all); void AlbumCoversExportUpdate(const int exported, const int skipped, const int all);
private slots: private Q_SLOTS:
void CoverExported(); void CoverExported();
void CoverSkipped(); void CoverSkipped();

View File

@ -121,7 +121,7 @@ class AlbumCoverFetcher : public QObject {
void AlbumCoverFetched(const quint64 request_id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics); void AlbumCoverFetched(const quint64 request_id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
void SearchFinished(const quint64 request_id, const CoverProviderSearchResults &results, const CoverSearchStatistics &statistics); void SearchFinished(const quint64 request_id, const CoverProviderSearchResults &results, const CoverSearchStatistics &statistics);
private slots: private Q_SLOTS:
void SingleSearchFinished(const quint64 id, const CoverProviderSearchResults &results); void SingleSearchFinished(const quint64 id, const CoverProviderSearchResults &results);
void SingleCoverFetched(const quint64 id, const AlbumCoverImageResult &result); void SingleCoverFetched(const quint64 id, const AlbumCoverImageResult &result);
void StartRequests(); void StartRequests();

View File

@ -72,7 +72,7 @@ class AlbumCoverFetcherSearch : public QObject {
// It's the end of search and we've fetched a cover. // It's the end of search and we've fetched a cover.
void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result); void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result);
private slots: private Q_SLOTS:
void ProviderSearchResults(const int id, const CoverProviderSearchResults &results); void ProviderSearchResults(const int id, const CoverProviderSearchResults &results);
void ProviderSearchFinished(const int id, const CoverProviderSearchResults &results); void ProviderSearchFinished(const int id, const CoverProviderSearchResults &results);
void ProviderCoverFetchFinished(QNetworkReply *reply); void ProviderCoverFetchFinished(QNetworkReply *reply);

View File

@ -117,7 +117,7 @@ class AlbumCoverLoader : public QObject {
LoadImageResult LoadRemoteUrlImage(TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url); LoadImageResult LoadRemoteUrlImage(TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url);
void FinishTask(TaskPtr task, const AlbumCoverLoaderResult::Type result_type); void FinishTask(TaskPtr task, const AlbumCoverLoaderResult::Type result_type);
private slots: private Q_SLOTS:
void Exit(); void Exit();
void ProcessTasks(); void ProcessTasks();
void LoadRemoteImageFinished(QNetworkReply *reply, AlbumCoverLoader::TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url); void LoadRemoteImageFinished(QNetworkReply *reply, AlbumCoverLoader::TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url);

View File

@ -153,7 +153,7 @@ class AlbumCoverManager : public QMainWindow {
void Error(const QString &error); void Error(const QString &error);
void AddToPlaylist(QMimeData *data); void AddToPlaylist(QMimeData *data);
private slots: private Q_SLOTS:
void ArtistChanged(QListWidgetItem *current); void ArtistChanged(QListWidgetItem *current);
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result); void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
void UpdateFilter(); void UpdateFilter();

View File

@ -85,7 +85,7 @@ class AlbumCoverSearcher : public QDialog {
protected: protected:
void keyPressEvent(QKeyEvent*) override; void keyPressEvent(QKeyEvent*) override;
private slots: private Q_SLOTS:
void Search(); void Search();
void SearchFinished(const quint64 id, const CoverProviderSearchResults &results); void SearchFinished(const quint64 id, const CoverProviderSearchResults &results);
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result); void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);

View File

@ -47,7 +47,7 @@ class CoverFromURLDialog : public QDialog {
// Opens the dialog. This returns an image found at the URL chosen by user or null image if the dialog got rejected. // Opens the dialog. This returns an image found at the URL chosen by user or null image if the dialog got rejected.
AlbumCoverImageResult Exec(); AlbumCoverImageResult Exec();
private slots: private Q_SLOTS:
void accept() override; void accept() override;
void LoadCoverFromURLFinished(); void LoadCoverFromURLFinished();

View File

@ -59,7 +59,7 @@ class CoverProviders : public QObject {
int NextId(); int NextId();
private slots: private Q_SLOTS:
void ProviderDestroyed(); void ProviderDestroyed();
private: private:

View File

@ -49,7 +49,7 @@ class CurrentAlbumCoverLoader : public QObject {
void ReloadSettingsAsync(); void ReloadSettingsAsync();
public slots: public Q_SLOTS:
void ReloadSettings(); void ReloadSettings();
void LoadAlbumCover(const Song &song); void LoadAlbumCover(const Song &song);
@ -57,7 +57,7 @@ class CurrentAlbumCoverLoader : public QObject {
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result); void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
void ThumbnailLoaded(const Song &song, const QUrl &thumbnail_uri, const QImage &image); void ThumbnailLoaded(const Song &song, const QUrl &thumbnail_uri, const QImage &image);
private slots: private Q_SLOTS:
void AlbumCoverReady(const quint64 id, AlbumCoverLoaderResult result); void AlbumCoverReady(const quint64 id, AlbumCoverLoaderResult result);
private: private:

View File

@ -46,7 +46,7 @@ class DeezerCoverProvider : public JsonCoverProvider {
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override; bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override;
void CancelSearch(const int id) override; void CancelSearch(const int id) override;
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id); void HandleSearchReply(QNetworkReply *reply, const int id);
private: private:

View File

@ -84,7 +84,7 @@ class DiscogsCoverProvider : public JsonCoverProvider {
void EndSearch(SharedPtr<DiscogsCoverSearchContext> search, const quint64 release_id = 0); void EndSearch(SharedPtr<DiscogsCoverSearchContext> search, const quint64 release_id = 0);
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void FlushRequests(); void FlushRequests();
void HandleSearchReply(QNetworkReply *reply, const int id); void HandleSearchReply(QNetworkReply *reply, const int id);
void HandleReleaseReply(QNetworkReply *reply, const int search_id, const quint64 release_id); void HandleReleaseReply(QNetworkReply *reply, const int search_id, const quint64 release_id);

View File

@ -45,7 +45,7 @@ class LastFmCoverProvider : public JsonCoverProvider {
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override; bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override;
private slots: private Q_SLOTS:
void QueryFinished(QNetworkReply *reply, const int id, const QString &type); void QueryFinished(QNetworkReply *reply, const int id, const QString &type);
private: private:

View File

@ -47,7 +47,7 @@ class MusicbrainzCoverProvider : public JsonCoverProvider {
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override; bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override;
private slots: private Q_SLOTS:
void FlushRequests(); void FlushRequests();
void HandleSearchReply(QNetworkReply *reply, const int search_id); void HandleSearchReply(QNetworkReply *reply, const int search_id);

View File

@ -48,7 +48,7 @@ class MusixmatchCoverProvider : public JsonCoverProvider, MusixmatchProvider {
private: private:
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id, const QString &artist, const QString &album); void HandleSearchReply(QNetworkReply *reply, const int id, const QString &artist, const QString &album);
private: private:

View File

@ -70,7 +70,7 @@ class OpenTidalCoverProvider : public JsonCoverProvider {
void FinishAllSearches(); void FinishAllSearches();
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void FlushRequests(); void FlushRequests();
void LoginFinished(QNetworkReply *reply); void LoginFinished(QNetworkReply *reply);
void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors); void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors);

View File

@ -51,7 +51,7 @@ class QobuzCoverProvider : public JsonCoverProvider {
bool IsAuthenticated() const override { return service_ && service_->authenticated(); } bool IsAuthenticated() const override { return service_ && service_->authenticated(); }
void Deauthenticate() override { if (service_) service_->Logout(); } void Deauthenticate() override { if (service_) service_->Logout(); }
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id); void HandleSearchReply(QNetworkReply *reply, const int id);
private: private:

View File

@ -57,7 +57,7 @@ class SpotifyCoverProvider : public JsonCoverProvider {
if (service_) service_->Deauthenticate(); if (service_) service_->Deauthenticate();
} }
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id, const QString &extract); void HandleSearchReply(QNetworkReply *reply, const int id, const QString &extract);
private: private:

View File

@ -55,7 +55,7 @@ class TidalCoverProvider : public JsonCoverProvider {
if (service_) service_->Logout(); if (service_) service_->Logout();
} }
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id); void HandleSearchReply(QNetworkReply *reply, const int id);
private: private:

View File

@ -59,7 +59,7 @@ class CddaDevice : public ConnectedDevice {
Q_SIGNALS: Q_SIGNALS:
void SongsDiscovered(const SongList &songs); void SongsDiscovered(const SongList &songs);
private slots: private Q_SLOTS:
void SongsLoaded(const SongList &songs); void SongsLoaded(const SongList &songs);
private: private:

View File

@ -65,7 +65,7 @@ class CddaSongLoader : public QObject {
void SongsDurationLoaded(const SongList &songs, const QString &error = QString()); void SongsDurationLoaded(const SongList &songs, const QString &error = QString());
void SongsMetadataLoaded(const SongList &songs); void SongsMetadataLoaded(const SongList &songs);
private slots: private Q_SLOTS:
#ifdef HAVE_MUSICBRAINZ #ifdef HAVE_MUSICBRAINZ
void AudioCDTagsLoaded(const QString &artist, const QString &album, const MusicBrainzClient::ResultList &results); void AudioCDTagsLoaded(const QString &artist, const QString &album, const MusicBrainzClient::ResultList &results);
#endif #endif

View File

@ -73,7 +73,7 @@ class ConnectedDevice : public QObject, public virtual MusicStorage, public enab
void Eject() override; void Eject() override;
virtual void Close(); virtual void Close();
public slots: public Q_SLOTS:
void BackendCloseFinished(); void BackendCloseFinished();
Q_SIGNALS: Q_SIGNALS:
@ -100,7 +100,7 @@ class ConnectedDevice : public QObject, public virtual MusicStorage, public enab
qint64 song_count_; qint64 song_count_;
private slots: private Q_SLOTS:
void BackendTotalSongCountUpdated(int count); void BackendTotalSongCountUpdated(int count);
}; };

View File

@ -68,7 +68,7 @@ class DeviceDatabaseBackend : public QObject {
void SetDeviceOptions(const int id, const QString &friendly_name, const QString &icon_name, const MusicStorage::TranscodeMode mode, const Song::FileType format); void SetDeviceOptions(const int id, const QString &friendly_name, const QString &icon_name, const MusicStorage::TranscodeMode mode, const Song::FileType format);
private slots: private Q_SLOTS:
void Exit(); void Exit();
Q_SIGNALS: Q_SIGNALS:

View File

@ -74,7 +74,7 @@ class DeviceLister : public QObject {
virtual bool CopyMusic() { return true; } virtual bool CopyMusic() { return true; }
public slots: public Q_SLOTS:
virtual void UpdateDeviceFreeSpace(const QString &id) = 0; virtual void UpdateDeviceFreeSpace(const QString &id) = 0;
virtual void ShutDown() {} virtual void ShutDown() {}
virtual void MountDevice(const QString &id, const int request_id); virtual void MountDevice(const QString &id, const int request_id);
@ -101,7 +101,7 @@ class DeviceLister : public QObject {
QThread *original_thread_; QThread *original_thread_;
int next_mount_request_id_; int next_mount_request_id_;
private slots: private Q_SLOTS:
void ThreadStarted(); void ThreadStarted();
private: private:

View File

@ -115,7 +115,7 @@ class DeviceManager : public SimpleTreeModel<DeviceInfo> {
// QAbstractItemModel // QAbstractItemModel
QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const override; QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const override;
public slots: public Q_SLOTS:
void Unmount(const QModelIndex &idx); void Unmount(const QModelIndex &idx);
Q_SIGNALS: Q_SIGNALS:
@ -124,7 +124,7 @@ class DeviceManager : public SimpleTreeModel<DeviceInfo> {
void DeviceDisconnected(const QModelIndex idx); void DeviceDisconnected(const QModelIndex idx);
void DeviceCreatedFromDB(DeviceInfo *info); void DeviceCreatedFromDB(DeviceInfo *info);
private slots: private Q_SLOTS:
void PhysicalDeviceAdded(const QString &id); void PhysicalDeviceAdded(const QString &id);
void PhysicalDeviceRemoved(const QString &id); void PhysicalDeviceRemoved(const QString &id);
void PhysicalDeviceChanged(const QString &id); void PhysicalDeviceChanged(const QString &id);

View File

@ -51,7 +51,7 @@ class DeviceProperties : public QDialog {
void SetDeviceManager(SharedPtr<DeviceManager> manager); void SetDeviceManager(SharedPtr<DeviceManager> manager);
void ShowDevice(const QModelIndex &idx); void ShowDevice(const QModelIndex &idx);
public slots: public Q_SLOTS:
void accept() override; void accept() override;
private: private:
@ -59,7 +59,7 @@ class DeviceProperties : public QDialog {
void AddHardwareInfo(const int row, const QString &key, const QString &value); void AddHardwareInfo(const int row, const QString &key, const QString &value);
void UpdateFormats(); void UpdateFormats();
private slots: private Q_SLOTS:
void ModelChanged(); void ModelChanged();
void OpenDevice(); void OpenDevice();
void UpdateFormatsFinished(); void UpdateFormatsFinished();

View File

@ -47,7 +47,7 @@ class DeviceStateFilterModel : public QSortFilterProxyModel {
protected: protected:
bool filterAcceptsRow(int row, const QModelIndex &parent) const override; bool filterAcceptsRow(int row, const QModelIndex &parent) const override;
private slots: private Q_SLOTS:
void ProxyReset(); void ProxyReset();
void ProxyRowCountChanged(const QModelIndex &idx, const int first, const int last); void ProxyRowCountChanged(const QModelIndex &idx, const int first, const int last);

View File

@ -76,7 +76,7 @@ class DeviceView : public AutoExpandingTreeView {
void contextMenuEvent(QContextMenuEvent*) override; void contextMenuEvent(QContextMenuEvent*) override;
void mouseDoubleClickEvent(QMouseEvent *e) override; void mouseDoubleClickEvent(QMouseEvent *e) override;
private slots: private Q_SLOTS:
// Device menu actions // Device menu actions
void Connect(); void Connect();
void Unmount(); void Unmount();

View File

@ -54,7 +54,7 @@ class FilesystemDevice : public ConnectedDevice, public virtual FilesystemMusicS
static QStringList url_schemes() { return QStringList() << QStringLiteral("file"); } static QStringList url_schemes() { return QStringList() << QStringLiteral("file"); }
private slots: private Q_SLOTS:
void Close() override; void Close() override;
void ExitFinished(); void ExitFinished();

View File

@ -67,7 +67,7 @@ class GioLister : public DeviceLister {
QString MakeFriendlyName(const QString &id) override; QString MakeFriendlyName(const QString &id) override;
QList<QUrl> MakeDeviceUrls(const QString &id) override; QList<QUrl> MakeDeviceUrls(const QString &id) override;
public slots: public Q_SLOTS:
void MountDevice(const QString &id, const int request_id) override; void MountDevice(const QString &id, const int request_id) override;
void UnmountDevice(const QString &id) override; void UnmountDevice(const QString &id) override;
void UpdateDeviceFreeSpace(const QString &id) override; void UpdateDeviceFreeSpace(const QString &id) override;

View File

@ -71,7 +71,7 @@ class GPodDevice : public ConnectedDevice, public virtual MusicStorage {
bool DeleteFromStorage(const DeleteJob &job) override; bool DeleteFromStorage(const DeleteJob &job) override;
bool FinishDelete(bool success, QString &error_text) override; bool FinishDelete(bool success, QString &error_text) override;
protected slots: protected Q_SLOTS:
void LoadFinished(Itdb_iTunesDB *db, const bool success); void LoadFinished(Itdb_iTunesDB *db, const bool success);
void LoaderError(const QString &message); void LoaderError(const QString &message);

View File

@ -49,7 +49,7 @@ class GPodLoader : public QObject {
void Abort() { abort_ = true; } void Abort() { abort_ = true; }
public slots: public Q_SLOTS:
void LoadDatabase(); void LoadDatabase();
Q_SIGNALS: Q_SIGNALS:

View File

@ -77,7 +77,7 @@ class MacOsDeviceLister : public DeviceLister {
void ExitAsync(); void ExitAsync();
public slots: public Q_SLOTS:
void UnmountDevice(const QString &id); void UnmountDevice(const QString &id);
void ShutDown(); void ShutDown();

View File

@ -70,7 +70,7 @@ class MtpDevice : public ConnectedDevice {
bool DeleteFromStorage(const DeleteJob &job) override; bool DeleteFromStorage(const DeleteJob &job) override;
bool FinishDelete(const bool success, QString &error_text) override; bool FinishDelete(const bool success, QString &error_text) override;
private slots: private Q_SLOTS:
void LoadFinished(bool success, MtpConnection *connection); void LoadFinished(bool success, MtpConnection *connection);
void LoaderError(const QString &message); void LoaderError(const QString &message);

View File

@ -46,7 +46,7 @@ class MtpLoader : public QObject {
bool Init(); bool Init();
void Abort() { abort_ = true; } void Abort() { abort_ = true; }
public slots: public Q_SLOTS:
void LoadDatabase(); void LoadDatabase();
Q_SIGNALS: Q_SIGNALS:

View File

@ -65,14 +65,14 @@ class Udisks2Lister : public DeviceLister {
QString MakeFriendlyName(const QString &id) override; QString MakeFriendlyName(const QString &id) override;
QList<QUrl> MakeDeviceUrls(const QString &id) override; QList<QUrl> MakeDeviceUrls(const QString &id) override;
public slots: public Q_SLOTS:
void UnmountDevice(const QString &id) override; void UnmountDevice(const QString &id) override;
void UpdateDeviceFreeSpace(const QString &id) override; void UpdateDeviceFreeSpace(const QString &id) override;
protected: protected:
bool Init() override; bool Init() override;
private slots: private Q_SLOTS:
void DBusInterfaceAdded(const QDBusObjectPath &path, const InterfacesAndProperties &interfaces); void DBusInterfaceAdded(const QDBusObjectPath &path, const InterfacesAndProperties &interfaces);
void DBusInterfaceRemoved(const QDBusObjectPath &path, const QStringList &interfaces); void DBusInterfaceRemoved(const QDBusObjectPath &path, const QStringList &interfaces);
void JobCompleted(const bool success, const QString &message); void JobCompleted(const bool success, const QString &message);

View File

@ -40,7 +40,7 @@ class AddStreamDialog : public QDialog {
protected: protected:
void showEvent(QShowEvent *e) override; void showEvent(QShowEvent *e) override;
private slots: private Q_SLOTS:
void TextChanged(const QString &text); void TextChanged(const QString &text);
private: private:

View File

@ -39,7 +39,7 @@ class Console : public QDialog {
public: public:
explicit Console(Application *app, QWidget *parent = nullptr); explicit Console(Application *app, QWidget *parent = nullptr);
private slots: private Q_SLOTS:
void RunQuery(); void RunQuery();
private: private:

View File

@ -32,7 +32,7 @@ class DeleteConfirmationDialog : public QDialog {
static QDialogButtonBox::StandardButton warning(const QStringList &files, QWidget *parent = nullptr); static QDialogButtonBox::StandardButton warning(const QStringList &files, QWidget *parent = nullptr);
private slots: private Q_SLOTS:
void ButtonClicked(QAbstractButton *button); void ButtonClicked(QAbstractButton *button);
private: private:

View File

@ -104,7 +104,7 @@ class EditTagDialog : public QDialog {
AlbumCoverImageResult cover_result_; AlbumCoverImageResult cover_result_;
}; };
private slots: private Q_SLOTS:
void SetSongsFinished(); void SetSongsFinished();
void SaveDataFinished(); void SaveDataFinished();

View File

@ -39,7 +39,7 @@ class ErrorDialog : public QDialog {
explicit ErrorDialog(QWidget *parent = nullptr); explicit ErrorDialog(QWidget *parent = nullptr);
~ErrorDialog() override; ~ErrorDialog() override;
public slots: public Q_SLOTS:
void ShowMessage(const QString &message); void ShowMessage(const QString &message);
protected: protected:

View File

@ -47,13 +47,13 @@ class LastFMImportDialog : public QDialog {
void ResetFinished(); void ResetFinished();
void Reset(); void Reset();
private slots: private Q_SLOTS:
void Start(); void Start();
void Cancel(); void Cancel();
void Close(); void Close();
void UpdateGoButtonState(); void UpdateGoButtonState();
public slots: public Q_SLOTS:
void Finished(); void Finished();
void FinishedWithError(const QString &error); void FinishedWithError(const QString &error);
void UpdateTotal(const int lastplayed_total, const int playcount_total); void UpdateTotal(const int lastplayed_total, const int playcount_total);

View File

@ -38,7 +38,7 @@ class MessageDialog : public QDialog {
void ShowMessage(const QString &title, const QString &message, const QIcon &icon = QIcon()); void ShowMessage(const QString &title, const QString &message, const QIcon &icon = QIcon());
private slots: private Q_SLOTS:
void DoNotShowMessageAgain(); void DoNotShowMessageAgain();
protected: protected:

View File

@ -40,7 +40,7 @@ class SavePlaylistsDialog : public QDialog {
protected: protected:
void accept() override; void accept() override;
private slots: private Q_SLOTS:
void SelectPath(); void SelectPath();
private: private:

View File

@ -46,7 +46,7 @@ class TrackSelectionDialog : public QDialog {
void Init(const SongList &songs); void Init(const SongList &songs);
public slots: public Q_SLOTS:
void FetchTagProgress(const Song &original_song, const QString &progress); void FetchTagProgress(const Song &original_song, const QString &progress);
void FetchTagFinished(const Song &original_song, const SongList &songs_guessed); void FetchTagFinished(const Song &original_song, const SongList &songs_guessed);
@ -57,7 +57,7 @@ class TrackSelectionDialog : public QDialog {
void Error(const QString &error); void Error(const QString &error);
void SongChosen(const Song &original_song, const Song &new_metadata); void SongChosen(const Song &original_song, const Song &new_metadata);
private slots: private Q_SLOTS:
void UpdateStack(); void UpdateStack();
void NextSong(); void NextSong();

View File

@ -136,7 +136,7 @@ class EngineBase : public QObject {
bool Play(const QUrl &media_url, const QUrl &stream_url, const bool pause, const TrackChangeFlags flags, const bool force_stop_at_end, const quint64 beginning_nanosec, const qint64 end_nanosec, const quint64 offset_nanosec, const std::optional<double> ebur128_integrated_loudness_lufs); bool Play(const QUrl &media_url, const QUrl &stream_url, const bool pause, const TrackChangeFlags flags, const bool force_stop_at_end, const quint64 beginning_nanosec, const qint64 end_nanosec, const quint64 offset_nanosec, const std::optional<double> ebur128_integrated_loudness_lufs);
void SetVolume(const uint volume); void SetVolume(const uint volume);
public slots: public Q_SLOTS:
virtual void ReloadSettings(); virtual void ReloadSettings();
void UpdateVolume(const uint volume); void UpdateVolume(const uint volume);
void EmitAboutToFinish(); void EmitAboutToFinish();
@ -156,7 +156,7 @@ class EngineBase : public QObject {
QVariant device() { return device_; } QVariant device() { return device_; }
public slots: public Q_SLOTS:
virtual void SetStereoBalancerEnabled(const bool) {} virtual void SetStereoBalancerEnabled(const bool) {}
virtual void SetStereoBalance(const float) {} virtual void SetStereoBalance(const float) {}
virtual void SetEqualizerEnabled(const bool) {} virtual void SetEqualizerEnabled(const bool) {}

View File

@ -90,7 +90,7 @@ class GstEngine : public EngineBase, public GstBufferConsumer {
void ConsumeBuffer(GstBuffer *buffer, const int pipeline_id, const QString &format) override; void ConsumeBuffer(GstBuffer *buffer, const int pipeline_id, const QString &format) override;
public slots: public Q_SLOTS:
void ReloadSettings() override; void ReloadSettings() override;
// Set whether stereo balancer is enabled // Set whether stereo balancer is enabled
@ -111,7 +111,7 @@ class GstEngine : public EngineBase, public GstBufferConsumer {
protected: protected:
void timerEvent(QTimerEvent *e) override; void timerEvent(QTimerEvent *e) override;
private slots: private Q_SLOTS:
void EndOfStreamReached(const int pipeline_id, const bool has_next_track); void EndOfStreamReached(const int pipeline_id, const bool has_next_track);
void HandlePipelineError(const int pipeline_id, const int domain, const int error_code, const QString &message, const QString &debugstr); void HandlePipelineError(const int pipeline_id, const int domain, const int error_code, const QString &message, const QString &debugstr);
void NewMetaData(const int pipeline_id, const EngineMetadata &engine_metadata); void NewMetaData(const int pipeline_id, const EngineMetadata &engine_metadata);

View File

@ -138,7 +138,7 @@ class GstEnginePipeline : public QObject {
bool exclusive_mode() const { return exclusive_mode_; } bool exclusive_mode() const { return exclusive_mode_; }
public slots: public Q_SLOTS:
void SetFaderVolume(const qreal volume); void SetFaderVolume(const qreal volume);
Q_SIGNALS: Q_SIGNALS:
@ -202,7 +202,7 @@ class GstEnginePipeline : public QObject {
void ResumeFaderAsync(); void ResumeFaderAsync();
private slots: private Q_SLOTS:
void SetStateAsyncFinished(const GstState state, const GstStateChangeReturn state_change); void SetStateAsyncFinished(const GstState state, const GstStateChangeReturn state_change);
void FaderTimelineFinished(); void FaderTimelineFinished();

View File

@ -73,7 +73,7 @@ class Equalizer : public QDialog {
protected: protected:
void closeEvent(QCloseEvent*) override; void closeEvent(QCloseEvent*) override;
private slots: private Q_SLOTS:
void StereoBalancerEnabledChangedSlot(const bool enabled); void StereoBalancerEnabledChangedSlot(const bool enabled);
void StereoBalanceSliderChanged(const int value); void StereoBalanceSliderChanged(const int value);
void EqualizerEnabledChangedSlot(const bool enabled); void EqualizerEnabledChangedSlot(const bool enabled);

View File

@ -43,7 +43,7 @@ class EqualizerSlider : public QWidget {
Q_SIGNALS: Q_SIGNALS:
void ValueChanged(const int value); void ValueChanged(const int value);
public slots: public Q_SLOTS:
void OnValueChanged(const int value); void OnValueChanged(const int value);
private: private:

View File

@ -59,7 +59,7 @@ class GlobalShortcutGrabber : public QDialog {
void grabKeyboard(); void grabKeyboard();
void releaseKeyboard(); void releaseKeyboard();
private slots: private Q_SLOTS:
void Accepted(); void Accepted();
void Rejected(); void Rejected();

View File

@ -46,7 +46,7 @@ class GlobalShortcutsBackendGnome : public GlobalShortcutsBackend {
bool DoRegister() override; bool DoRegister() override;
void DoUnregister() override; void DoUnregister() override;
private slots: private Q_SLOTS:
void RegisterFinished(QDBusPendingCallWatcher *watcher); void RegisterFinished(QDBusPendingCallWatcher *watcher);
void GnomeMediaKeyPressed(const QString &application, const QString &key); void GnomeMediaKeyPressed(const QString &application, const QString &key);

View File

@ -57,7 +57,7 @@ class GlobalShortcutsBackendKDE : public GlobalShortcutsBackend {
static QList<int> ToIntList(const QList<QKeySequence> &sequence_list); static QList<int> ToIntList(const QList<QKeySequence> &sequence_list);
static QList<QKeySequence> ToKeySequenceList(const QList<int> &sequence_list); static QList<QKeySequence> ToKeySequenceList(const QList<int> &sequence_list);
private slots: private Q_SLOTS:
void RegisterFinished(QDBusPendingCallWatcher *watcher); void RegisterFinished(QDBusPendingCallWatcher *watcher);
void GlobalShortcutPressed(const QString &component_unique, const QString &shortcut_unique, qint64); void GlobalShortcutPressed(const QString &component_unique, const QString &shortcut_unique, qint64);

View File

@ -44,7 +44,7 @@ class GlobalShortcutsBackendMate : public GlobalShortcutsBackend {
bool DoRegister() override; bool DoRegister() override;
void DoUnregister() override; void DoUnregister() override;
private slots: private Q_SLOTS:
void RegisterFinished(QDBusPendingCallWatcher *watcher); void RegisterFinished(QDBusPendingCallWatcher *watcher);
void MateMediaKeyPressed(const QString &application, const QString &key); void MateMediaKeyPressed(const QString &application, const QString &key);

View File

@ -73,7 +73,7 @@ class GlobalShortcutsManager : public QWidget {
bool Register(); bool Register();
void Unregister(); void Unregister();
public slots: public Q_SLOTS:
void ReloadSettings(); void ReloadSettings();
void ShowMacAccessibilityDialog(); void ShowMacAccessibilityDialog();

View File

@ -47,7 +47,7 @@ class ChartLyricsProvider : public LyricsProvider {
private: private:
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request); void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
private: private:

View File

@ -79,7 +79,7 @@ class GeniusLyricsProvider : public JsonLyricsProvider {
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
void EndSearch(GeniusLyricsSearchContextPtr search, const GeniusLyricsLyricContext &lyric = GeniusLyricsLyricContext()); void EndSearch(GeniusLyricsSearchContextPtr search, const GeniusLyricsLyricContext &lyric = GeniusLyricsLyricContext());
private slots: private Q_SLOTS:
void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors); void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors);
void RedirectArrived(); void RedirectArrived();
void AccessTokenRequestFinished(QNetworkReply *reply); void AccessTokenRequestFinished(QNetworkReply *reply);

View File

@ -52,7 +52,7 @@ class HtmlLyricsProvider : public LyricsProvider {
virtual QUrl Url(const LyricsSearchRequest &request) = 0; virtual QUrl Url(const LyricsSearchRequest &request) = 0;
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
protected slots: protected Q_SLOTS:
virtual void HandleLyricsReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request); virtual void HandleLyricsReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
protected: protected:

View File

@ -48,7 +48,7 @@ class LoloLyricsProvider : public LyricsProvider {
private: private:
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request); void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
private: private:

View File

@ -63,7 +63,7 @@ class LyricsFetcher : public QObject {
void LyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics); void LyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics);
void SearchFinished(const quint64 request_id, const LyricsSearchResults &results); void SearchFinished(const quint64 request_id, const LyricsSearchResults &results);
private slots: private Q_SLOTS:
void SingleSearchFinished(const quint64 request_id, const LyricsSearchResults &results); void SingleSearchFinished(const quint64 request_id, const LyricsSearchResults &results);
void SingleLyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics); void SingleLyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics);
void StartRequests(); void StartRequests();

View File

@ -47,7 +47,7 @@ class LyricsFetcherSearch : public QObject {
void SearchFinished(const quint64 id, const LyricsSearchResults &results); void SearchFinished(const quint64 id, const LyricsSearchResults &results);
void LyricsFetched(const quint64 id, const QString &provider, const QString &lyrics); void LyricsFetched(const quint64 id, const QString &provider, const QString &lyrics);
private slots: private Q_SLOTS:
void ProviderSearchFinished(const int id, const LyricsSearchResults &results); void ProviderSearchFinished(const int id, const LyricsSearchResults &results);
void TerminateSearch(); void TerminateSearch();

View File

@ -48,7 +48,7 @@ class LyricsProviders : public QObject {
bool HasAnyProviders() const { return !lyrics_providers_.isEmpty(); } bool HasAnyProviders() const { return !lyrics_providers_.isEmpty(); }
int NextId(); int NextId();
private slots: private Q_SLOTS:
void ProviderDestroyed(); void ProviderDestroyed();
private: private:

View File

@ -66,7 +66,7 @@ class MusixmatchLyricsProvider : public JsonLyricsProvider, public MusixmatchPro
void EndSearch(LyricsSearchContextPtr search, const QUrl &url = QUrl()); void EndSearch(LyricsSearchContextPtr search, const QUrl &url = QUrl());
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, LyricsSearchContextPtr search); void HandleSearchReply(QNetworkReply *reply, LyricsSearchContextPtr search);
void HandleLyricsReply(QNetworkReply *reply, LyricsSearchContextPtr search, const QUrl &url); void HandleLyricsReply(QNetworkReply *reply, LyricsSearchContextPtr search, const QUrl &url);

View File

@ -48,7 +48,7 @@ class OVHLyricsProvider : public JsonLyricsProvider {
private: private:
void Error(const QString &error, const QVariant &debug = QVariant()) override; void Error(const QString &error, const QVariant &debug = QVariant()) override;
private slots: private Q_SLOTS:
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request); void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
private: private:

View File

@ -38,7 +38,7 @@ class MoodbarController : public QObject {
Q_SIGNALS: Q_SIGNALS:
void CurrentMoodbarDataChanged(const QByteArray &data); void CurrentMoodbarDataChanged(const QByteArray &data);
private slots: private Q_SLOTS:
void CurrentSongChanged(const Song &song); void CurrentSongChanged(const Song &song);
void PlaybackStopped(); void PlaybackStopped();
void AsyncLoadComplete(MoodbarPipeline *pipeline, const QUrl &url); void AsyncLoadComplete(MoodbarPipeline *pipeline, const QUrl &url);

View File

@ -47,7 +47,7 @@ class MoodbarItemDelegate : public QItemDelegate {
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
private slots: private Q_SLOTS:
void ReloadSettings(); void ReloadSettings();
void DataLoaded(const QUrl &url, MoodbarPipeline *pipeline); void DataLoaded(const QUrl &url, MoodbarPipeline *pipeline);

Some files were not shown because too many files have changed in this diff Show More