#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 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;
};