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:
2026-01-29 08:54:47 +01:00
parent e29cd0aebf
commit bc96a805f8
4 changed files with 52 additions and 2 deletions

View File

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