/* * 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/. */ #pragma once #include #include #include #include "obsclient.hpp" #include "openlpclient.hpp" class MainWindow: public QMainWindow { Q_OBJECT private: OBSClient m_obsClient; OpenLPClient m_openlpClient; QTimer m_statusBarTimer; uint64_t m_openLPUpdates = 0; uint64_t m_obsUpdates = 0; public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void openLpConnectionInit(); void openLpConnectionLost(); void obsConnectionInit(); void obsConnectionLost(); void refreshStatusBar(); };