Current items can be deleted by passing the UUID to the deleteItemFromServer signal.
This commit is contained in:
@ -19,7 +19,7 @@ class ServerCommunicator : public QObject {
|
||||
public slots:
|
||||
void fetchItems();
|
||||
void postItems(const QByteArray& jsonData);
|
||||
// NEXT void deleteItems(QList<QString> idList)
|
||||
void deleteItem(const QString& id);
|
||||
|
||||
signals:
|
||||
void urlChanged();
|
||||
@ -28,6 +28,8 @@ class ServerCommunicator : public QObject {
|
||||
void itemsFetchFailure(const QString errorString);
|
||||
void postRequestSuccessful(const QByteArray responseData);
|
||||
void postRequestFailure(const QString errorString);
|
||||
void deleteRequestSuccessful(const QByteArray responseData);
|
||||
void deleteRequestFailure(const QString errorString);
|
||||
|
||||
private:
|
||||
QNetworkAccessManager m_netManager;
|
||||
|
||||
Reference in New Issue
Block a user