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
 
size_t number_of_players () const
 
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

◆ HashedKeyedPlayerStore()

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

Definition at line 23 of file hashed_keyed_player_store.cpp.

Member Function Documentation

◆ add_player_for_key()

void core::ubuntu::media::HashedKeyedPlayerStore::add_player_for_key ( const Player::PlayerKey key,
const std::shared_ptr< Player > &  player 
)
overridevirtual

◆ current_player()

const core::Property< std::shared_ptr< media::Player > > & core::ubuntu::media::HashedKeyedPlayerStore::current_player ( ) const
overridevirtual

◆ enumerate_players()

void core::ubuntu::media::HashedKeyedPlayerStore::enumerate_players ( const PlayerEnumerator enumerator) const
overridevirtual

◆ has_player_for_key()

bool core::ubuntu::media::HashedKeyedPlayerStore::has_player_for_key ( const Player::PlayerKey key) const
overridevirtual

◆ number_of_players()

size_t core::ubuntu::media::HashedKeyedPlayerStore::number_of_players ( ) const

Definition at line 78 of file hashed_keyed_player_store.cpp.

◆ player_for_key()

std::shared_ptr< media::Player > core::ubuntu::media::HashedKeyedPlayerStore::player_for_key ( const Player::PlayerKey key) const
overridevirtual

◆ remove_player_for_key()

void core::ubuntu::media::HashedKeyedPlayerStore::remove_player_for_key ( const Player::PlayerKey key)
overridevirtual

◆ set_current_player_for_key()

void core::ubuntu::media::HashedKeyedPlayerStore::set_current_player_for_key ( const Player::PlayerKey key)
overridevirtual

Implements core::ubuntu::media::KeyedPlayerStore.

Definition at line 84 of file hashed_keyed_player_store.cpp.

References player_for_key().

+ Here is the call graph for this function:

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