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

#include <service_skeleton.h>

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

Classes

struct  Configuration
 

Public Member Functions

 ServiceSkeleton (const Configuration &configuration)
 
 ~ServiceSkeleton ()
 
std::shared_ptr< Playercreate_session (const Player::Configuration &)
 
void detach_session (const std::string &, const Player::Configuration &)
 
std::shared_ptr< Playerreattach_session (const std::string &, const Player::Configuration &)
 
void destroy_session (const std::string &, const media::Player::Configuration &)
 
std::shared_ptr< Playercreate_fixed_session (const std::string &name, const Player::Configuration &)
 
std::shared_ptr< Playerresume_session (Player::PlayerKey)
 
void set_current_player (Player::PlayerKey key)
 
bool is_current_player (Player::PlayerKey key) const
 
void reset_current_player ()
 
void pause_other_sessions (Player::PlayerKey key)
 
void run ()
 
void stop ()
 
virtual const core::Signal< void > & service_disconnected () const
 
virtual const core::Signal< void > & service_reconnected () const
 

Detailed Description

Definition at line 40 of file service_skeleton.h.

Constructor & Destructor Documentation

◆ ServiceSkeleton()

core::ubuntu::media::ServiceSkeleton::ServiceSkeleton ( const Configuration configuration)

◆ ~ServiceSkeleton()

core::ubuntu::media::ServiceSkeleton::~ServiceSkeleton ( )

Member Function Documentation

◆ create_fixed_session()

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

◆ create_session()

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

◆ destroy_session()

void core::ubuntu::media::ServiceSkeleton::destroy_session ( const std::string &  ,
const media::Player::Configuration  
)

◆ detach_session()

void core::ubuntu::media::ServiceSkeleton::detach_session ( const std::string &  ,
const Player::Configuration  
)

◆ is_current_player()

bool core::ubuntu::media::ServiceSkeleton::is_current_player ( Player::PlayerKey  key) const

◆ pause_other_sessions()

void core::ubuntu::media::ServiceSkeleton::pause_other_sessions ( Player::PlayerKey  key)

◆ reattach_session()

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

◆ reset_current_player()

void core::ubuntu::media::ServiceSkeleton::reset_current_player ( )

◆ resume_session()

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

◆ run()

void core::ubuntu::media::ServiceSkeleton::run ( )

◆ service_disconnected()

virtual const core::Signal<void>& core::ubuntu::media::ServiceSkeleton::service_disconnected ( ) const
virtual

◆ service_reconnected()

virtual const core::Signal<void>& core::ubuntu::media::ServiceSkeleton::service_reconnected ( ) const
virtual

◆ set_current_player()

void core::ubuntu::media::ServiceSkeleton::set_current_player ( Player::PlayerKey  key)

◆ stop()

void core::ubuntu::media::ServiceSkeleton::stop ( )

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