Commit 629f9dc9 authored by Michael Pyne's avatar Michael Pyne

mpris2: Make some adapter methods async.

This is another attempt to work around JuK <=> Plasma DBus deadlocks,
but making some of the DBus methods that Plasma would call into via the
MPRIS2 interface be async.
parent fa657b97
......@@ -60,8 +60,8 @@ class MediaPlayer2 : public QDBusAbstractAdaptor
QStringList SupportedMimeTypes() const;
public slots:
void Raise() const;
void Quit() const;
Q_NOREPLY void Raise() const;
Q_NOREPLY void Quit() const;
};
#endif
......@@ -56,14 +56,14 @@ class MediaPlayer2Player : public QDBusAbstractAdaptor
QString PlaybackStatus() const;
QString LoopStatus() const;
void setLoopStatus(const QString& loopStatus) const;
Q_NOREPLY void setLoopStatus(const QString& loopStatus) const;
double Rate() const;
void setRate(double rate) const;
Q_NOREPLY void setRate(double rate) const;
bool Shuffle() const;
void setShuffle(bool shuffle) const;
QVariantMap Metadata() const;
double Volume() const;
void setVolume(double volume) const;
Q_NOREPLY void setVolume(double volume) const;
qlonglong Position() const;
double MinimumRate() const;
double MaximumRate() const;
......@@ -78,15 +78,15 @@ class MediaPlayer2Player : public QDBusAbstractAdaptor
void Seeked(qlonglong Position) const;
public slots:
void Next() const;
void Previous() const;
void Pause() const;
void PlayPause() const;
void Stop() const;
void Play() const;
void Seek(qlonglong Offset) const;
void SetPosition(const QDBusObjectPath& TrackId, qlonglong Position) const;
void OpenUri(QString Uri) const;
Q_NOREPLY void Next() const;
Q_NOREPLY void Previous() const;
Q_NOREPLY void Pause() const;
Q_NOREPLY void PlayPause() const;
Q_NOREPLY void Stop() const;
Q_NOREPLY void Play() const;
Q_NOREPLY void Seek(qlonglong Offset) const;
Q_NOREPLY void SetPosition(const QDBusObjectPath& TrackId, qlonglong Position) const;
Q_NOREPLY void OpenUri(QString Uri) const;
private slots:
void currentSourceChanged() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment