Replace signals with Q_SIGNALS
This commit is contained in:
@@ -120,7 +120,7 @@ class Application : public QObject {
|
||||
void ReloadSettings();
|
||||
void OpenSettingsDialogAtPage(SettingsDialog::Page page);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ErrorAdded(const QString &message);
|
||||
void SettingsChanged();
|
||||
void SettingsDialogRequested(const SettingsDialog::Page page);
|
||||
|
||||
@@ -83,7 +83,7 @@ class Database : public QObject {
|
||||
void AttachDatabaseOnDbConnection(const QString &database_name, const AttachedDatabase &database, QSqlDatabase &db);
|
||||
void DetachDatabase(const QString &database_name);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
void Error(const QString &error);
|
||||
void Errors(const QStringList &errors);
|
||||
|
||||
@@ -44,7 +44,7 @@ class DeleteFiles : public QObject {
|
||||
void Start(const SongList &songs);
|
||||
void Start(const QStringList &filenames);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Finished(const SongList &songs_with_errors);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -39,7 +39,7 @@ class FileSystemWatcherInterface : public QObject {
|
||||
|
||||
static FileSystemWatcherInterface *Create(QObject *parent = nullptr);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void PathChanged(const QString &path);
|
||||
};
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class LocalRedirectServer : public QTcpServer {
|
||||
const QUrl &request_url() const { return request_url_; }
|
||||
const QString &error() const { return error_; }
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Finished();
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -44,7 +44,7 @@ class MacFSListener : public FileSystemWatcherInterface {
|
||||
void RemovePath(const QString &path);
|
||||
void Clear();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void PathChanged(const QString &path);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -74,7 +74,7 @@ class SystemTrayIcon : public QObject {
|
||||
private slots:
|
||||
void ActionChanged();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ChangeVolume(const int delta);
|
||||
void SeekForward();
|
||||
void SeekBackward();
|
||||
|
||||
@@ -131,7 +131,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
void Activate() override;
|
||||
bool LoadUrl(const QString &url) override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AlbumCoverReady(const Song &song, const QImage &image);
|
||||
void SearchCoverInProgress();
|
||||
// Signals that stop playing after track was toggled.
|
||||
|
||||
@@ -85,7 +85,7 @@ class MergedProxyModel : public QAbstractProxyModel {
|
||||
QModelIndexList mapFromSource(const QModelIndexList &source_indexes) const;
|
||||
QModelIndexList mapToSource(const QModelIndexList &proxy_indexes) const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void SubModelReset(const QModelIndex root, QAbstractItemModel *model);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -191,7 +191,7 @@ class Mpris2 : public QObject {
|
||||
void ActivatePlaylist(const QDBusObjectPath &playlist_id);
|
||||
MprisPlaylistList GetPlaylists(quint32 index, quint32 max_count, const QString &order, bool reverse_order);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
// Player
|
||||
void Seeked(const qint64 position);
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ class PlayerInterface : public QObject {
|
||||
virtual void PlayHelper() = 0;
|
||||
virtual void ShowOSD() = 0;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Playing();
|
||||
void Paused();
|
||||
// Emitted only when playback is manually resumed
|
||||
@@ -190,7 +190,7 @@ class Player : public PlayerInterface {
|
||||
|
||||
void HandleAuthentication();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void EngineChanged(const EngineBase::Type Type);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -68,7 +68,7 @@ class SystemTrayIcon : public QSystemTrayIcon {
|
||||
QPixmap CreateIcon(const QPixmap &icon, const QPixmap &grey_icon);
|
||||
void UpdateIcon();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ChangeVolume(const int delta);
|
||||
void SeekForward();
|
||||
void SeekBackward();
|
||||
|
||||
@@ -86,7 +86,7 @@ class SongLoader : public QObject {
|
||||
|
||||
QStringList errors() { return errors_; }
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AudioCDTracksLoadFinished();
|
||||
void LoadAudioCDFinished(const bool success);
|
||||
void LoadRemoteFinished();
|
||||
|
||||
@@ -113,7 +113,7 @@ class TagReaderClient : public QObject {
|
||||
// TODO: Make this not a singleton
|
||||
static TagReaderClient *Instance() { return sInstance; }
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -69,7 +69,7 @@ class TaskManager : public QObject {
|
||||
void SetTaskFinished(const int id);
|
||||
quint64 GetTaskProgress(const int id);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void TasksChanged();
|
||||
|
||||
void PauseCollectionWatchers();
|
||||
|
||||
@@ -90,7 +90,7 @@ class UrlHandler : public QObject {
|
||||
// Called by the Player when a song starts loading - gives the handler a chance to do something clever to get a playable track.
|
||||
virtual LoadResult StartLoading(const QUrl &url) { return LoadResult(url); }
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AsyncLoadComplete(const UrlHandler::LoadResult &result);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user