2021-07-18 21:09:04 -05:00
|
|
|
#pragma once
|
|
|
|
|
2021-07-25 19:14:00 -05:00
|
|
|
#include <cstdint>
|
|
|
|
|
2021-07-18 21:09:04 -05:00
|
|
|
#include <QMainWindow>
|
2021-07-25 19:14:00 -05:00
|
|
|
#include <QTimer>
|
2021-07-18 21:09:04 -05:00
|
|
|
|
|
|
|
#include "obsclient.hpp"
|
|
|
|
#include "openlpclient.hpp"
|
|
|
|
|
|
|
|
class MainWindow: public QMainWindow {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
OBSClient m_obsClient;
|
|
|
|
OpenLPClient m_openlpClient;
|
2021-07-25 19:14:00 -05:00
|
|
|
QTimer m_statusBarTimer;
|
|
|
|
uint64_t m_openLPUpdates = 0;
|
|
|
|
uint64_t m_obsUpdates = 0;
|
2021-07-18 21:09:04 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private slots:
|
2021-07-25 19:14:00 -05:00
|
|
|
void openLpConnectionInit();
|
|
|
|
|
|
|
|
void openLpConnectionLost();
|
|
|
|
|
|
|
|
void obsConnectionInit();
|
|
|
|
|
|
|
|
void obsConnectionLost();
|
|
|
|
|
|
|
|
void refreshStatusBar();
|
2021-07-18 21:09:04 -05:00
|
|
|
|
|
|
|
};
|