pianod2
multisource multiuser scriptable networked music player
Public Attributes | List of all members
Media::Manager::Callbacks Class Reference

Notifications/Delegates provided by the media manager. More...

#include <mediamanager.h>

Public Attributes

std::function< void(const Source *const)> sourceReady
 Notification sent when a source is ready (goes online). More...
 
std::function< void(const Source *const)> sourceOffline
 Notification sent when a source goes offline or is about to be removed. More...
 
std::function< bool(const Source *const)> canRemoveSource
 Delegate that can veto source removal. More...
 
std::function< void(const Source *const)> sourceRemoved
 Final notification that a source is being removed. More...
 
std::function< void(RESPONSE_CODE, const char *)> statusNotification = Source::defaultStatusHandler
 Subscription for alert messages from all sources. More...
 

Detailed Description

Notifications/Delegates provided by the media manager.

Member Data Documentation

◆ canRemoveSource

std::function<bool (const Source * const)> Media::Manager::Callbacks::canRemoveSource

Delegate that can veto source removal.

◆ sourceOffline

std::function<void (const Source * const)> Media::Manager::Callbacks::sourceOffline

Notification sent when a source goes offline or is about to be removed.

◆ sourceReady

std::function<void (const Source * const)> Media::Manager::Callbacks::sourceReady

Notification sent when a source is ready (goes online).

◆ sourceRemoved

std::function<void (const Source * const)> Media::Manager::Callbacks::sourceRemoved

Final notification that a source is being removed.

◆ statusNotification

std::function<void (RESPONSE_CODE, const char *)> Media::Manager::Callbacks::statusNotification = Source::defaultStatusHandler

Subscription for alert messages from all sources.


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