GCC Code Coverage Report


Directory: src/
File: src/controller/controller.h
Date: 2022-05-10 08:17:32
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 2 2 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #ifndef CONTROLLER_H
2 #define CONTROLLER_H
3
4 #include <QObject>
5 #include <QDebug>
6 #include <rtmidi/RtMidi.h>
7
8 class Controller : public QObject
9 {
10 Q_OBJECT
11 public:
12 9 explicit Controller(QObject *parent = nullptr) : QObject{parent} {};
13 18 ~Controller() noexcept override = default;
14
15 [[nodiscard]] virtual const QList<QString> &getInputMidiPort() const = 0;
16 [[nodiscard]] virtual const QList<QString> &getOutputMidiPort() const = 0;
17
18 signals:
19 void newMidiMessage(QByteArray message);
20
21 public slots:
22 virtual void activateInputMidiPort(int index) = 0;
23 virtual void activateInputMidiPort(QString port_name) = 0;
24 virtual void activateOutputMidiPort(int index) = 0;
25 virtual void activateOutputMidiPort(QString port_name) = 0;
26 };
27
28
29
30 #endif // CONTROLLER_H
31