Replace signals with Q_SIGNALS
This commit is contained in:
@@ -56,7 +56,7 @@ class CddaDevice : public ConnectedDevice {
|
||||
|
||||
static QStringList url_schemes() { return QStringList() << QStringLiteral("cdda"); }
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void SongsDiscovered(const SongList &songs);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -59,7 +59,7 @@ class CddaSongLoader : public QObject {
|
||||
void Error(const QString &error);
|
||||
QUrl GetUrlFromTrack(const int track_number) const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void SongsLoadError(const QString &error);
|
||||
void SongsLoaded(const SongList &songs);
|
||||
void SongsDurationLoaded(const SongList &songs, const QString &error = QString());
|
||||
|
||||
@@ -76,7 +76,7 @@ class ConnectedDevice : public QObject, public virtual MusicStorage, public enab
|
||||
public slots:
|
||||
void BackendCloseFinished();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void TaskStarted(const int id);
|
||||
void SongCountUpdated(const int count);
|
||||
void DeviceConnectFinished(const QString &id, const bool success);
|
||||
|
||||
@@ -71,7 +71,7 @@ class DeviceDatabaseBackend : public QObject {
|
||||
private slots:
|
||||
void Exit();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
|
||||
private:
|
||||
|
||||
@@ -81,7 +81,7 @@ class DeviceLister : public QObject {
|
||||
virtual void UnmountDevice(const QString &id) { Q_UNUSED(id); }
|
||||
virtual void Exit();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void DeviceAdded(const QString &id);
|
||||
void DeviceRemoved(const QString &id);
|
||||
void DeviceChanged(const QString &id);
|
||||
|
||||
@@ -118,7 +118,7 @@ class DeviceManager : public SimpleTreeModel<DeviceInfo> {
|
||||
public slots:
|
||||
void Unmount(const QModelIndex &idx);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
void DeviceConnected(const QModelIndex idx);
|
||||
void DeviceDisconnected(const QModelIndex idx);
|
||||
|
||||
@@ -41,7 +41,7 @@ class DeviceStateFilterModel : public QSortFilterProxyModel {
|
||||
|
||||
void setSourceModel(QAbstractItemModel *sourceModel) override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void IsEmptyChanged(const bool is_empty);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -52,7 +52,7 @@ class GPodLoader : public QObject {
|
||||
public slots:
|
||||
void LoadDatabase();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Error(const QString &message);
|
||||
void TaskStarted(const int task_id);
|
||||
void LoadFinished(Itdb_iTunesDB *db, const bool success);
|
||||
|
||||
@@ -49,7 +49,7 @@ class MtpLoader : public QObject {
|
||||
public slots:
|
||||
void LoadDatabase();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Error(const QString &message);
|
||||
void TaskStarted(const int task_id);
|
||||
void LoadFinished(const bool success, MtpConnection *connection);
|
||||
|
||||
Reference in New Issue
Block a user