#include <service_implementation.h>
Inheritance diagram for core::ubuntu::media::ServiceImplementation:
Collaboration diagram for core::ubuntu::media::ServiceImplementation:Classes | |
| struct | Configuration |
Public Member Functions | |
| ServiceImplementation (const Configuration &configuration) | |
| ~ServiceImplementation () | |
| std::shared_ptr< Player > | create_session (const Player::Configuration &) |
| Creates a session with the media-hub service. More... | |
| void | detach_session (const std::string &, const Player::Configuration &) |
| Detaches a UUID-identified session for later resuming. More... | |
| std::shared_ptr< Player > | reattach_session (const std::string &, const Player::Configuration &) |
| Reattaches to a UUID-identified session that is in detached state. More... | |
| void | destroy_session (const std::string &, const Player::Configuration &) |
| Asks the service to destroy a session. The session is destroyed when the client exits. More... | |
| std::shared_ptr< Player > | create_fixed_session (const std::string &name, const Player::Configuration &) |
| Creates a fixed-named session with the media-hub service. More... | |
| std::shared_ptr< Player > | resume_session (Player::PlayerKey key) |
| Resumes a fixed-name session directly by player key. More... | |
| void | set_current_player (Player::PlayerKey key) |
| Sets the current player that the MPRIS interface will control. More... | |
| void | pause_other_sessions (Player::PlayerKey key) |
| Pauses sessions other than the supplied one. More... | |
Public Member Functions inherited from core::ubuntu::media::Service | |
| Service (const Service &)=delete | |
| virtual | ~Service ()=default |
| Service & | operator= (const Service &)=delete |
| bool | operator== (const Service &) const =delete |
Additional Inherited Members | |
Protected Member Functions inherited from core::ubuntu::media::Service | |
| Service ()=default | |
Definition at line 33 of file service_implementation.h.
| core::ubuntu::media::ServiceImplementation::ServiceImplementation | ( | const Configuration & | configuration | ) |
| core::ubuntu::media::ServiceImplementation::~ServiceImplementation | ( | ) |
|
virtual |
Creates a fixed-named session with the media-hub service.
Implements core::ubuntu::media::Service.
|
virtual |
Creates a session with the media-hub service.
Implements core::ubuntu::media::Service.
|
virtual |
Asks the service to destroy a session. The session is destroyed when the client exits.
Implements core::ubuntu::media::Service.
|
virtual |
Detaches a UUID-identified session for later resuming.
Implements core::ubuntu::media::Service.
|
virtual |
Pauses sessions other than the supplied one.
Implements core::ubuntu::media::Service.
|
virtual |
Reattaches to a UUID-identified session that is in detached state.
Implements core::ubuntu::media::Service.
|
virtual |
Resumes a fixed-name session directly by player key.
Implements core::ubuntu::media::Service.
|
virtual |
Sets the current player that the MPRIS interface will control.
Implements core::ubuntu::media::Service.