sc9k/mainwindow.hpp

43 lines
791 B
C++
Raw Normal View History

2021-07-25 20:19:19 -05:00
/*
* Copyright 2021 gary@drinkingtea.net
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
2021-07-27 21:07:32 -05:00
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>
#include "obsclient.hpp"
#include "openlpclient.hpp"
class MainWindow: public QMainWindow {
Q_OBJECT
private:
OBSClient m_obsClient;
OpenLPClient m_openlpClient;
bool m_openLpConnected = false;
bool m_obsConnected = false;
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
};