pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Private Attributes | List of all members
Orchestra::Conductor Class Reference

Manage daemon initialization and operation. More...

#include <conductor.h>

Collaboration diagram for Orchestra::Conductor:
Collaboration graph
[legend]

Public Member Functions

 Conductor (std::string config_dir, FB_SERVICE_OPTIONS service_options, AudioSettings audio)
 Initialize the daemon. More...
 
 ~Conductor ()
 
void conduct ()
 Run the daemon. More...
 
void cleanUp ()
 
void shutdown ()
 Request the daemon exit its run loop and shut down. More...
 

Private Attributes

volatile bool shutdown_requested = false
 
PianodServiceservice = nullptr
 
GCryptInitializer initter_gcrypt
 
cURLInitializer init_curl
 
Audio::Initializer initter_audio
 
Media::Initializer initter_media
 

Detailed Description

Manage daemon initialization and operation.

Although unenforced, this is a singleton.

Constructor & Destructor Documentation

◆ Conductor()

Orchestra::Conductor::Conductor ( std::string  config_dir,
FB_SERVICE_OPTIONS  service_options,
AudioSettings  audio 
)

Initialize the daemon.

Here is the call graph for this function:

◆ ~Conductor()

Orchestra::Conductor::~Conductor ( )
Here is the call graph for this function:

Member Function Documentation

◆ cleanUp()

void Orchestra::Conductor::cleanUp ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ conduct()

void Orchestra::Conductor::conduct ( )

Run the daemon.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shutdown()

void Orchestra::Conductor::shutdown ( )
inline

Request the daemon exit its run loop and shut down.

Here is the caller graph for this function:

Member Data Documentation

◆ init_curl

cURLInitializer Orchestra::Conductor::init_curl
private

◆ initter_audio

Audio::Initializer Orchestra::Conductor::initter_audio
private

◆ initter_gcrypt

GCryptInitializer Orchestra::Conductor::initter_gcrypt
private

◆ initter_media

Media::Initializer Orchestra::Conductor::initter_media
private

◆ service

PianodService* Orchestra::Conductor::service = nullptr
private

◆ shutdown_requested

volatile bool Orchestra::Conductor::shutdown_requested = false
private

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