Changeset View
Changeset View
Standalone View
Standalone View
plugins/mprisremote/mprisremoteplugin.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
---|---|---|---|---|---|
52 | QStringList playerList() const { return m_playerList; } | 52 | QStringList playerList() const { return m_playerList; } | ||
53 | QString player() const { return m_player; } | 53 | QString player() const { return m_player; } | ||
54 | QString nowPlaying() const { return m_nowPlaying; } | 54 | QString nowPlaying() const { return m_nowPlaying; } | ||
55 | 55 | | |||
56 | void setVolume(int volume); | 56 | void setVolume(int volume); | ||
57 | void setPosition(int position); | 57 | void setPosition(int position); | ||
58 | void setPlayer(const QString& player); | 58 | void setPlayer(const QString& player); | ||
59 | 59 | | |||
60 | public Q_SLOTS: | | |||
61 | bool receivePackage(const NetworkPackage& np) override; | 60 | bool receivePackage(const NetworkPackage& np) override; | ||
62 | void connected() override; | 61 | void connected() override {} | ||
62 | QString dbusPath() const override; | ||||
63 | 63 | | |||
64 | void seek(int offset) const; | 64 | Q_SCRIPTABLE void seek(int offset) const; | ||
65 | void requestPlayerStatus(); | 65 | Q_SCRIPTABLE void requestPlayerList(); | ||
66 | void requestPlayerList(); | 66 | Q_SCRIPTABLE void sendAction(const QString& action); | ||
67 | void sendAction(const QString& action); | | |||
68 | 67 | | |||
69 | Q_SIGNALS: | 68 | Q_SIGNALS: | ||
70 | void propertiesChanged(); | 69 | void propertiesChanged(); | ||
71 | 70 | | |||
72 | private: | 71 | private: | ||
73 | QString dbusPath() const; | 72 | void requestPlayerStatus(); | ||
74 | 73 | | |||
75 | QString m_player; | 74 | QString m_player; | ||
76 | bool m_playing; | 75 | bool m_playing; | ||
77 | QString m_nowPlaying; | 76 | QString m_nowPlaying; | ||
78 | int m_volume; | 77 | int m_volume; | ||
79 | long m_length; | 78 | long m_length; | ||
80 | long m_lastPosition; | 79 | long m_lastPosition; | ||
81 | qint64 m_lastPositionTime; | 80 | qint64 m_lastPositionTime; | ||
82 | QStringList m_playerList; | 81 | QStringList m_playerList; | ||
83 | }; | 82 | }; | ||
84 | 83 | | |||
85 | #endif | 84 | #endif |