/usr/include/libkvkontakte/noteinfo.h is in libkvkontakte-dev 1.0~digikam3.5.0-0ubuntu10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | /* Copyright 2011 Roeland Jago Douma <unix@rullzer.com>
Copyright 2011 Alexander Potashev <aspotashev@gmail.com>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published
by the Free Software Foundation; either version 2 of the License or
( at your option ) version 3 or, at the discretion of KDE e.V.
( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef NOTEINFO_H
#define NOTEINFO_H
#include <KDE/KDateTime>
#include "libkvkontakte_export.h"
namespace Vkontakte
{
// http://vkontakte.ru/developers.php?o=-1&p=notes.getById
class LIBKVKONTAKTE_EXPORT NoteInfo : public QObject
{
Q_OBJECT
// nid, uid, title, text, text_wiki, date, ncom, read_ncom, privacy, comment_privacy, can_comment
Q_PROPERTY(int nid WRITE setNid READ nid)
Q_PROPERTY(int uid WRITE setUid READ uid)
Q_PROPERTY(QString title WRITE setTitle READ title)
Q_PROPERTY(QString text WRITE setText READ text)
Q_PROPERTY(QString text_wiki WRITE setTextWiki READ textWiki)
Q_PROPERTY(QString date WRITE setDateString READ dateString)
Q_PROPERTY(int ncom WRITE setNcom READ ncom)
Q_PROPERTY(int read_ncom WRITE setReadNcom READ readNcom)
Q_PROPERTY(int privacy WRITE setPrivacy READ privacy)
Q_PROPERTY(int comment_privacy WRITE setCommentPrivacy READ commentPrivacy)
Q_PROPERTY(bool can_comment WRITE setCanComment READ canComment)
public:
NoteInfo();
~NoteInfo();
void setNid(int nid);
int nid() const;
void setUid(int uid);
int uid() const;
/**
* Set the subject of the note
* @param subject the subject
*/
void setTitle(const QString &title);
/**
* Returns the subject of the note.
*/
QString title() const;
/**
* Set the actual content of the note
* @param text The actual content of the note
*/
void setText( const QString &text);
/**
* Returns the content of the note.
*/
QString text() const;
/**
* Set the actual content of the note
* @param textWiki The actual content of the note
*/
void setTextWiki( const QString &textWiki);
/**
* Returns the content of the note.
*/
QString textWiki() const;
/**
* Set the creation time of the note
* @param createdTime Time as UNIX timestamp
*/
void setDateString(const QString &createdDate);
/**
* Returns the creation date/time as a UNIX timestamp
*/
QString dateString() const;
/**
* Returns the creation date/time in KDateTime
*/
KDateTime date() const;
void setNcom(int ncom);
int ncom() const;
void setReadNcom(int readNcom);
int readNcom() const;
void setPrivacy(int privacy);
int privacy() const;
void setCommentPrivacy(int commentPrivacy);
int commentPrivacy() const;
void setCanComment(bool canComment);
bool canComment() const;
private:
class Private;
Private * const d;
};
typedef QSharedPointer<NoteInfo> NoteInfoPtr;
} /* namespace Vkontakte */
#endif // NOTEINFO_H
|