Fetching current biddings from server menu. No extracting biddings from the response and merging into the model yet.

This commit is contained in:
2026-02-14 10:02:00 +01:00
parent cfd3031cf9
commit 6e51aee3a5
10 changed files with 67 additions and 103 deletions

View File

@ -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