An item (with hard coded values) can be send to the server. Added signals for fetching and posting items to be triggered from the UI.
This commit is contained in:
@ -36,6 +36,7 @@ class GenericCore : public QObject {
|
||||
bool isSyncServerSetup() const;
|
||||
|
||||
public slots:
|
||||
void onSendItemTriggered(const int row);
|
||||
void onItemsFetched(const QByteArray jsonDoc);
|
||||
void onItemsFetchFailure(const QString errorString);
|
||||
void onPostRequestSuccessful(const QString message);
|
||||
@ -43,6 +44,8 @@ class GenericCore : public QObject {
|
||||
|
||||
signals:
|
||||
void displayStatusMessage(QString message);
|
||||
void fetchItemsFromServer();
|
||||
void sendItemToServer(int row);
|
||||
|
||||
private:
|
||||
QUndoStack* m_modelUndoStack;
|
||||
|
||||
Reference in New Issue
Block a user