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_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 54 of file service_skeleton.cpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 101 of file service_skeleton.cpp.

References gen.

Referenced by handle_create_fixed_session(), and handle_create_session().

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

Definition at line 114 of file service_skeleton.cpp.

References configuration, create_session_info(), mpris::Service::Errors::CreatingSession::name(), player_owner_map, request_context_resolver, and uuid_player_map.

Referenced by Private().

+ Here is the call graph for this function:

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

Definition at line 261 of file service_skeleton.cpp.

References configuration, mpris::Service::Errors::DestroyingSession::name(), player_owner_map, request_context_resolver, and uuid_player_map.

Referenced by Private().

+ Here is the call graph for this function:

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

Definition at line 157 of file service_skeleton.cpp.

References configuration, mpris::Service::Errors::DetachingSession::name(), player_owner_map, and uuid_player_map.

Referenced by Private().

+ Here is the call graph for this function:

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

Definition at line 427 of file service_skeleton.cpp.

Referenced by Private().

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

Definition at line 195 of file service_skeleton.cpp.

References configuration, mpris::Service::Errors::ReattachingSession::name(), player_owner_map, request_context_resolver, and uuid_player_map.

Referenced by Private().

+ Here is the call graph for this function:

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

Definition at line 393 of file service_skeleton.cpp.

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

Referenced by Private().

+ Here is the call graph for this function:

Member Data Documentation

ServiceSkeleton::Configuration media::ServiceSkeleton::Private::configuration
struct media::ServiceSkeleton::Private::Exported media::ServiceSkeleton::Private::exported
boost::uuids::random_generator media::ServiceSkeleton::Private::gen

Definition at line 452 of file service_skeleton.cpp.

Referenced by create_session_info().

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

Definition at line 439 of file service_skeleton.cpp.

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

Definition at line 445 of file service_skeleton.cpp.

Referenced by handle_create_fixed_session().

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

Definition at line 440 of file service_skeleton.cpp.

std::map<media::Player::PlayerKey, std::tuple<std::string, bool, std::string> > media::ServiceSkeleton::Private::player_owner_map
media::apparmor::ubuntu::RequestContextResolver::Ptr media::ServiceSkeleton::Private::request_context_resolver
std::map<std::string, media::Player::PlayerKey> media::ServiceSkeleton::Private::uuid_player_map

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