Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
client_update_checker.h
Go to the documentation of this file.
1
6
7#ifndef CLIENT_UPDATE_CHECKER_H
8#define CLIENT_UPDATE_CHECKER_H
9#include "release_channel.h"
10
11#include <QMetaObject>
12#include <QObject>
13#include <QString>
14#include <qtmetamacros.h>
15
23class ClientUpdateChecker : public QObject
24{
25 Q_OBJECT
26
27 QMetaObject::Connection finishedCheckConnection;
28 QMetaObject::Connection errorConnection;
29
30 void actFinishedCheck(bool needToUpdate, bool isCompatible, Release *release);
31 void actError(const QString &errorString);
32
33public:
34 explicit ClientUpdateChecker(QObject *parent = nullptr);
40 void check();
41
42signals:
46 void finishedCheck(bool needToUpdate, bool isCompatible, Release *release);
47
51 void error(const QString &errorString);
52};
53
54#endif // CLIENT_UPDATE_CHECKER_H
QMetaObject::Connection errorConnection
Definition client_update_checker.h:28
void finishedCheck(bool needToUpdate, bool isCompatible, Release *release)
QMetaObject::Connection finishedCheckConnection
Definition client_update_checker.h:27
void actFinishedCheck(bool needToUpdate, bool isCompatible, Release *release)
Definition client_update_checker.cpp:21
void actError(const QString &errorString)
Definition client_update_checker.cpp:29
void error(const QString &errorString)
ClientUpdateChecker(QObject *parent=nullptr)
Definition client_update_checker.cpp:6
void check()
Definition client_update_checker.cpp:10
Definition release_channel.h:25