This file is indexed.

/usr/include/libkfbapi/postinfo.h is in libkfbapi-dev 1.0-0ubuntu4.

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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
/* Copyright 2011 Pankaj Bhambhani <pankajb64@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 KFBAPI_POSTINFO_H
#define KFBAPI_POSTINFO_H

#include "libkfbapi_export.h"
#include "userinfo.h"
#include "propertyinfo.h"
#include "appinfo.h"
#include "commentinfo.h"
#include "likeinfo.h"

#include <KDateTime>

namespace KFbAPI {

/**
 * Class to represent a facebook post.
 * See https://developers.facebook.com/docs/reference/api/post/
 */

class LIBKFBAPI_EXPORT PostInfo
{
public:
    PostInfo();
    PostInfo(const PostInfo &other);
    ~PostInfo();

    PostInfo &operator=(const PostInfo &other);

    /**
     * Set the facebook id of this post
     * @param id the facebook id
     */
    void setId(const QString &id);
    /**
     * Returns the facebook id
     */
    QString id() const;

    /**
     * Set the user who wrote the post as a QVariantMap
     * @param from the creator of the post
     */
    void setFrom(const QVariantMap &from);
    /**
     * Returns the creator of the post as a User Info Object
     */
    UserInfo from() const;

    /**
     * Returns the creator of the post as a QVariantMap
     */
    QVariantMap fromMap() const;

    /**
     * Set the actual content of the post
     * @param message The actual content of the post
     */
    void setMessage(const QString &message);
    /**
     * Returns the content of the post.
     */
    QString message() const;

    /**
     * Set picture url of  author of the post
     * @param picture url - url of  author of the post
     */
    void setPictureUrl(const QUrl &pictureUrl);
    /**
     * Returns the picture url of  author of the post
     */
    QUrl pictureUrl() const;

    /**
     * Set link associated the post
     * @param link the link of the post
     */
    void setLink(const QUrl &link);
    /**
     * Returns the Link of the post
     */
    QUrl link() const;

    /**
     * Set name of link
     * @param name  of the link
     */
    void setName(const QString &name);
    /**
     * Returns name of the link
     */
    QString name() const;

    /**
     * Set caption of link
     * @param caption  of the link
     */
    void setCaption(const QString &caption);
    /**
     * Returns caption of the link
     */
    QString caption() const;

    /**
     * Set description of the post
     * @param description the description of the post
     */
    void setDescription(const QString &description);
    /**
     * Returns the description of the post
     */
    QString description() const;

    /**
     * Set source of link (url of video for e.g.)
     * @param source  of the link
     */
    void setSourceUrl(const QUrl &source);
    /**
     * Returns source of the link
     */
    QUrl sourceUrl() const;

    /**
     * Set properties aoosicated with the link (length of video for e.g)
     * @param properties  of the link
     */
    void setProperties(const QVariantList &properties);
    /**
     * Returns properties of the link
     */
    QList<PropertyInfo> properties() const;

    /**
     * Returns properties of the post as a QVariantList
     */
    QVariantList propertiesList() const;

    /**
     * Set icon of post (represents type of post)
     * @param icon  of post
     */
    void setIcon(const QString &icon);
    /**
     * Returns icon of post
     */
    QString icon() const;

    /**
     * Set type of post
     * @param type  of the post
     */
    void setType(const QString &type);
    /**
     * Returns type of the post
     */
    QString type() const;

    /**
     * Set likes of post
     * @param likes  of the post
     */
    void setLikes(const QVariantMap &likes);
    /**
     * Returns likes of the post
     */
    LikeInfo likes() const;

    /**
     * Returns likes of the post as a Variant Map
     */
    QVariantMap likesMap() const;
    /**
     * Set story of post (generated by app)
     * @param story  of the post
     */
    void setStory(const QString &story);
    /**
     * Returns story of the post
     */
    QString story() const;

    /**
     * Set comments of post
     * @param comments  of the post
     */
    void setComments(const QVariantMap &comments);
    /**
     * Returns comments of the post
     */
    CommentInfo comments() const;

    /**
     * Returns comments of the post as a Variant Map
     */
    QVariantMap commentsMap() const;

     /**
     * Set the app that created the post
     * @param app the app that created the post
     */
    void setApplication(const QVariantMap &app);
    /**
     * Returns the creator app of the post
     */
    AppInfo application() const;

    /**
     * Returns the creator app of the post as a QVariantMap
     */
    QVariantMap applicationMap() const;

    /**
     * Set the creation time of the post
     * @param createdTime Time in "facebook format"
     */
    void setCreatedTimeString(const QString &createdTime);
    /**
     * Returns the creation time as a string in "facebook format"
     */
    QString createdTimeString() const;
    /**
     * Returns the creation time in KDateTime
     */
    KDateTime createdTime() const;

    /**
     * Set the time of the last update of the post
     * @param updatedTime The time, in "facebook format", of the last update of
     *                    the post.
     */
    void setUpdatedTimeString(const QString &updatedTime);
    /**
     * Returns the time of the last update of the post in "facebook format"
     */
    QString updatedTimeString() const;
    /**
     * Returns the time of the last update of the post as a KDateTime
     */
    KDateTime updatedTime() const;

private:
    class PostInfoPrivate;
    QSharedDataPointer<PostInfoPrivate> d;
};

}

Q_DECLARE_METATYPE(KFbAPI::PostInfo)

#endif