Music Hub  ..
A session-wide music playback service
core::ubuntu::media::KeyedPlayerStore Class Referenceabstract

#include <keyed_player_store.h>

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

Public Types

typedef std::shared_ptr< KeyedPlayerStorePtr
 
typedef std::function< void(const Player::PlayerKey &, const std::shared_ptr< Player > &) > PlayerEnumerator
 

Public Member Functions

virtual const core::Property< std::shared_ptr< Player > > & current_player () const =0
 
virtual bool has_player_for_key (const Player::PlayerKey &key) const =0
 
virtual std::shared_ptr< Playerplayer_for_key (const Player::PlayerKey &key) const =0
 
virtual void enumerate_players (const PlayerEnumerator &enumerator) const =0
 
virtual void add_player_for_key (const Player::PlayerKey &key, const std::shared_ptr< Player > &player)=0
 
virtual void remove_player_for_key (const Player::PlayerKey &key)=0
 
virtual void set_current_player_for_key (const Player::PlayerKey &key)=0
 

Protected Member Functions

 KeyedPlayerStore ()=default
 
 KeyedPlayerStore (const KeyedPlayerStore &)=delete
 
virtual ~KeyedPlayerStore ()=default
 
KeyedPlayerStoreoperator= (const KeyedPlayerStore &)=delete
 

Detailed Description

Definition at line 36 of file keyed_player_store.h.

Member Typedef Documentation

typedef std::function< void( const Player::PlayerKey&, const std::shared_ptr<Player>& ) > core::ubuntu::media::KeyedPlayerStore::PlayerEnumerator

Definition at line 50 of file keyed_player_store.h.

Definition at line 40 of file keyed_player_store.h.

Constructor & Destructor Documentation

core::ubuntu::media::KeyedPlayerStore::KeyedPlayerStore ( )
protecteddefault
core::ubuntu::media::KeyedPlayerStore::KeyedPlayerStore ( const KeyedPlayerStore )
protecteddelete
virtual core::ubuntu::media::KeyedPlayerStore::~KeyedPlayerStore ( )
protectedvirtualdefault

Member Function Documentation

virtual void core::ubuntu::media::KeyedPlayerStore::add_player_for_key ( const Player::PlayerKey key,
const std::shared_ptr< Player > &  player 
)
pure virtual
virtual const core::Property<std::shared_ptr<Player> >& core::ubuntu::media::KeyedPlayerStore::current_player ( ) const
pure virtual
virtual void core::ubuntu::media::KeyedPlayerStore::enumerate_players ( const PlayerEnumerator enumerator) const
pure virtual
virtual bool core::ubuntu::media::KeyedPlayerStore::has_player_for_key ( const Player::PlayerKey key) const
pure virtual
KeyedPlayerStore& core::ubuntu::media::KeyedPlayerStore::operator= ( const KeyedPlayerStore )
protecteddelete
virtual std::shared_ptr<Player> core::ubuntu::media::KeyedPlayerStore::player_for_key ( const Player::PlayerKey key) const
pure virtual
virtual void core::ubuntu::media::KeyedPlayerStore::remove_player_for_key ( const Player::PlayerKey key)
pure virtual
virtual void core::ubuntu::media::KeyedPlayerStore::set_current_player_for_key ( const Player::PlayerKey key)
pure virtual

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