-
Notifications
You must be signed in to change notification settings - Fork 0
/
datamanager.h
28 lines (26 loc) · 899 Bytes
/
datamanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef DATAMANAGER_H
#define DATAMANAGER_H
#include <QObject>
#include "internalmessages.h"
#include "chess24manager.h"
#include "chess24sqlhandler.h"
class DataManager:public QObject
{
Q_OBJECT
public:
DataManager(QObject *parent, const Chess24Manager &c24Manager, Chess24SqlHandler &sqlHandler);
public slots:
void onCurrentTournamentChanged(InternalMessages::TournamentChangedData data);
void onRequestUpdateTournament(InternalMessages::TournamentChangedData data);
void onRequestUpdateTournamentList();
signals:
void tournamentLoaded(InternalMessages::TournamentChangedData data);
void tournamentListChanged();
private:
void subscribeTournament(QString name);
void getTournament(InternalMessages::TournamentChangedData data);
void getTournamentList();
const Chess24Manager &c24Manager;
Chess24SqlHandler &sqlHandler;
};
#endif // DATAMANAGER_H