summaryrefslogtreecommitdiffhomepage
path: root/MainLoop.h
blob: 9cd19a14ae08b7fc0d3cae70bfc9e9fed07d2fdc (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
#pragma once

#include "NoteClick.h"
#include "ClockClick.h"
#include "InternalClick.h"
#include "MIDI.h"
#include "PCM.h"
#include "UI.h"

#include <boost/signals2.hpp>

class MainLoop
{
public:
  MainLoop(int argc, char** argv);
  int run();

private:
  void reconfigure_mode();

  boost::signals2::connection m_click_connection;

  Config m_config;

  NoteClick m_note_click;
  ClockClick m_clock_click;
  InternalClick m_internal_click;

  MIDI m_midi;
  PCM m_pcm;
  UI m_ui;
};