forked from jeena/FeedTheMonkey
made possible to use doOperation with callback, added setRead, added settings for window position and size
This commit is contained in:
parent
ddb54f398c
commit
41e762445f
8 changed files with 94 additions and 47 deletions
|
@ -6,6 +6,9 @@
|
|||
#include <QNetworkReply>
|
||||
#include <QList>
|
||||
#include <QQmlListProperty>
|
||||
#include <QJsonObject>
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "post.h"
|
||||
|
||||
|
@ -30,11 +33,11 @@ signals:
|
|||
void postsChanged(QList<Post *>);
|
||||
|
||||
private slots:
|
||||
void reply();
|
||||
void onPostReadChanged(bool);
|
||||
|
||||
private:
|
||||
void doOperation(QString operation, QVariantMap opts);
|
||||
void doOperation(QString operation, QVariantMap opts, std::function<void (const QJsonObject &json)> callback);
|
||||
void updateArticle(int articleId, int field, bool trueFalse, std::function<void (const QJsonObject &json)> callback);
|
||||
|
||||
QString mServerUrl;
|
||||
QString mSessionId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue