#include <service_implementation.h>
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 | pause_other_sessions (Player::PlayerKey key) |
Pauses sessions other than the supplied one. More... | |
const core::Signal< void > & | service_disconnected () const |
Signals when the media-hub server disappears from the bus. More... | |
const core::Signal< void > & | service_reconnected () const |
Signals when the media-hub server reappears from the bus. More... | |
![]() | |
Service (const Service &)=delete | |
virtual | ~Service ()=default |
Service & | operator= (const Service &)=delete |
bool | operator== (const Service &) const =delete |
Additional Inherited Members | |
![]() | |
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 |
Signals when the media-hub server disappears from the bus.
Implements core::ubuntu::media::Service.
|
virtual |
Signals when the media-hub server reappears from the bus.
Implements core::ubuntu::media::Service.