Music Hub  ..
A session-wide music playback service
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
core::ubuntu::media::ServiceImplementation Class Reference

#include <service_implementation.h>

+ Inheritance diagram for core::ubuntu::media::ServiceImplementation:
+ Collaboration diagram for core::ubuntu::media::ServiceImplementation:

Public Member Functions

 ServiceImplementation ()
 
 ~ServiceImplementation ()
 
std::shared_ptr< Playercreate_session (const Player::Configuration &)
 
std::shared_ptr< Playercreate_fixed_session (const std::string &name, const Player::Configuration &)
 
std::shared_ptr< Playerresume_session (Player::PlayerKey key)
 
void pause_other_sessions (Player::PlayerKey key)
 
- Public Member Functions inherited from core::ubuntu::media::ServiceSkeleton
 ServiceSkeleton (const CoverArtResolver &cover_art_resolver=always_missing_cover_art_resolver())
 
 ~ServiceSkeleton ()
 
bool has_player_for_key (const Player::PlayerKey &key) const
 
std::shared_ptr< Playerplayer_for_key (const Player::PlayerKey &key) const
 
void enumerate_players (const PlayerEnumerator &enumerator) const
 
void remove_player_for_key (const Player::PlayerKey &key)
 
void set_current_player_for_key (const Player::PlayerKey &key)
 
void run ()
 
void stop ()
 

Additional Inherited Members

- Public Types inherited from core::ubuntu::media::ServiceSkeleton
typedef std::function< void(const
core::ubuntu::media::Player::PlayerKey
&, const std::shared_ptr
< core::ubuntu::media::Player > &) > 
PlayerEnumerator
 

Detailed Description

Definition at line 33 of file service_implementation.h.

Constructor & Destructor Documentation

core::ubuntu::media::ServiceImplementation::ServiceImplementation ( )
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  
)
std::shared_ptr<Player> core::ubuntu::media::ServiceImplementation::create_session ( const Player::Configuration )
void core::ubuntu::media::ServiceImplementation::pause_other_sessions ( Player::PlayerKey  key)
std::shared_ptr<Player> core::ubuntu::media::ServiceImplementation::resume_session ( Player::PlayerKey  key)

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