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

#include <hashed_keyed_player_store.h>

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

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from core::ubuntu::media::KeyedPlayerStore
typedef std::shared_ptr< KeyedPlayerStorePtr
 
typedef std::function< void(const Player::PlayerKey &, const std::shared_ptr< Player > &) > PlayerEnumerator
 
- Protected Member Functions inherited from core::ubuntu::media::KeyedPlayerStore
 KeyedPlayerStore ()=default
 
 KeyedPlayerStore (const KeyedPlayerStore &)=delete
 
virtual ~KeyedPlayerStore ()=default
 
KeyedPlayerStoreoperator= (const KeyedPlayerStore &)=delete
 

Detailed Description

Definition at line 34 of file hashed_keyed_player_store.h.

Constructor & Destructor Documentation

core::ubuntu::media::HashedKeyedPlayerStore::HashedKeyedPlayerStore ( )

Definition at line 23 of file hashed_keyed_player_store.cpp.

Member Function Documentation

void core::ubuntu::media::HashedKeyedPlayerStore::add_player_for_key ( const Player::PlayerKey key,
const std::shared_ptr< Player > &  player 
)
overridevirtual
const core::Property< std::shared_ptr< media::Player > > & core::ubuntu::media::HashedKeyedPlayerStore::current_player ( ) const
overridevirtual
void core::ubuntu::media::HashedKeyedPlayerStore::enumerate_players ( const PlayerEnumerator enumerator) const
overridevirtual
bool core::ubuntu::media::HashedKeyedPlayerStore::has_player_for_key ( const Player::PlayerKey key) const
overridevirtual
std::shared_ptr< media::Player > core::ubuntu::media::HashedKeyedPlayerStore::player_for_key ( const Player::PlayerKey key) const
overridevirtual
void core::ubuntu::media::HashedKeyedPlayerStore::remove_player_for_key ( const Player::PlayerKey key)
overridevirtual
void core::ubuntu::media::HashedKeyedPlayerStore::set_current_player_for_key ( const Player::PlayerKey key)
overridevirtual

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