Adding optional QVariant data argument to sendGetRequest to pass it to the server. Using hard coded sendGetRequest(GetBiddingsOfSpecificRound, 2) in fetchCurrentBiddings action to test this.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define GENERICCORE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
|
||||
#include "model/metadata.h"
|
||||
#include "structs.h"
|
||||
@ -48,7 +49,7 @@ class GenericCore : public QObject {
|
||||
|
||||
/// *** server communication ***
|
||||
/// request signals
|
||||
void sendGetRequest(GetRequestTypes type);
|
||||
void sendGetRequest(GetRequestTypes type, QVariant data = QVariant());
|
||||
/// response signals
|
||||
void currentBiddingRoundChanged(int round, bool isRunning);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user