1/* Copyright 2012 Pankaj Bhambhani <pankajb64@gmail.com>
2
3 This library is free software; you can redistribute it and/or modify
4 it under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2 of the License or
6 ( at your option ) version 3 or, at the discretion of KDE e.V.
7 ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KFBAPI_PROPERTYINFO_H
21#define KFBAPI_PROPERTYINFO_H
22
23#include "libkfbapi_export.h"
24
25#include <QSharedPointer>
26
27namespace KFbAPI {
28
29/**
30 * Class to represent a property associated with a facebook post
31 */
32
33class LIBKFBAPI_EXPORT PropertyInfo
34{
35public:
36 PropertyInfo();
37 PropertyInfo(const PropertyInfo &other);
38 ~PropertyInfo();
39
40 PropertyInfo &operator=(const PropertyInfo &other);
41
42 /**
43 * Set the name of this property
44 * @param name the property name
45 */
46 void setName(const QString &name);
47 /**
48 * Returns the property name
49 */
50 QString name() const;
51
52 /**
53 * Set the text of this property
54 * @param text the property text
55 */
56 void setText(const QString &text);
57 /**
58 * Returns the property text
59 */
60 QString text() const;
61
62 /**
63 * Set the href link of this property
64 * @param href the property href
65 */
66 void setHref(const QString &href);
67 /**
68 * Returns the property href
69 */
70 QString href() const;
71
72private:
73 class PropertyInfoPrivate;
74 QSharedDataPointer<PropertyInfoPrivate> d;
75 };
76
77}
78
79#endif
80