Music Hub  ..
A session-wide music playback service
media::ServiceSkeleton::Private Struct Reference
+ Collaboration diagram for media::ServiceSkeleton::Private:

Classes

struct  Exported
 
struct  Exported
 

Public Member Functions

 Private (media::ServiceSkeleton *impl, const ServiceSkeleton::Configuration &config)
 
std::tuple< std::string, media::Player::PlayerKey, std::string > create_session_info ()
 
void handle_create_session (const core::dbus::Message::Ptr &msg)
 
void handle_detach_session (const core::dbus::Message::Ptr &msg)
 
void handle_reattach_session (const core::dbus::Message::Ptr &msg)
 
void handle_destroy_session (const core::dbus::Message::Ptr &msg)
 
void handle_create_fixed_session (const core::dbus::Message::Ptr &msg)
 
void handle_resume_session (const core::dbus::Message::Ptr &msg)
 
void handle_set_current_player (const core::dbus::Message::Ptr &msg)
 
void handle_pause_other_sessions (const core::dbus::Message::Ptr &msg)
 

Public Attributes

media::apparmor::ubuntu::RequestContextResolver::Ptr request_context_resolver
 
media::ServiceSkeletonimpl
 
dbus::Object::Ptr object
 
ServiceSkeleton::Configuration configuration
 
std::map< std::string, media::Player::PlayerKeynamed_player_map
 
std::map< std::string, media::Player::PlayerKeyuuid_player_map
 
std::map< media::Player::PlayerKey, std::tuple< std::string, bool, std::string > > player_owner_map
 
boost::uuids::random_generator gen
 
struct media::ServiceSkeleton::Private::Exported exported
 

Detailed Description

Definition at line 58 of file service_skeleton.cpp.

Constructor & Destructor Documentation

◆ Private()

media::ServiceSkeleton::Private::Private ( media::ServiceSkeleton impl,
const ServiceSkeleton::Configuration &  config 
)
inline

Definition at line 60 of file service_skeleton.cpp.

Member Function Documentation

◆ create_session_info()

std::tuple<std::string, media::Player::PlayerKey, std::string> media::ServiceSkeleton::Private::create_session_info ( )
inline

Definition at line 105 of file service_skeleton.cpp.

◆ handle_create_fixed_session()

void media::ServiceSkeleton::Private::handle_create_fixed_session ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 343 of file service_skeleton.cpp.

References mpris::Service::Errors::CreatingSession::name(), and mpris::Service::Errors::CreatingFixedSession::name().

+ Here is the call graph for this function:

◆ handle_create_session()

void media::ServiceSkeleton::Private::handle_create_session ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 118 of file service_skeleton.cpp.

References MH_DEBUG, and mpris::Service::Errors::CreatingSession::name().

+ Here is the call graph for this function:

◆ handle_destroy_session()

void media::ServiceSkeleton::Private::handle_destroy_session ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 274 of file service_skeleton.cpp.

References MH_DEBUG, and mpris::Service::Errors::DestroyingSession::name().

+ Here is the call graph for this function:

◆ handle_detach_session()

void media::ServiceSkeleton::Private::handle_detach_session ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 165 of file service_skeleton.cpp.

References mpris::Service::Errors::DetachingSession::name().

+ Here is the call graph for this function:

◆ handle_pause_other_sessions()

void media::ServiceSkeleton::Private::handle_pause_other_sessions ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 477 of file service_skeleton.cpp.

References MH_WARNING, and mpris::Service::Errors::PlayerKeyNotFound::name().

+ Here is the call graph for this function:

◆ handle_reattach_session()

void media::ServiceSkeleton::Private::handle_reattach_session ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 204 of file service_skeleton.cpp.

References MH_DEBUG, and mpris::Service::Errors::ReattachingSession::name().

+ Here is the call graph for this function:

◆ handle_resume_session()

void media::ServiceSkeleton::Private::handle_resume_session ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 409 of file service_skeleton.cpp.

References mpris::Service::Errors::CreatingSession::name(), and mpris::Service::Errors::ResumingSession::name().

+ Here is the call graph for this function:

◆ handle_set_current_player()

void media::ServiceSkeleton::Private::handle_set_current_player ( const core::dbus::Message::Ptr &  msg)
inline

Definition at line 443 of file service_skeleton.cpp.

References MH_WARNING, and mpris::Service::Errors::PlayerKeyNotFound::name().

+ Here is the call graph for this function:

Member Data Documentation

◆ configuration

ServiceSkeleton::Configuration media::ServiceSkeleton::Private::configuration

Definition at line 504 of file service_skeleton.cpp.

◆ exported

struct media::ServiceSkeleton::Private::Exported media::ServiceSkeleton::Private::exported

◆ gen

boost::uuids::random_generator media::ServiceSkeleton::Private::gen

Definition at line 513 of file service_skeleton.cpp.

◆ impl

media::ServiceSkeleton* media::ServiceSkeleton::Private::impl

Definition at line 500 of file service_skeleton.cpp.

◆ named_player_map

std::map<std::string, media::Player::PlayerKey> media::ServiceSkeleton::Private::named_player_map

Definition at line 506 of file service_skeleton.cpp.

◆ object

dbus::Object::Ptr media::ServiceSkeleton::Private::object

Definition at line 501 of file service_skeleton.cpp.

◆ player_owner_map

std::map<media::Player::PlayerKey, std::tuple<std::string, bool, std::string> > media::ServiceSkeleton::Private::player_owner_map

Definition at line 511 of file service_skeleton.cpp.

◆ request_context_resolver

media::apparmor::ubuntu::RequestContextResolver::Ptr media::ServiceSkeleton::Private::request_context_resolver

Definition at line 499 of file service_skeleton.cpp.

◆ uuid_player_map

std::map<std::string, media::Player::PlayerKey> media::ServiceSkeleton::Private::uuid_player_map

Definition at line 508 of file service_skeleton.cpp.


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