blob: 4d08f5e3f95eb5dde04b32dfb4fa89eeee47b7a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#pragma once
#include "StatusLED.h"
#include "NoteClick.h"
#include "ClockClick.h"
#include "InternalClick.h"
#include "MIDI.h"
#include "PCM.h"
#include "UI.h"
#include "PIDFile.h"
#include <boost/signals2.hpp>
#include <boost/process.hpp>
class MainLoop
{
public:
MainLoop(int argc, char** argv);
~MainLoop();
int run();
private:
void start_fcgi();
void stop_fcgi();
void reconfigure_mode();
boost::process::child m_child_fcgi;
boost::signals2::connection m_click_connection;
StatusLED m_status;
Config m_config;
PIDFile m_pid_file{m_config.get_programname()};
NoteClick m_note_click;
ClockClick m_clock_click;
InternalClick m_internal_click;
MIDI m_midi;
PCM m_pcm;
UI m_ui;
};
|