/usr/include/libkvkontakte/photoinfo.h is in libkvkontakte-dev 1.0~digikam2.5.0-1ubuntu2.
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 | /* 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 PHOTOINFO_H
#define PHOTOINFO_H
#include <KDE/KDateTime>
#include "libkvkontakte_export.h"
namespace Vkontakte
{
// http://vkontakte.ru/developers.php?o=-1&p=photos.get
class LIBKVKONTAKTE_EXPORT PhotoInfo : public QObject
{
Q_OBJECT
// pid, aid, owner_id, src, src_small, src_big, text, created
// When save_big=1: src_xbig, src_xxbig
Q_PROPERTY(int pid WRITE setPid READ pid)
Q_PROPERTY(int aid WRITE setAid READ aid)
Q_PROPERTY(int owner_id WRITE setUid READ uid)
Q_PROPERTY(QString src WRITE setSrc READ src)
Q_PROPERTY(QString srcSmall WRITE setSrcSmall READ srcSmall)
Q_PROPERTY(QString srcBig WRITE setSrcBig READ srcBig)
Q_PROPERTY(QString srcXBig WRITE setSrcXBig READ srcXBig)
Q_PROPERTY(QString srcXXBig WRITE setSrcXXBig READ srcXXBig)
Q_PROPERTY(QString text WRITE setText READ text)
Q_PROPERTY(QString created WRITE setDateCreatedString READ dateCreatedString)
public:
PhotoInfo();
~PhotoInfo();
void setPid(int pid);
int pid() const;
void setAid(int aid);
int aid() const;
void setUid(int uid);
int uid() const;
void setSrc(const QString &src);
QString src() const;
void setSrcSmall(const QString &srcSmall);
QString srcSmall() const;
void setSrcBig(const QString &srcBig);
QString srcBig() const;
void setSrcXBig(const QString &srcXBig);
QString srcXBig() const;
void setSrcXXBig(const QString &srcXXBig);
QString srcXXBig() const;
void setText(const QString &text);
QString text() const;
/**
* Set the creation time of the note
* @param createdTime Time as UNIX timestamp
*/
void setDateCreatedString(const QString &dateCreatedString);
/**
* Returns the creation date/time as a UNIX timestamp
*/
QString dateCreatedString() const;
/**
* Returns the creation date/time in KDateTime
*/
KDateTime dateCreated() const;
private:
class Private;
Private * const d;
};
typedef QSharedPointer<PhotoInfo> PhotoInfoPtr;
} /* namespace Vkontakte */
#endif // PHOTOINFO_H
|