Retrieving the JSON data of the current index to send to the server through the proxy model. Sending this data happens by triggering the core.

This commit is contained in:
2026-01-29 13:13:32 +01:00
parent 2a152daa70
commit bedf8084d3
9 changed files with 34 additions and 25 deletions

View File

@ -36,8 +36,8 @@ class GenericCore : public QObject {
bool isSyncServerSetup() const;
public slots:
void onSendItemTriggered(const int row);
void onItemsFetched(const QByteArray jsonDoc);
void onSendItemTriggered(const QByteArray& jsonData);
void onItemsFetched(const QByteArray jsonData);
void onItemsFetchFailure(const QString errorString);
void onPostRequestSuccessful(const QString message);
void onPostRequestFailure(const QString errorString);
@ -45,7 +45,7 @@ class GenericCore : public QObject {
signals:
void displayStatusMessage(QString message);
void fetchItemsFromServer();
void sendItemToServer(int row);
void sendItemToServer(const QByteArray& jsonData);
private:
QUndoStack* m_modelUndoStack;