1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-28 08:09:40 +01:00

Replace signals with Q_SIGNALS

This commit is contained in:
Jonas Kvinge 2024-08-11 23:23:12 +02:00
parent 9666feca37
commit 358da72ffe
136 changed files with 141 additions and 141 deletions

View File

@ -45,7 +45,7 @@ class _MessageReplyBase : public QObject {
void Abort();
signals:
Q_SIGNALS:
void Finished();
protected:

View File

@ -52,7 +52,7 @@ class _WorkerPoolBase : public QObject {
public:
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.
void WorkerFailedToStart();

View File

@ -50,7 +50,7 @@ class AnalyzerContainer : public QWidget {
static const char *kSettingsGroup;
static const char *kSettingsFramerate;
signals:
Q_SIGNALS:
void WheelEvent(const int delta);
protected:

View File

@ -81,7 +81,7 @@ class SCollection : public QObject {
void SongsPlaycountChanged(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 ExitFinished();

View File

@ -275,7 +275,7 @@ class CollectionBackend : public CollectionBackendInterface {
void UpdateLastSeen(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 DirectoryDeleted(const CollectionDirectory &dir);

View File

@ -91,7 +91,7 @@ class CollectionFilterWidget : public QWidget {
void SetFilterMode(CollectionFilterOptions::FilterMode filter_mode);
void FocusOnFilter(QKeyEvent *e);
signals:
Q_SIGNALS:
void UpPressed();
void DownPressed();
void ReturnPressed();

View File

@ -201,7 +201,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
bool CompareItems(const CollectionItem *a, const CollectionItem *b) const;
signals:
Q_SIGNALS:
void TotalSongCountUpdated(const int count);
void TotalArtistCountUpdated(const int count);
void TotalAlbumCountUpdated(const int count);

View File

@ -82,7 +82,7 @@ class CollectionView : public AutoExpandingTreeView {
void EditTagError(const QString &message);
signals:
Q_SIGNALS:
void ShowConfigDialog();
void TotalSongCountUpdated_();

View File

@ -71,7 +71,7 @@ class CollectionWatcher : public QObject {
void RescanSongsAsync(const SongList &songs);
signals:
Q_SIGNALS:
void NewOrUpdatedSongs(const SongList &songs);
void SongsMTimeUpdated(const SongList &songs);
void SongsDeleted(const SongList &songs);

View File

@ -47,7 +47,7 @@ class GroupByDialog : public QDialog {
void CollectionGroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
void accept() override;
signals:
Q_SIGNALS:
void Accepted(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
private slots:

View File

@ -51,8 +51,8 @@ class SavedGroupingManager : public QDialog {
static QString GroupByToString(const CollectionModel::GroupBy g);
signals:
void UpdateGroupByActions();
Q_SIGNALS:
void UpdateGroupByActions();
private slots:
void UpdateButtonState();

View File

@ -78,7 +78,7 @@ class ContextAlbum : public QWidget {
void ScaleCover();
void ScalePreviousCovers();
signals:
Q_SIGNALS:
void FadeStopFinished();
private slots:

View File

@ -80,7 +80,7 @@ class ContextView : public QWidget {
void SearchLyrics();
void UpdateFonts();
signals:
Q_SIGNALS:
void AlbumEnabledChanged();
private slots:

View File

@ -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);

View File

@ -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);

View File

@ -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:

View File

@ -39,7 +39,7 @@ class FileSystemWatcherInterface : public QObject {
static FileSystemWatcherInterface *Create(QObject *parent = nullptr);
signals:
Q_SIGNALS:
void PathChanged(const QString &path);
};

View File

@ -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:

View File

@ -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:

View File

@ -74,7 +74,7 @@ class SystemTrayIcon : public QObject {
private slots:
void ActionChanged();
signals:
Q_SIGNALS:
void ChangeVolume(const int delta);
void SeekForward();
void SeekBackward();

View File

@ -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.

View File

@ -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:

View File

@ -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);

View File

@ -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:

View File

@ -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();

View File

@ -86,7 +86,7 @@ class SongLoader : public QObject {
QStringList errors() { return errors_; }
signals:
Q_SIGNALS:
void AudioCDTracksLoadFinished();
void LoadAudioCDFinished(const bool success);
void LoadRemoteFinished();

View File

@ -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:

View File

@ -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();

View File

@ -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);
};

View File

@ -162,7 +162,7 @@ class AlbumCoverChoiceController : public QWidget {
void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
void SaveEmbeddedCoverFinished(TagReaderReply *reply, Song song, const bool art_embedded);
signals:
Q_SIGNALS:
void Error(const QString &error);
void AutomaticCoverSearchDone();

View File

@ -48,7 +48,7 @@ class AlbumCoverExporter : public QObject {
int request_count() { return static_cast<int>(requests_.size()); }
signals:
Q_SIGNALS:
void AlbumCoversExportUpdate(const int exported, const int skipped, const int all);
private slots:

View File

@ -117,7 +117,7 @@ class AlbumCoverFetcher : public QObject {
void Clear();
signals:
Q_SIGNALS:
void AlbumCoverFetched(const quint64 request_id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
void SearchFinished(const quint64 request_id, const CoverProviderSearchResults &results, const CoverSearchStatistics &statistics);

View File

@ -65,7 +65,7 @@ class AlbumCoverFetcherSearch : public QObject {
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).
void SearchFinished(quint64, const CoverProviderSearchResults &results);

View File

@ -59,7 +59,7 @@ class AlbumCoverLoader : public QObject {
void CancelTask(const quint64 id);
void CancelTasks(const QSet<quint64> &ids);
signals:
Q_SIGNALS:
void ExitFinished();
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);

View File

@ -149,7 +149,7 @@ class AlbumCoverManager : public QMainWindow {
void LoadAlbumCoverAsync(AlbumItem *album_item);
signals:
Q_SIGNALS:
void Error(const QString &error);
void AddToPlaylist(QMimeData *data);

View File

@ -40,7 +40,7 @@ class CoverExportRunnable : public QObject, public QRunnable {
void run() override;
signals:
Q_SIGNALS:
void CoverExported();
void CoverSkipped();

View File

@ -68,7 +68,7 @@ class CoverProvider : public QObject {
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
signals:
Q_SIGNALS:
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
void AuthenticationSuccess();
void AuthenticationFailure(const QStringList &errors);

View File

@ -53,7 +53,7 @@ class CurrentAlbumCoverLoader : public QObject {
void ReloadSettings();
void LoadAlbumCover(const Song &song);
signals:
Q_SIGNALS:
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
void ThumbnailLoaded(const Song &song, const QUrl &thumbnail_uri, const QImage &image);

View File

@ -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:

View File

@ -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());

View File

@ -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);

View File

@ -71,7 +71,7 @@ class DeviceDatabaseBackend : public QObject {
private slots:
void Exit();
signals:
Q_SIGNALS:
void ExitFinished();
private:

View File

@ -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);

View File

@ -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);

View File

@ -41,7 +41,7 @@ class DeviceStateFilterModel : public QSortFilterProxyModel {
void setSourceModel(QAbstractItemModel *sourceModel) override;
signals:
Q_SIGNALS:
void IsEmptyChanged(const bool is_empty);
protected:

View File

@ -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);

View File

@ -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);

View File

@ -73,7 +73,7 @@ class EditTagDialog : public QDialog {
void accept() override;
signals:
Q_SIGNALS:
void Error(const QString &message);
protected:

View File

@ -53,7 +53,7 @@ class TrackSelectionDialog : public QDialog {
// QDialog
void accept() override;
signals:
Q_SIGNALS:
void Error(const QString &error);
void SongChosen(const Song &original_song, const Song &new_metadata);

View File

@ -162,7 +162,7 @@ class EngineBase : public QObject {
virtual void SetEqualizerEnabled(const bool) {}
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
void TrackAboutToEnd();

View File

@ -141,7 +141,7 @@ class GstEnginePipeline : public QObject {
public slots:
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 EndOfStreamReached(const int pipeline_id, const bool has_next_track);

View File

@ -64,7 +64,7 @@ class Equalizer : public QDialog {
Params current_params() const;
float stereo_balance() const;
signals:
Q_SIGNALS:
void StereoBalancerEnabledChanged(const bool enabled);
void StereoBalanceChanged(const float balance);
void EqualizerEnabledChanged(const bool enabled);

View File

@ -40,7 +40,7 @@ class EqualizerSlider : public QWidget {
int value() const;
void set_value(const int value);
signals:
Q_SIGNALS:
void ValueChanged(const int value);
public slots:

View File

@ -50,7 +50,7 @@ class GlobalShortcut : public QObject, QAbstractNativeEventFilter {
bool setShortcut(const QKeySequence &shortcut);
bool unsetShortcut();
signals:
Q_SIGNALS:
void activated();
private:

View File

@ -54,7 +54,7 @@ class GlobalShortcutsBackend : public QObject {
bool is_active() const { return active_; }
signals:
Q_SIGNALS:
void RegisterFinished(const bool success);
protected:

View File

@ -77,7 +77,7 @@ class GlobalShortcutsManager : public QWidget {
void ReloadSettings();
void ShowMacAccessibilityDialog();
signals:
Q_SIGNALS:
void Play();
void Pause();
void PlayPause();

View File

@ -59,7 +59,7 @@ class LyricsFetcher : public QObject {
private:
void AddRequest(const Request &request);
signals:
Q_SIGNALS:
void LyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics);
void SearchFinished(const quint64 request_id, const LyricsSearchResults &results);

View File

@ -43,7 +43,7 @@ class LyricsFetcherSearch : public QObject {
void Start(SharedPtr<LyricsProviders> lyrics_providers);
void Cancel();
signals:
Q_SIGNALS:
void SearchFinished(const quint64 id, const LyricsSearchResults &results);
void LyricsFetched(const quint64 id, const QString &provider, const QString &lyrics);

View File

@ -56,7 +56,7 @@ class LyricsProvider : public QObject {
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
signals:
Q_SIGNALS:
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
void AuthenticationSuccess();
void AuthenticationFailure(const QStringList &errors);

View File

@ -35,7 +35,7 @@ class MoodbarController : public QObject {
void ReloadSettings();
signals:
Q_SIGNALS:
void CurrentMoodbarDataChanged(const QByteArray &data);
private slots:

View File

@ -46,7 +46,7 @@ class MoodbarPipeline : public QObject {
public slots:
void Start();
signals:
Q_SIGNALS:
void Finished(const bool success);
private:

View File

@ -60,7 +60,7 @@ class AcoustidClient : public QObject {
// Cancels all requests. Finished() will never be emitted for any pending requests.
void CancelAll();
signals:
Q_SIGNALS:
void Finished(const int id, const QStringList &mbid_list, const QString &error = QString());
private slots:

View File

@ -101,7 +101,7 @@ class MusicBrainzClient : public QObject {
// Cancels all requests. Finished() will never be emitted for any pending requests.
void CancelAll();
signals:
Q_SIGNALS:
// Finished signal emitted when fechting songs tags
void Finished(const int id, const MusicBrainzClient::ResultList &result, const QString &error = QString());
// Finished signal emitted when fechting album's songs tags using DiscId

View File

@ -49,7 +49,7 @@ class TagFetcher : public QObject {
public slots:
void Cancel();
signals:
Q_SIGNALS:
void Progress(const Song &original_song, const QString &stage);
void ResultAvailable(const Song &original_song, const SongList &songs_guessed, const QString &error = QString());

View File

@ -68,7 +68,7 @@ class Organize : public QObject {
void Start();
signals:
Q_SIGNALS:
void Finished(const QStringList &files_with_errors, const QStringList&);
void FileCopied(const int database_id);
void SongPathChanged(const Song &song, const QFileInfo &new_file, const std::optional<int> new_collection_directory_id);

View File

@ -86,7 +86,7 @@ class OrganizeDialog : public QDialog {
static SongList LoadSongsBlocking(const QStringList &filenames);
void SetLoadingSongs(const bool loading);
signals:
Q_SIGNALS:
void FileCopied(const int);
public slots:

View File

@ -106,7 +106,7 @@ class OSDPretty : public QWidget {
bool toggle_mode() const { return toggle_mode_; }
void set_toggle_mode(const bool toggle_mode) { toggle_mode_ = toggle_mode; }
signals:
Q_SIGNALS:
void PositionChanged();
public slots:

View File

@ -29,7 +29,7 @@ class DynamicPlaylistControls : public QWidget {
DynamicPlaylistControls(QWidget *parent = nullptr);
~DynamicPlaylistControls() override;
signals:
Q_SIGNALS:
void Expand();
void Repopulate();
void TurnOff();

View File

@ -304,7 +304,7 @@ class Playlist : public QAbstractListModel {
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
signals:
Q_SIGNALS:
void RestoreFinished();
void PlaylistLoaded();
void CurrentSongChanged(const Song &metadata);

View File

@ -90,7 +90,7 @@ class PlaylistBackend : public QObject {
void Exit();
void SavePlaylist(const int playlist, const PlaylistItemPtrList &items, const int last_played, PlaylistGeneratorPtr dynamic);
signals:
Q_SIGNALS:
void ExitFinished();
private:

View File

@ -65,7 +65,7 @@ class PlaylistContainer : public QWidget {
bool eventFilter(QObject *objectWatched, QEvent *event) override;
signals:
Q_SIGNALS:
void UndoRedoActionsChanged(QAction *undo, QAction *redo);
void ViewSelectionModelChanged();

View File

@ -52,7 +52,7 @@ class PlaylistHeader : public StretchHeaderView {
void enterEvent(QEvent*) override;
#endif
signals:
Q_SIGNALS:
void SectionVisibilityChanged(const int logical_index, const bool visible);
void MouseEntered();
void SectionRatingLockStatusChanged(const bool);

View File

@ -80,7 +80,7 @@ class PlaylistListModel : public QStandardItemModel {
// QStandardItemModel
bool setData(const QModelIndex &idx, const QVariant &value, int role) override;
signals:
Q_SIGNALS:
void PlaylistPathChanged(const int id, const QString &new_path);
void PlaylistRenamed(const int id, const QString &new_name);

View File

@ -46,7 +46,7 @@ class PlaylistListView : public AutoExpandingTreeView {
bool ItemsSelected() const;
signals:
Q_SIGNALS:
void ItemsSelectedChanged(const bool);
void ItemMimeDataDroppedSignal(const QModelIndex &proxy_idx, const QMimeData *q_mimedata);

View File

@ -114,7 +114,7 @@ class PlaylistManagerInterface : public QObject {
// Rate current song using 0 - 5 scale.
virtual void RateCurrentSong2(const int rating) = 0;
signals:
Q_SIGNALS:
void PlaylistManagerInitialized();
void AllPlaylistsLoaded();

View File

@ -72,7 +72,7 @@ class PlaylistSequence : public QWidget {
void CycleShuffleMode();
void CycleRepeatMode();
signals:
Q_SIGNALS:
void RepeatModeChanged(const PlaylistSequence::RepeatMode mode);
void ShuffleModeChanged(const PlaylistSequence::ShuffleMode mode);

View File

@ -70,7 +70,7 @@ class PlaylistTabBar : public QTabBar {
void RemoveTab(const int id);
void InsertTab(const int id, const int index, const QString &text, const bool favorite);
signals:
Q_SIGNALS:
void CurrentIdChanged(const int id);
void Rename(const int id, const QString &name);
void Close(const int id);

View File

@ -104,7 +104,7 @@ class PlaylistView : public QTreeView {
void SetColumnAlignment(const int section, const Qt::Alignment alignment);
void JumpToCurrentlyPlayingTrack();
signals:
Q_SIGNALS:
void PlayItem(const QModelIndex idx, const Playlist::AutoScroll autoscroll);
void PlayPause(const quint64 offset_nanosec = 0, const Playlist::AutoScroll autoscroll = Playlist::AutoScroll::Never);
void RightClicked(const QPoint global_pos, const QModelIndex idx);

View File

@ -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 LoadAudioCD(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next);
signals:
Q_SIGNALS:
void Error(const QString &message);
void PreloadFinished();
void EffectiveLoadFinished(const SongList &songs);

View File

@ -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 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;
protected:

View File

@ -67,7 +67,7 @@ class PlaylistParser : public QObject {
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;
signals:
Q_SIGNALS:
void Error(const QString &error) const;
private:

View File

@ -49,7 +49,7 @@ class QobuzFavoriteRequest : public QobuzBaseRequest {
Songs
};
signals:
Q_SIGNALS:
void ArtistsAdded(const SongList &songs);
void AlbumsAdded(const SongList &songs);
void SongsAdded(const SongList &songs);

View File

@ -98,7 +98,7 @@ class QobuzRequest : public QobuzBaseRequest {
QString filename;
};
signals:
Q_SIGNALS:
void LoginSuccess();
void LoginFailure(const QString &failure_reason);
void Results(const int id, const SongMap &songs, const QString &error);

View File

@ -53,7 +53,7 @@ class QobuzStreamURLRequest : public QobuzBaseRequest {
int song_id() const { return song_id_; }
bool need_login() const { return need_login_; }
signals:
Q_SIGNALS:
void TryLogin();
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);

View File

@ -80,7 +80,7 @@ class Queue : public QAbstractProxyModel {
public slots:
void UpdateSummaryText();
signals:
Q_SIGNALS:
void TotalLengthChanged(const quint64 length);
void ItemCountChanged(const int count);
void SummaryTextChanged(const QString &message);

View File

@ -46,7 +46,7 @@ class RadioBackend : public QObject {
void GetChannels();
void DeleteChannels();
signals:
Q_SIGNALS:
void NewChannels(const RadioChannelList &channels);
void ExitFinished();

View File

@ -53,7 +53,7 @@ class RadioService : public QObject {
virtual QUrl Homepage() = 0;
virtual QUrl Donate() = 0;
signals:
Q_SIGNALS:
void NewChannels(const RadioChannelList &channels = RadioChannelList());
public slots:

View File

@ -42,7 +42,7 @@ class RadioView : public AutoExpandingTreeView {
void showEvent(QShowEvent *e) override;
void contextMenuEvent(QContextMenuEvent *e) override;
signals:
Q_SIGNALS:
void GetChannels();
private slots:

View File

@ -37,7 +37,7 @@ class RadioViewContainer : public QWidget {
RadioView *view() const { return ui_->view; }
signals:
Q_SIGNALS:
void Refresh();
private:

View File

@ -85,7 +85,7 @@ class AudioScrobbler : public QObject {
void Love();
void WriteCache();
signals:
Q_SIGNALS:
void ErrorMessage(const QString &error);
private:

View File

@ -80,7 +80,7 @@ class LastFMImport : public QObject {
void FinishCheck();
signals:
Q_SIGNALS:
void UpdatePlayCount(const QString&, const QString&, const int, const bool = false);
void UpdateLastPlayed(const QString&, const QString&, const QString&, const qint64);
void UpdateTotal(const int, const int);

View File

@ -77,7 +77,7 @@ class ListenBrainzScrobbler : public ScrobblerService {
APIError
};
signals:
Q_SIGNALS:
void AuthenticationComplete(const bool success, const QString &error = QString());
public slots:

View File

@ -70,7 +70,7 @@ class ScrobblerService : public QObject {
virtual void Submit() = 0;
virtual void WriteCache() = 0;
signals:
Q_SIGNALS:
void ErrorMessage(const QString &error);
protected:

View File

@ -57,7 +57,7 @@ class ScrobblerSettings : public QObject {
void ToggleOffline();
void ErrorReceived(const QString &error);
signals:
Q_SIGNALS:
void ErrorMessage(const QString &error);
void ScrobblingEnabledChanged(const bool value);
void ScrobblingOfflineChanged(const bool value);

View File

@ -68,7 +68,7 @@ class ScrobblingAPI20 : public ScrobblerService {
void Submit() override;
void Love() override;
signals:
Q_SIGNALS:
void AuthenticationComplete(const bool success, const QString &error = QString());
public slots:

View File

@ -45,7 +45,7 @@ class QobuzSettingsPage : public SettingsPage {
bool eventFilter(QObject *object, QEvent *event) override;
signals:
Q_SIGNALS:
void Login(const QString &username, const QString &password, const QString &token);
private slots:

View File

@ -137,7 +137,7 @@ class SettingsDialog : public QDialog {
void Apply();
void Save();
signals:
Q_SIGNALS:
void ReloadSettings();
void NotificationPreview(const OSDBase::Behaviour, const QString&, const QString&);

View File

@ -80,7 +80,7 @@ class SettingsPage : public QWidget {
protected:
bool eventFilter(QObject *obj, QEvent *e) override;
signals:
Q_SIGNALS:
void NotificationPreview(const OSDBase::Behaviour, const QString&, const QString&);
private:

View File

@ -47,7 +47,7 @@ class SpotifySettingsPage : public SettingsPage {
bool eventFilter(QObject *object, QEvent *event) override;
signals:
Q_SIGNALS:
void Authorize();
private slots:

View File

@ -53,7 +53,7 @@ class SubsonicSettingsPage : public SettingsPage {
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);
private slots:

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