24 #ifndef DIGIKAM_VKONTAKTE_NOTEINFO_H
25 #define DIGIKAM_VKONTAKTE_NOTEINFO_H
35 class NoteInfo :
public QObject
40 Q_PROPERTY(
int nid WRITE setNid READ nid)
41 Q_PROPERTY(
int uid WRITE setUid READ uid)
42 Q_PROPERTY(QString title WRITE setTitle READ title)
43 Q_PROPERTY(QString text WRITE setText READ text)
44 Q_PROPERTY(QString text_wiki WRITE setTextWiki READ textWiki)
45 Q_PROPERTY(QString date WRITE setDateString READ dateString)
46 Q_PROPERTY(
int ncom WRITE setNcom READ ncom)
47 Q_PROPERTY(
int read_ncom WRITE setReadNcom READ readNcom)
48 Q_PROPERTY(
int privacy WRITE setPrivacy READ privacy)
49 Q_PROPERTY(
int comment_privacy WRITE setCommentPrivacy READ commentPrivacy)
50 Q_PROPERTY(
bool can_comment WRITE setCanComment READ canComment)
67 void setTitle(
const QString& title);
71 QString title()
const;
77 void setText(
const QString& text);
88 void setTextWiki(
const QString& textWiki);
93 QString textWiki()
const;
99 void setDateString(
const QString& createdDate);
104 QString dateString()
const;
109 QDateTime date()
const;
111 void setNcom(
int ncom);
114 void setReadNcom(
int readNcom);
115 int readNcom()
const;
117 void setPrivacy(
int privacy);
120 void setCommentPrivacy(
int commentPrivacy);
121 int commentPrivacy()
const;
123 void setCanComment(
bool canComment);
124 bool canComment()
const;
132 typedef QSharedPointer<NoteInfo> NoteInfoPtr;