On sending (posting) item to the server the generated UUID is added to the local item.
This commit is contained in:
@ -68,7 +68,7 @@ void ServerCommunicator::postItems(const QByteArray& jsonData) {
|
||||
QByteArray responseData = reply->readAll();
|
||||
const QString message = QString("POST successful! Response: %1").arg(responseData);
|
||||
qInfo() << message;
|
||||
emit postRequestSuccessful(message);
|
||||
emit postRequestSuccessful(responseData);
|
||||
} else {
|
||||
const QString message = QString("Error: %1").arg(reply->errorString());
|
||||
qDebug() << message;
|
||||
|
||||
@ -26,7 +26,7 @@ class ServerCommunicator : public QObject {
|
||||
|
||||
void itemsFetched(const QByteArray jsonDoc);
|
||||
void itemsFetchFailure(const QString errorString);
|
||||
void postRequestSuccessful(const QString message);
|
||||
void postRequestSuccessful(const QByteArray responseData);
|
||||
void postRequestFailure(const QString errorString);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user