This commit is contained in:
Gary Talent 2021-07-27 21:07:32 -05:00
parent 453b584d86
commit 1ab03975f7
8 changed files with 13 additions and 8 deletions

View File

@ -16,6 +16,7 @@ SOURCES += \
slideview.cpp
HEADERS += \
consts.hpp \
mainwindow.hpp \
obsclient.hpp \
openlpclient.hpp \

View File

@ -5,10 +5,11 @@
* 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/.
*/
#include "mainwindow.hpp"
#include <QApplication>
#include "mainwindow.hpp"
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
MainWindow w;

View File

@ -5,6 +5,7 @@
* 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 <cstdint>

View File

@ -51,7 +51,7 @@ void OBSClient::poll() {
void OBSClient::handlePollResponse(QNetworkReply *reply) {
if (reply->error()) {
qDebug() << reply->errorString();
qDebug() << "OBSClient error response:" << reply->errorString();
emit pollFailed();
return;
}

View File

@ -5,6 +5,7 @@
* 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 <QNetworkAccessManager>

View File

@ -86,13 +86,13 @@ void OpenLPClient::poll() {
void OpenLPClient::handleGeneralResponse(QNetworkReply *reply) {
if (reply->error()) {
qDebug() << reply->request().url() << ":" << reply->errorString();
qDebug() << "OpenLPClient error response:" << reply->request().url() << ":" << reply->errorString();
}
}
void OpenLPClient::handlePollResponse(QNetworkReply *reply) {
if (reply->error()) {
qDebug() << reply->errorString();
qDebug() << "OpenLPClient error response:" << reply->errorString();
emit pollFailed();
m_currentServiceId = -1;
m_currentSongId = "";
@ -121,7 +121,7 @@ void OpenLPClient::handlePollResponse(QNetworkReply *reply) {
void OpenLPClient::handleSongListResponse(QNetworkReply *reply) {
if (reply->error()) {
qDebug() << reply->errorString();
qDebug() << "OpenLPClient error response:" << reply->errorString();
}
auto data = reply->readAll();
if (data.isEmpty()) {
@ -143,7 +143,7 @@ void OpenLPClient::handleSongListResponse(QNetworkReply *reply) {
void OpenLPClient::handleSlideListResponse(QNetworkReply *reply) {
if (reply->error()) {
qDebug() << reply->errorString();
qDebug() << "OpenLPClient error response:" << reply->errorString();
}
auto data = reply->readAll();
if (data.isEmpty()) {

View File

@ -5,6 +5,7 @@
* 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 <QHash>
@ -16,6 +17,7 @@
class OpenLPClient: public QObject {
Q_OBJECT
private:
struct Song {
QString name;

View File

@ -9,8 +9,7 @@
#include <QWidget>
class SlideView : public QWidget
{
class SlideView: public QWidget {
Q_OBJECT
private:
class QTableWidget *m_slideTable = nullptr;