Replace signals with Q_SIGNALS
This commit is contained in:
@@ -45,7 +45,7 @@ class _MessageReplyBase : public QObject {
|
|||||||
|
|
||||||
void Abort();
|
void Abort();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Finished();
|
void Finished();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class _WorkerPoolBase : public QObject {
|
|||||||
public:
|
public:
|
||||||
explicit _WorkerPoolBase(QObject *parent = nullptr);
|
explicit _WorkerPoolBase(QObject *parent = nullptr);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
// 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();
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class AnalyzerContainer : public QWidget {
|
|||||||
static const char *kSettingsGroup;
|
static const char *kSettingsGroup;
|
||||||
static const char *kSettingsFramerate;
|
static const char *kSettingsFramerate;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void WheelEvent(const int delta);
|
void WheelEvent(const int delta);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class SCollection : public QObject {
|
|||||||
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);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &error);
|
void Error(const QString &error);
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
|
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ class CollectionBackend : public CollectionBackendInterface {
|
|||||||
void UpdateLastSeen(const int directory_id, const int expire_unavailable_songs_days);
|
void UpdateLastSeen(const int directory_id, const int expire_unavailable_songs_days);
|
||||||
void ExpireSongs(const int directory_id, const int expire_unavailable_songs_days);
|
void ExpireSongs(const int directory_id, const int expire_unavailable_songs_days);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void DirectoryAdded(const CollectionDirectory &dir, const CollectionSubdirectoryList &subdir);
|
void DirectoryAdded(const CollectionDirectory &dir, const CollectionSubdirectoryList &subdir);
|
||||||
void DirectoryDeleted(const CollectionDirectory &dir);
|
void DirectoryDeleted(const CollectionDirectory &dir);
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class CollectionFilterWidget : public QWidget {
|
|||||||
void SetFilterMode(CollectionFilterOptions::FilterMode filter_mode);
|
void SetFilterMode(CollectionFilterOptions::FilterMode filter_mode);
|
||||||
void FocusOnFilter(QKeyEvent *e);
|
void FocusOnFilter(QKeyEvent *e);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void UpPressed();
|
void UpPressed();
|
||||||
void DownPressed();
|
void DownPressed();
|
||||||
void ReturnPressed();
|
void ReturnPressed();
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
|
|||||||
|
|
||||||
bool CompareItems(const CollectionItem *a, const CollectionItem *b) const;
|
bool CompareItems(const CollectionItem *a, const CollectionItem *b) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
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);
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class CollectionView : public AutoExpandingTreeView {
|
|||||||
|
|
||||||
void EditTagError(const QString &message);
|
void EditTagError(const QString &message);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ShowConfigDialog();
|
void ShowConfigDialog();
|
||||||
|
|
||||||
void TotalSongCountUpdated_();
|
void TotalSongCountUpdated_();
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class CollectionWatcher : public QObject {
|
|||||||
|
|
||||||
void RescanSongsAsync(const SongList &songs);
|
void RescanSongsAsync(const SongList &songs);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void NewOrUpdatedSongs(const SongList &songs);
|
void NewOrUpdatedSongs(const SongList &songs);
|
||||||
void SongsMTimeUpdated(const SongList &songs);
|
void SongsMTimeUpdated(const SongList &songs);
|
||||||
void SongsDeleted(const SongList &songs);
|
void SongsDeleted(const SongList &songs);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class GroupByDialog : public QDialog {
|
|||||||
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;
|
||||||
|
|
||||||
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 slots:
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ class SavedGroupingManager : public QDialog {
|
|||||||
|
|
||||||
static QString GroupByToString(const CollectionModel::GroupBy g);
|
static QString GroupByToString(const CollectionModel::GroupBy g);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void UpdateGroupByActions();
|
void UpdateGroupByActions();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void UpdateButtonState();
|
void UpdateButtonState();
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class ContextAlbum : public QWidget {
|
|||||||
void ScaleCover();
|
void ScaleCover();
|
||||||
void ScalePreviousCovers();
|
void ScalePreviousCovers();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void FadeStopFinished();
|
void FadeStopFinished();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class ContextView : public QWidget {
|
|||||||
void SearchLyrics();
|
void SearchLyrics();
|
||||||
void UpdateFonts();
|
void UpdateFonts();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AlbumEnabledChanged();
|
void AlbumEnabledChanged();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ class Application : public QObject {
|
|||||||
void ReloadSettings();
|
void ReloadSettings();
|
||||||
void OpenSettingsDialogAtPage(SettingsDialog::Page page);
|
void OpenSettingsDialogAtPage(SettingsDialog::Page page);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ErrorAdded(const QString &message);
|
void ErrorAdded(const QString &message);
|
||||||
void SettingsChanged();
|
void SettingsChanged();
|
||||||
void SettingsDialogRequested(const SettingsDialog::Page page);
|
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 AttachDatabaseOnDbConnection(const QString &database_name, const AttachedDatabase &database, QSqlDatabase &db);
|
||||||
void DetachDatabase(const QString &database_name);
|
void DetachDatabase(const QString &database_name);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
void Error(const QString &error);
|
void Error(const QString &error);
|
||||||
void Errors(const QStringList &errors);
|
void Errors(const QStringList &errors);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class DeleteFiles : public QObject {
|
|||||||
void Start(const SongList &songs);
|
void Start(const SongList &songs);
|
||||||
void Start(const QStringList &filenames);
|
void Start(const QStringList &filenames);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Finished(const SongList &songs_with_errors);
|
void Finished(const SongList &songs_with_errors);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class FileSystemWatcherInterface : public QObject {
|
|||||||
|
|
||||||
static FileSystemWatcherInterface *Create(QObject *parent = nullptr);
|
static FileSystemWatcherInterface *Create(QObject *parent = nullptr);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void PathChanged(const QString &path);
|
void PathChanged(const QString &path);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class LocalRedirectServer : public QTcpServer {
|
|||||||
const QUrl &request_url() const { return request_url_; }
|
const QUrl &request_url() const { return request_url_; }
|
||||||
const QString &error() const { return error_; }
|
const QString &error() const { return error_; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Finished();
|
void Finished();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class MacFSListener : public FileSystemWatcherInterface {
|
|||||||
void RemovePath(const QString &path);
|
void RemovePath(const QString &path);
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void PathChanged(const QString &path);
|
void PathChanged(const QString &path);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class SystemTrayIcon : public QObject {
|
|||||||
private slots:
|
private slots:
|
||||||
void ActionChanged();
|
void ActionChanged();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ChangeVolume(const int delta);
|
void ChangeVolume(const int delta);
|
||||||
void SeekForward();
|
void SeekForward();
|
||||||
void SeekBackward();
|
void SeekBackward();
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
|||||||
void Activate() override;
|
void Activate() override;
|
||||||
bool LoadUrl(const QString &url) override;
|
bool LoadUrl(const QString &url) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AlbumCoverReady(const Song &song, const QImage &image);
|
void AlbumCoverReady(const Song &song, const QImage &image);
|
||||||
void SearchCoverInProgress();
|
void SearchCoverInProgress();
|
||||||
// Signals that stop playing after track was toggled.
|
// Signals that stop playing after track was toggled.
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class MergedProxyModel : public QAbstractProxyModel {
|
|||||||
QModelIndexList mapFromSource(const QModelIndexList &source_indexes) const;
|
QModelIndexList mapFromSource(const QModelIndexList &source_indexes) const;
|
||||||
QModelIndexList mapToSource(const QModelIndexList &proxy_indexes) const;
|
QModelIndexList mapToSource(const QModelIndexList &proxy_indexes) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void SubModelReset(const QModelIndex root, QAbstractItemModel *model);
|
void SubModelReset(const QModelIndex root, QAbstractItemModel *model);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class Mpris2 : public QObject {
|
|||||||
void ActivatePlaylist(const QDBusObjectPath &playlist_id);
|
void ActivatePlaylist(const QDBusObjectPath &playlist_id);
|
||||||
MprisPlaylistList GetPlaylists(quint32 index, quint32 max_count, const QString &order, bool reverse_order);
|
MprisPlaylistList GetPlaylists(quint32 index, quint32 max_count, const QString &order, bool reverse_order);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
// Player
|
// Player
|
||||||
void Seeked(const qint64 position);
|
void Seeked(const qint64 position);
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class PlayerInterface : public QObject {
|
|||||||
virtual void PlayHelper() = 0;
|
virtual void PlayHelper() = 0;
|
||||||
virtual void ShowOSD() = 0;
|
virtual void ShowOSD() = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Playing();
|
void Playing();
|
||||||
void Paused();
|
void Paused();
|
||||||
// Emitted only when playback is manually resumed
|
// Emitted only when playback is manually resumed
|
||||||
@@ -190,7 +190,7 @@ class Player : public PlayerInterface {
|
|||||||
|
|
||||||
void HandleAuthentication();
|
void HandleAuthentication();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void EngineChanged(const EngineBase::Type Type);
|
void EngineChanged(const EngineBase::Type Type);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class SystemTrayIcon : public QSystemTrayIcon {
|
|||||||
QPixmap CreateIcon(const QPixmap &icon, const QPixmap &grey_icon);
|
QPixmap CreateIcon(const QPixmap &icon, const QPixmap &grey_icon);
|
||||||
void UpdateIcon();
|
void UpdateIcon();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ChangeVolume(const int delta);
|
void ChangeVolume(const int delta);
|
||||||
void SeekForward();
|
void SeekForward();
|
||||||
void SeekBackward();
|
void SeekBackward();
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class SongLoader : public QObject {
|
|||||||
|
|
||||||
QStringList errors() { return errors_; }
|
QStringList errors() { return errors_; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AudioCDTracksLoadFinished();
|
void AudioCDTracksLoadFinished();
|
||||||
void LoadAudioCDFinished(const bool success);
|
void LoadAudioCDFinished(const bool success);
|
||||||
void LoadRemoteFinished();
|
void LoadRemoteFinished();
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class TagReaderClient : public QObject {
|
|||||||
// TODO: Make this not a singleton
|
// TODO: Make this not a singleton
|
||||||
static TagReaderClient *Instance() { return sInstance; }
|
static TagReaderClient *Instance() { return sInstance; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class TaskManager : public QObject {
|
|||||||
void SetTaskFinished(const int id);
|
void SetTaskFinished(const int id);
|
||||||
quint64 GetTaskProgress(const int id);
|
quint64 GetTaskProgress(const int id);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void TasksChanged();
|
void TasksChanged();
|
||||||
|
|
||||||
void PauseCollectionWatchers();
|
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.
|
// 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); }
|
virtual LoadResult StartLoading(const QUrl &url) { return LoadResult(url); }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AsyncLoadComplete(const UrlHandler::LoadResult &result);
|
void AsyncLoadComplete(const UrlHandler::LoadResult &result);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class AlbumCoverChoiceController : public QWidget {
|
|||||||
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);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &error);
|
void Error(const QString &error);
|
||||||
void AutomaticCoverSearchDone();
|
void AutomaticCoverSearchDone();
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class AlbumCoverExporter : public QObject {
|
|||||||
|
|
||||||
int request_count() { return static_cast<int>(requests_.size()); }
|
int request_count() { return static_cast<int>(requests_.size()); }
|
||||||
|
|
||||||
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 slots:
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class AlbumCoverFetcher : public QObject {
|
|||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class AlbumCoverFetcherSearch : public QObject {
|
|||||||
|
|
||||||
static bool CoverProviderSearchResultCompareNumber(const CoverProviderSearchResult &a, const CoverProviderSearchResult &b);
|
static bool CoverProviderSearchResultCompareNumber(const CoverProviderSearchResult &a, const CoverProviderSearchResult &b);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
// It's the end of search (when there was no fetch-me-a-cover request).
|
// It's the end of search (when there was no fetch-me-a-cover request).
|
||||||
void SearchFinished(quint64, const CoverProviderSearchResults &results);
|
void SearchFinished(quint64, const CoverProviderSearchResults &results);
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class AlbumCoverLoader : public QObject {
|
|||||||
void CancelTask(const quint64 id);
|
void CancelTask(const quint64 id);
|
||||||
void CancelTasks(const QSet<quint64> &ids);
|
void CancelTasks(const QSet<quint64> &ids);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
|
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class AlbumCoverManager : public QMainWindow {
|
|||||||
|
|
||||||
void LoadAlbumCoverAsync(AlbumItem *album_item);
|
void LoadAlbumCoverAsync(AlbumItem *album_item);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &error);
|
void Error(const QString &error);
|
||||||
void AddToPlaylist(QMimeData *data);
|
void AddToPlaylist(QMimeData *data);
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class CoverExportRunnable : public QObject, public QRunnable {
|
|||||||
|
|
||||||
void run() override;
|
void run() override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void CoverExported();
|
void CoverExported();
|
||||||
void CoverSkipped();
|
void CoverSkipped();
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class CoverProvider : public QObject {
|
|||||||
|
|
||||||
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
|
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
|
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
|
||||||
void AuthenticationSuccess();
|
void AuthenticationSuccess();
|
||||||
void AuthenticationFailure(const QStringList &errors);
|
void AuthenticationFailure(const QStringList &errors);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class CurrentAlbumCoverLoader : public QObject {
|
|||||||
void ReloadSettings();
|
void ReloadSettings();
|
||||||
void LoadAlbumCover(const Song &song);
|
void LoadAlbumCover(const Song &song);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class CddaDevice : public ConnectedDevice {
|
|||||||
|
|
||||||
static QStringList url_schemes() { return QStringList() << QStringLiteral("cdda"); }
|
static QStringList url_schemes() { return QStringList() << QStringLiteral("cdda"); }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void SongsDiscovered(const SongList &songs);
|
void SongsDiscovered(const SongList &songs);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class CddaSongLoader : public QObject {
|
|||||||
void Error(const QString &error);
|
void Error(const QString &error);
|
||||||
QUrl GetUrlFromTrack(const int track_number) const;
|
QUrl GetUrlFromTrack(const int track_number) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void SongsLoadError(const QString &error);
|
void SongsLoadError(const QString &error);
|
||||||
void SongsLoaded(const SongList &songs);
|
void SongsLoaded(const SongList &songs);
|
||||||
void SongsDurationLoaded(const SongList &songs, const QString &error = QString());
|
void SongsDurationLoaded(const SongList &songs, const QString &error = QString());
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class ConnectedDevice : public QObject, public virtual MusicStorage, public enab
|
|||||||
public slots:
|
public slots:
|
||||||
void BackendCloseFinished();
|
void BackendCloseFinished();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void TaskStarted(const int id);
|
void TaskStarted(const int id);
|
||||||
void SongCountUpdated(const int count);
|
void SongCountUpdated(const int count);
|
||||||
void DeviceConnectFinished(const QString &id, const bool success);
|
void DeviceConnectFinished(const QString &id, const bool success);
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class DeviceDatabaseBackend : public QObject {
|
|||||||
private slots:
|
private slots:
|
||||||
void Exit();
|
void Exit();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class DeviceLister : public QObject {
|
|||||||
virtual void UnmountDevice(const QString &id) { Q_UNUSED(id); }
|
virtual void UnmountDevice(const QString &id) { Q_UNUSED(id); }
|
||||||
virtual void Exit();
|
virtual void Exit();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void DeviceAdded(const QString &id);
|
void DeviceAdded(const QString &id);
|
||||||
void DeviceRemoved(const QString &id);
|
void DeviceRemoved(const QString &id);
|
||||||
void DeviceChanged(const QString &id);
|
void DeviceChanged(const QString &id);
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ class DeviceManager : public SimpleTreeModel<DeviceInfo> {
|
|||||||
public slots:
|
public slots:
|
||||||
void Unmount(const QModelIndex &idx);
|
void Unmount(const QModelIndex &idx);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
void DeviceConnected(const QModelIndex idx);
|
void DeviceConnected(const QModelIndex idx);
|
||||||
void DeviceDisconnected(const QModelIndex idx);
|
void DeviceDisconnected(const QModelIndex idx);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class DeviceStateFilterModel : public QSortFilterProxyModel {
|
|||||||
|
|
||||||
void setSourceModel(QAbstractItemModel *sourceModel) override;
|
void setSourceModel(QAbstractItemModel *sourceModel) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void IsEmptyChanged(const bool is_empty);
|
void IsEmptyChanged(const bool is_empty);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class GPodLoader : public QObject {
|
|||||||
public slots:
|
public slots:
|
||||||
void LoadDatabase();
|
void LoadDatabase();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &message);
|
void Error(const QString &message);
|
||||||
void TaskStarted(const int task_id);
|
void TaskStarted(const int task_id);
|
||||||
void LoadFinished(Itdb_iTunesDB *db, const bool success);
|
void LoadFinished(Itdb_iTunesDB *db, const bool success);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class MtpLoader : public QObject {
|
|||||||
public slots:
|
public slots:
|
||||||
void LoadDatabase();
|
void LoadDatabase();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &message);
|
void Error(const QString &message);
|
||||||
void TaskStarted(const int task_id);
|
void TaskStarted(const int task_id);
|
||||||
void LoadFinished(const bool success, MtpConnection *connection);
|
void LoadFinished(const bool success, MtpConnection *connection);
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class EditTagDialog : public QDialog {
|
|||||||
|
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &message);
|
void Error(const QString &message);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class TrackSelectionDialog : public QDialog {
|
|||||||
// QDialog
|
// QDialog
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class EngineBase : public QObject {
|
|||||||
virtual void SetEqualizerEnabled(const bool) {}
|
virtual void SetEqualizerEnabled(const bool) {}
|
||||||
virtual void SetEqualizerParameters(const int, const QList<int>&) {}
|
virtual void SetEqualizerParameters(const int, const QList<int>&) {}
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
// Emitted when crossfading is enabled and the track is crossfade_duration_ away from finishing
|
// Emitted when crossfading is enabled and the track is crossfade_duration_ away from finishing
|
||||||
void TrackAboutToEnd();
|
void TrackAboutToEnd();
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ class GstEnginePipeline : public QObject {
|
|||||||
public slots:
|
public slots:
|
||||||
void SetFaderVolume(const qreal volume);
|
void SetFaderVolume(const qreal volume);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const int pipeline_id, const int domain, const int error_code, const QString &message, const QString &debug);
|
void Error(const int pipeline_id, const int domain, const int error_code, const QString &message, const QString &debug);
|
||||||
|
|
||||||
void EndOfStreamReached(const int pipeline_id, const bool has_next_track);
|
void EndOfStreamReached(const int pipeline_id, const bool has_next_track);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class Equalizer : public QDialog {
|
|||||||
Params current_params() const;
|
Params current_params() const;
|
||||||
float stereo_balance() const;
|
float stereo_balance() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void StereoBalancerEnabledChanged(const bool enabled);
|
void StereoBalancerEnabledChanged(const bool enabled);
|
||||||
void StereoBalanceChanged(const float balance);
|
void StereoBalanceChanged(const float balance);
|
||||||
void EqualizerEnabledChanged(const bool enabled);
|
void EqualizerEnabledChanged(const bool enabled);
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class EqualizerSlider : public QWidget {
|
|||||||
int value() const;
|
int value() const;
|
||||||
void set_value(const int value);
|
void set_value(const int value);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ValueChanged(const int value);
|
void ValueChanged(const int value);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class GlobalShortcut : public QObject, QAbstractNativeEventFilter {
|
|||||||
bool setShortcut(const QKeySequence &shortcut);
|
bool setShortcut(const QKeySequence &shortcut);
|
||||||
bool unsetShortcut();
|
bool unsetShortcut();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void activated();
|
void activated();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class GlobalShortcutsBackend : public QObject {
|
|||||||
|
|
||||||
bool is_active() const { return active_; }
|
bool is_active() const { return active_; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void RegisterFinished(const bool success);
|
void RegisterFinished(const bool success);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class GlobalShortcutsManager : public QWidget {
|
|||||||
void ReloadSettings();
|
void ReloadSettings();
|
||||||
void ShowMacAccessibilityDialog();
|
void ShowMacAccessibilityDialog();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Play();
|
void Play();
|
||||||
void Pause();
|
void Pause();
|
||||||
void PlayPause();
|
void PlayPause();
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class LyricsFetcher : public QObject {
|
|||||||
private:
|
private:
|
||||||
void AddRequest(const Request &request);
|
void AddRequest(const Request &request);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class LyricsFetcherSearch : public QObject {
|
|||||||
void Start(SharedPtr<LyricsProviders> lyrics_providers);
|
void Start(SharedPtr<LyricsProviders> lyrics_providers);
|
||||||
void Cancel();
|
void Cancel();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class LyricsProvider : public QObject {
|
|||||||
|
|
||||||
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
|
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
|
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
|
||||||
void AuthenticationSuccess();
|
void AuthenticationSuccess();
|
||||||
void AuthenticationFailure(const QStringList &errors);
|
void AuthenticationFailure(const QStringList &errors);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class MoodbarController : public QObject {
|
|||||||
|
|
||||||
void ReloadSettings();
|
void ReloadSettings();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void CurrentMoodbarDataChanged(const QByteArray &data);
|
void CurrentMoodbarDataChanged(const QByteArray &data);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class MoodbarPipeline : public QObject {
|
|||||||
public slots:
|
public slots:
|
||||||
void Start();
|
void Start();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Finished(const bool success);
|
void Finished(const bool success);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class AcoustidClient : public QObject {
|
|||||||
// Cancels all requests. Finished() will never be emitted for any pending requests.
|
// Cancels all requests. Finished() will never be emitted for any pending requests.
|
||||||
void CancelAll();
|
void CancelAll();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Finished(const int id, const QStringList &mbid_list, const QString &error = QString());
|
void Finished(const int id, const QStringList &mbid_list, const QString &error = QString());
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class MusicBrainzClient : public QObject {
|
|||||||
// Cancels all requests. Finished() will never be emitted for any pending requests.
|
// Cancels all requests. Finished() will never be emitted for any pending requests.
|
||||||
void CancelAll();
|
void CancelAll();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
// Finished signal emitted when fechting songs tags
|
// Finished signal emitted when fechting songs tags
|
||||||
void Finished(const int id, const MusicBrainzClient::ResultList &result, const QString &error = QString());
|
void Finished(const int id, const MusicBrainzClient::ResultList &result, const QString &error = QString());
|
||||||
// Finished signal emitted when fechting album's songs tags using DiscId
|
// Finished signal emitted when fechting album's songs tags using DiscId
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class TagFetcher : public QObject {
|
|||||||
public slots:
|
public slots:
|
||||||
void Cancel();
|
void Cancel();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Progress(const Song &original_song, const QString &stage);
|
void Progress(const Song &original_song, const QString &stage);
|
||||||
void ResultAvailable(const Song &original_song, const SongList &songs_guessed, const QString &error = QString());
|
void ResultAvailable(const Song &original_song, const SongList &songs_guessed, const QString &error = QString());
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class Organize : public QObject {
|
|||||||
|
|
||||||
void Start();
|
void Start();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Finished(const QStringList &files_with_errors, const QStringList&);
|
void Finished(const QStringList &files_with_errors, const QStringList&);
|
||||||
void FileCopied(const int database_id);
|
void FileCopied(const int database_id);
|
||||||
void SongPathChanged(const Song &song, const QFileInfo &new_file, const std::optional<int> new_collection_directory_id);
|
void SongPathChanged(const Song &song, const QFileInfo &new_file, const std::optional<int> new_collection_directory_id);
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class OrganizeDialog : public QDialog {
|
|||||||
static SongList LoadSongsBlocking(const QStringList &filenames);
|
static SongList LoadSongsBlocking(const QStringList &filenames);
|
||||||
void SetLoadingSongs(const bool loading);
|
void SetLoadingSongs(const bool loading);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void FileCopied(const int);
|
void FileCopied(const int);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class OSDPretty : public QWidget {
|
|||||||
bool toggle_mode() const { return toggle_mode_; }
|
bool toggle_mode() const { return toggle_mode_; }
|
||||||
void set_toggle_mode(const bool toggle_mode) { toggle_mode_ = toggle_mode; }
|
void set_toggle_mode(const bool toggle_mode) { toggle_mode_ = toggle_mode; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void PositionChanged();
|
void PositionChanged();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class DynamicPlaylistControls : public QWidget {
|
|||||||
DynamicPlaylistControls(QWidget *parent = nullptr);
|
DynamicPlaylistControls(QWidget *parent = nullptr);
|
||||||
~DynamicPlaylistControls() override;
|
~DynamicPlaylistControls() override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Expand();
|
void Expand();
|
||||||
void Repopulate();
|
void Repopulate();
|
||||||
void TurnOff();
|
void TurnOff();
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ class Playlist : public QAbstractListModel {
|
|||||||
|
|
||||||
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
|
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void RestoreFinished();
|
void RestoreFinished();
|
||||||
void PlaylistLoaded();
|
void PlaylistLoaded();
|
||||||
void CurrentSongChanged(const Song &metadata);
|
void CurrentSongChanged(const Song &metadata);
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class PlaylistBackend : public QObject {
|
|||||||
void Exit();
|
void Exit();
|
||||||
void SavePlaylist(const int playlist, const PlaylistItemPtrList &items, const int last_played, PlaylistGeneratorPtr dynamic);
|
void SavePlaylist(const int playlist, const PlaylistItemPtrList &items, const int last_played, PlaylistGeneratorPtr dynamic);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class PlaylistContainer : public QWidget {
|
|||||||
|
|
||||||
bool eventFilter(QObject *objectWatched, QEvent *event) override;
|
bool eventFilter(QObject *objectWatched, QEvent *event) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void UndoRedoActionsChanged(QAction *undo, QAction *redo);
|
void UndoRedoActionsChanged(QAction *undo, QAction *redo);
|
||||||
void ViewSelectionModelChanged();
|
void ViewSelectionModelChanged();
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class PlaylistHeader : public StretchHeaderView {
|
|||||||
void enterEvent(QEvent*) override;
|
void enterEvent(QEvent*) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void SectionVisibilityChanged(const int logical_index, const bool visible);
|
void SectionVisibilityChanged(const int logical_index, const bool visible);
|
||||||
void MouseEntered();
|
void MouseEntered();
|
||||||
void SectionRatingLockStatusChanged(const bool);
|
void SectionRatingLockStatusChanged(const bool);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class PlaylistListModel : public QStandardItemModel {
|
|||||||
// QStandardItemModel
|
// QStandardItemModel
|
||||||
bool setData(const QModelIndex &idx, const QVariant &value, int role) override;
|
bool setData(const QModelIndex &idx, const QVariant &value, int role) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void PlaylistPathChanged(const int id, const QString &new_path);
|
void PlaylistPathChanged(const int id, const QString &new_path);
|
||||||
void PlaylistRenamed(const int id, const QString &new_name);
|
void PlaylistRenamed(const int id, const QString &new_name);
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class PlaylistListView : public AutoExpandingTreeView {
|
|||||||
|
|
||||||
bool ItemsSelected() const;
|
bool ItemsSelected() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ItemsSelectedChanged(const bool);
|
void ItemsSelectedChanged(const bool);
|
||||||
void ItemMimeDataDroppedSignal(const QModelIndex &proxy_idx, const QMimeData *q_mimedata);
|
void ItemMimeDataDroppedSignal(const QModelIndex &proxy_idx, const QMimeData *q_mimedata);
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ class PlaylistManagerInterface : public QObject {
|
|||||||
// Rate current song using 0 - 5 scale.
|
// Rate current song using 0 - 5 scale.
|
||||||
virtual void RateCurrentSong2(const int rating) = 0;
|
virtual void RateCurrentSong2(const int rating) = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void PlaylistManagerInitialized();
|
void PlaylistManagerInitialized();
|
||||||
void AllPlaylistsLoaded();
|
void AllPlaylistsLoaded();
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class PlaylistSequence : public QWidget {
|
|||||||
void CycleShuffleMode();
|
void CycleShuffleMode();
|
||||||
void CycleRepeatMode();
|
void CycleRepeatMode();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void RepeatModeChanged(const PlaylistSequence::RepeatMode mode);
|
void RepeatModeChanged(const PlaylistSequence::RepeatMode mode);
|
||||||
void ShuffleModeChanged(const PlaylistSequence::ShuffleMode mode);
|
void ShuffleModeChanged(const PlaylistSequence::ShuffleMode mode);
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class PlaylistTabBar : public QTabBar {
|
|||||||
void RemoveTab(const int id);
|
void RemoveTab(const int id);
|
||||||
void InsertTab(const int id, const int index, const QString &text, const bool favorite);
|
void InsertTab(const int id, const int index, const QString &text, const bool favorite);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void CurrentIdChanged(const int id);
|
void CurrentIdChanged(const int id);
|
||||||
void Rename(const int id, const QString &name);
|
void Rename(const int id, const QString &name);
|
||||||
void Close(const int id);
|
void Close(const int id);
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class PlaylistView : public QTreeView {
|
|||||||
void SetColumnAlignment(const int section, const Qt::Alignment alignment);
|
void SetColumnAlignment(const int section, const Qt::Alignment alignment);
|
||||||
void JumpToCurrentlyPlayingTrack();
|
void JumpToCurrentlyPlayingTrack();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void PlayItem(const QModelIndex idx, const Playlist::AutoScroll autoscroll);
|
void PlayItem(const QModelIndex idx, const Playlist::AutoScroll autoscroll);
|
||||||
void PlayPause(const quint64 offset_nanosec = 0, const Playlist::AutoScroll autoscroll = Playlist::AutoScroll::Never);
|
void PlayPause(const quint64 offset_nanosec = 0, const Playlist::AutoScroll autoscroll = Playlist::AutoScroll::Never);
|
||||||
void RightClicked(const QPoint global_pos, const QModelIndex idx);
|
void RightClicked(const QPoint global_pos, const QModelIndex idx);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class SongLoaderInserter : public QObject {
|
|||||||
void Load(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next, const QList<QUrl> &urls);
|
void Load(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next, const QList<QUrl> &urls);
|
||||||
void LoadAudioCD(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next);
|
void LoadAudioCD(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &message);
|
void Error(const QString &message);
|
||||||
void PreloadFinished();
|
void PreloadFinished();
|
||||||
void EffectiveLoadFinished(const SongList &songs);
|
void EffectiveLoadFinished(const SongList &songs);
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class ParserBase : public QObject {
|
|||||||
virtual SongList Load(QIODevice *device, const QString &playlist_path = QLatin1String(""), const QDir &dir = QDir(), const bool collection_lookup = true) const = 0;
|
virtual SongList Load(QIODevice *device, const QString &playlist_path = QLatin1String(""), const QDir &dir = QDir(), const bool collection_lookup = true) const = 0;
|
||||||
virtual void Save(const SongList &songs, QIODevice *device, const QDir &dir = QDir(), const PlaylistSettingsPage::PathType path_type = PlaylistSettingsPage::PathType::Automatic) const = 0;
|
virtual void Save(const SongList &songs, QIODevice *device, const QDir &dir = QDir(), const PlaylistSettingsPage::PathType path_type = PlaylistSettingsPage::PathType::Automatic) const = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &error) const;
|
void Error(const QString &error) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class PlaylistParser : public QObject {
|
|||||||
SongList LoadFromDevice(QIODevice *device, const QString &path_hint = QString(), const QDir &dir_hint = QDir()) const;
|
SongList LoadFromDevice(QIODevice *device, const QString &path_hint = QString(), const QDir &dir_hint = QDir()) const;
|
||||||
void Save(const SongList &songs, const QString &filename, const PlaylistSettingsPage::PathType) const;
|
void Save(const SongList &songs, const QString &filename, const PlaylistSettingsPage::PathType) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Error(const QString &error) const;
|
void Error(const QString &error) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class QobuzFavoriteRequest : public QobuzBaseRequest {
|
|||||||
Songs
|
Songs
|
||||||
};
|
};
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ArtistsAdded(const SongList &songs);
|
void ArtistsAdded(const SongList &songs);
|
||||||
void AlbumsAdded(const SongList &songs);
|
void AlbumsAdded(const SongList &songs);
|
||||||
void SongsAdded(const SongList &songs);
|
void SongsAdded(const SongList &songs);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ class QobuzRequest : public QobuzBaseRequest {
|
|||||||
QString filename;
|
QString filename;
|
||||||
};
|
};
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void LoginSuccess();
|
void LoginSuccess();
|
||||||
void LoginFailure(const QString &failure_reason);
|
void LoginFailure(const QString &failure_reason);
|
||||||
void Results(const int id, const SongMap &songs, const QString &error);
|
void Results(const int id, const SongMap &songs, const QString &error);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class QobuzStreamURLRequest : public QobuzBaseRequest {
|
|||||||
int song_id() const { return song_id_; }
|
int song_id() const { return song_id_; }
|
||||||
bool need_login() const { return need_login_; }
|
bool need_login() const { return need_login_; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void TryLogin();
|
void TryLogin();
|
||||||
void StreamURLFailure(const uint id, const QUrl &media_url, const QString &error);
|
void StreamURLFailure(const uint id, const QUrl &media_url, const QString &error);
|
||||||
void StreamURLSuccess(const uint id, const QUrl &media_url, const QUrl &stream_url, const Song::FileType filetype, const int samplerate, const int bit_depth, const qint64 duration);
|
void StreamURLSuccess(const uint id, const QUrl &media_url, const QUrl &stream_url, const Song::FileType filetype, const int samplerate, const int bit_depth, const qint64 duration);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class Queue : public QAbstractProxyModel {
|
|||||||
public slots:
|
public slots:
|
||||||
void UpdateSummaryText();
|
void UpdateSummaryText();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void TotalLengthChanged(const quint64 length);
|
void TotalLengthChanged(const quint64 length);
|
||||||
void ItemCountChanged(const int count);
|
void ItemCountChanged(const int count);
|
||||||
void SummaryTextChanged(const QString &message);
|
void SummaryTextChanged(const QString &message);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class RadioBackend : public QObject {
|
|||||||
void GetChannels();
|
void GetChannels();
|
||||||
void DeleteChannels();
|
void DeleteChannels();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void NewChannels(const RadioChannelList &channels);
|
void NewChannels(const RadioChannelList &channels);
|
||||||
void ExitFinished();
|
void ExitFinished();
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class RadioService : public QObject {
|
|||||||
virtual QUrl Homepage() = 0;
|
virtual QUrl Homepage() = 0;
|
||||||
virtual QUrl Donate() = 0;
|
virtual QUrl Donate() = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void NewChannels(const RadioChannelList &channels = RadioChannelList());
|
void NewChannels(const RadioChannelList &channels = RadioChannelList());
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class RadioView : public AutoExpandingTreeView {
|
|||||||
void showEvent(QShowEvent *e) override;
|
void showEvent(QShowEvent *e) override;
|
||||||
void contextMenuEvent(QContextMenuEvent *e) override;
|
void contextMenuEvent(QContextMenuEvent *e) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void GetChannels();
|
void GetChannels();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class RadioViewContainer : public QWidget {
|
|||||||
|
|
||||||
RadioView *view() const { return ui_->view; }
|
RadioView *view() const { return ui_->view; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Refresh();
|
void Refresh();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class AudioScrobbler : public QObject {
|
|||||||
void Love();
|
void Love();
|
||||||
void WriteCache();
|
void WriteCache();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ErrorMessage(const QString &error);
|
void ErrorMessage(const QString &error);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class LastFMImport : public QObject {
|
|||||||
|
|
||||||
void FinishCheck();
|
void FinishCheck();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void UpdatePlayCount(const QString&, const QString&, const int, const bool = false);
|
void UpdatePlayCount(const QString&, const QString&, const int, const bool = false);
|
||||||
void UpdateLastPlayed(const QString&, const QString&, const QString&, const qint64);
|
void UpdateLastPlayed(const QString&, const QString&, const QString&, const qint64);
|
||||||
void UpdateTotal(const int, const int);
|
void UpdateTotal(const int, const int);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class ListenBrainzScrobbler : public ScrobblerService {
|
|||||||
APIError
|
APIError
|
||||||
};
|
};
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AuthenticationComplete(const bool success, const QString &error = QString());
|
void AuthenticationComplete(const bool success, const QString &error = QString());
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class ScrobblerService : public QObject {
|
|||||||
virtual void Submit() = 0;
|
virtual void Submit() = 0;
|
||||||
virtual void WriteCache() = 0;
|
virtual void WriteCache() = 0;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ErrorMessage(const QString &error);
|
void ErrorMessage(const QString &error);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class ScrobblerSettings : public QObject {
|
|||||||
void ToggleOffline();
|
void ToggleOffline();
|
||||||
void ErrorReceived(const QString &error);
|
void ErrorReceived(const QString &error);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ErrorMessage(const QString &error);
|
void ErrorMessage(const QString &error);
|
||||||
void ScrobblingEnabledChanged(const bool value);
|
void ScrobblingEnabledChanged(const bool value);
|
||||||
void ScrobblingOfflineChanged(const bool value);
|
void ScrobblingOfflineChanged(const bool value);
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class ScrobblingAPI20 : public ScrobblerService {
|
|||||||
void Submit() override;
|
void Submit() override;
|
||||||
void Love() override;
|
void Love() override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void AuthenticationComplete(const bool success, const QString &error = QString());
|
void AuthenticationComplete(const bool success, const QString &error = QString());
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class QobuzSettingsPage : public SettingsPage {
|
|||||||
|
|
||||||
bool eventFilter(QObject *object, QEvent *event) override;
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Login(const QString &username, const QString &password, const QString &token);
|
void Login(const QString &username, const QString &password, const QString &token);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class SettingsDialog : public QDialog {
|
|||||||
void Apply();
|
void Apply();
|
||||||
void Save();
|
void Save();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ReloadSettings();
|
void ReloadSettings();
|
||||||
void NotificationPreview(const OSDBase::Behaviour, const QString&, const QString&);
|
void NotificationPreview(const OSDBase::Behaviour, const QString&, const QString&);
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class SettingsPage : public QWidget {
|
|||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *obj, QEvent *e) override;
|
bool eventFilter(QObject *obj, QEvent *e) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void NotificationPreview(const OSDBase::Behaviour, const QString&, const QString&);
|
void NotificationPreview(const OSDBase::Behaviour, const QString&, const QString&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class SpotifySettingsPage : public SettingsPage {
|
|||||||
|
|
||||||
bool eventFilter(QObject *object, QEvent *event) override;
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Authorize();
|
void Authorize();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class SubsonicSettingsPage : public SettingsPage {
|
|||||||
|
|
||||||
bool eventFilter(QObject *object, QEvent *event) override;
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void Test(const QUrl &url, const QString &username, const QString &password, const SubsonicSettingsPage::AuthMethod auth_method, const bool redirect = false);
|
void Test(const QUrl &url, const QString &username, const QString &password, const SubsonicSettingsPage::AuthMethod auth_method, const bool redirect = false);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user