Add const/references to all signal parameters
This commit is contained in:
@@ -137,23 +137,23 @@ class Base : public QObject {
|
||||
|
||||
void FadeoutFinishedSignal();
|
||||
|
||||
void StatusText(QString text);
|
||||
void Error(QString text);
|
||||
void StatusText(const QString &text);
|
||||
void Error(const QString &text);
|
||||
|
||||
// Emitted when there was a fatal error
|
||||
void FatalError();
|
||||
// Emitted when Engine was unable to play a song with the given QUrl.
|
||||
void InvalidSongRequested(QUrl url);
|
||||
void InvalidSongRequested(const QUrl &url);
|
||||
// Emitted when Engine successfully started playing a song with the given QUrl.
|
||||
void ValidSongRequested(QUrl url);
|
||||
void ValidSongRequested(const QUrl &url);
|
||||
|
||||
void MetaData(Engine::SimpleMetaBundle);
|
||||
void MetaData(const Engine::SimpleMetaBundle &bundle);
|
||||
|
||||
// Signals that the engine's state has changed (a stream was stopped for example).
|
||||
// Always use the state from event, because it's not guaranteed that immediate subsequent call to state() won't return a stale value.
|
||||
void StateChanged(Engine::State);
|
||||
void StateChanged(const Engine::State state);
|
||||
|
||||
void VolumeChanged(uint volume);
|
||||
void VolumeChanged(const uint volume);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user