-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.h
41 lines (36 loc) · 1.1 KB
/
post.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef POST_H
#define POST_H
#include <QDateTime>
#include <QUrl>
#include <QObject>
class Post
{
private:
QString title;
QDateTime date;
QString content;
QString reaction;
quint16 weight;
quint16 calories;
bool run;
QList<QUrl> photos;
public:
Post(QString title, QDateTime date, QString content, QString reaction, quint16 weight, quint16 calories, bool run, QList<QUrl> photos);
QString getTitle() {return title;}
QDateTime getDate() {return date;}
QString getContent() {return content;}
QString getReaction() {return reaction;}
quint16 getWeight() {return weight;}
quint16 getCalories() {return calories;}
bool getRun() {return run;}
QList<QUrl> getPhotos() {return photos;}
void setTitle(QString t) {title = t;}
void setDate(QDateTime d) {date = d;}
void setContent(QString c) {content = c;}
void setReaction(QString r) {reaction = r;}
void setWeight(quint16 w) {weight = w;}
void setCalories(quint16 c) {calories = c;}
void setRun(bool r) {run = r;}
void setPhotos(QList<QUrl> p) {photos = p;}
};
#endif // POST_H