Fetching current biddings from server menu. No extracting biddings from the response and merging into the model yet.
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
|
||||
#include "../model/metadata.h"
|
||||
|
||||
class bidding;
|
||||
class GenericCore;
|
||||
|
||||
class ServerCommunicator : public QObject {
|
||||
@ -24,7 +25,7 @@ class ServerCommunicator : public QObject {
|
||||
void setServerConfiguration(const QString url, const QString email, const QString password);
|
||||
|
||||
public slots:
|
||||
void onSendGetRequestTriggered(const GetRequestTypes type);
|
||||
void onSendGetRequestTriggered(const GetRequestTypes type, QVariant data);
|
||||
void onGetReplySuccessful(const GetRequestTypes type, const QJsonDocument doc);
|
||||
void onGetReplyFailure(const GetRequestTypes type, const QString errorString);
|
||||
|
||||
@ -42,6 +43,9 @@ class ServerCommunicator : public QObject {
|
||||
void deleteRequestSuccessful(const QByteArray responseData);
|
||||
void deleteRequestFailure(const QString errorString);
|
||||
|
||||
void currentBiddingRoundChanged(int round, bool isRunning);
|
||||
void biddingsChanged(int round, QList<bidding> biddings);
|
||||
|
||||
private:
|
||||
GenericCore* m_core = nullptr;
|
||||
|
||||
@ -55,6 +59,7 @@ class ServerCommunicator : public QObject {
|
||||
|
||||
/// reply parser
|
||||
void currentBiddingRoundChangedReply(const QJsonDocument jsonDoc);
|
||||
void currentBiddingsReply(const QJsonDocument jsonDoc);
|
||||
};
|
||||
|
||||
#endif // SERVERCOMMUNICATOR_H
|
||||
|
||||
Reference in New Issue
Block a user