added post stuff

This commit is contained in:
Jeena 2015-01-12 19:52:28 +01:00
parent 7dbf05e2e1
commit 6146758f59
4 changed files with 29 additions and 17 deletions

4
post.h
View file

@ -4,7 +4,7 @@
#include <QObject>
#include <QUrl>
#include <QDate>
#include <QJsonDocument>
#include <QJsonObject>
class Post : public QObject
{
@ -18,7 +18,7 @@ class Post : public QObject
public:
Post(QObject *parent = 0);
Post(QJsonDocument post, QObject *parent = 0);
Post(QJsonObject post, QObject *parent = 0);
~Post();
QString title() const { return mTitle; }
QString author() const { return mAuthor; }