Music Hub  ..
A session-wide music playback service
core::ubuntu::media::ServiceImplementation Class Reference

#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< Playercreate_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< Playerreattach_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< Playercreate_fixed_session (const std::string &name, const Player::Configuration &)
 Creates a fixed-named session with the media-hub service. More...
 
std::shared_ptr< Playerresume_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...
 
- Public Member Functions inherited from core::ubuntu::media::Service
 Service (const Service &)=delete
 
virtual ~Service ()=default
 
Serviceoperator= (const Service &)=delete
 
bool operator== (const Service &) const =delete
 

Additional Inherited Members

- Protected Member Functions inherited from core::ubuntu::media::Service
 Service ()=default
 

Detailed Description

Definition at line 33 of file service_implementation.h.

Constructor & Destructor Documentation

core::ubuntu::media::ServiceImplementation::ServiceImplementation ( const Configuration configuration)
core::ubuntu::media::ServiceImplementation::~ServiceImplementation ( )

Member Function Documentation

std::shared_ptr<Player> core::ubuntu::media::ServiceImplementation::create_fixed_session ( const std::string &  name,
const Player::Configuration  
)
virtual

Creates a fixed-named session with the media-hub service.

Implements core::ubuntu::media::Service.

std::shared_ptr<Player> core::ubuntu::media::ServiceImplementation::create_session ( const Player::Configuration )
virtual

Creates a session with the media-hub service.

Implements core::ubuntu::media::Service.

void core::ubuntu::media::ServiceImplementation::destroy_session ( const std::string &  uuid,
const Player::Configuration  
)
virtual

Asks the service to destroy a session. The session is destroyed when the client exits.

Implements core::ubuntu::media::Service.

void core::ubuntu::media::ServiceImplementation::detach_session ( const std::string &  uuid,
const Player::Configuration  
)
virtual

Detaches a UUID-identified session for later resuming.

Implements core::ubuntu::media::Service.

void core::ubuntu::media::ServiceImplementation::pause_other_sessions ( Player::PlayerKey  )
virtual

Pauses sessions other than the supplied one.

Implements core::ubuntu::media::Service.

std::shared_ptr<Player> core::ubuntu::media::ServiceImplementation::reattach_session ( const std::string &  uuid,
const Player::Configuration  
)
virtual

Reattaches to a UUID-identified session that is in detached state.

Implements core::ubuntu::media::Service.

std::shared_ptr<Player> core::ubuntu::media::ServiceImplementation::resume_session ( Player::PlayerKey  )
virtual

Resumes a fixed-name session directly by player key.

Implements core::ubuntu::media::Service.


The documentation for this class was generated from the following file: