1/* Copyright 2010 Thomas McGuire <mcguire@kde.org>
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_FRIENDLISTJOB_H
21#define KFBAPI_FRIENDLISTJOB_H
22
23#include "userinfo.h"
24#include "facebookjobs.h"
25
26namespace KFbAPI {
27
28class FriendListJobPrivate;
29
30/// Get a list of friends of the user
31class LIBKFBAPI_EXPORT FriendListJob : public FacebookGetJob
32{
33 Q_OBJECT
34public:
35 explicit FriendListJob(const QString &accessToken, QObject *parent = 0);
36 virtual ~FriendListJob();
37 QList<UserInfo> friends() const;
38
39protected:
40 virtual void handleData(const QVariant &data);
41
42private:
43 FriendListJobPrivate * const d_ptr;
44 Q_DECLARE_PRIVATE(FriendListJob)
45 Q_DISABLE_COPY(FriendListJob)
46};
47
48}
49
50#endif
51