1 | /* Copyright 2011 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_ALLEVENTSLISTJOB_H |
21 | #define KFBAPI_ALLEVENTSLISTJOB_H |
22 | |
23 | #include "pagedlistjob.h" |
24 | #include "eventinfo.h" |
25 | #include "libkfbapi_export.h" |
26 | |
27 | namespace KFbAPI { |
28 | |
29 | class AllEventsListJobPrivate; |
30 | |
31 | class LIBKFBAPI_EXPORT AllEventsListJob : public PagedListJob |
32 | { |
33 | Q_OBJECT |
34 | public: |
35 | explicit AllEventsListJob(const QString &accessToken, QObject *parent = 0); |
36 | QList<EventInfo> allEvents() const; |
37 | |
38 | protected: |
39 | virtual void appendItems(const ListJobBase *job); |
40 | virtual ListJobBase* createJob(const KUrl &prev, const KUrl &next); |
41 | virtual bool shouldStartNewJob(const KUrl &prev, const KUrl &next); |
42 | |
43 | private: |
44 | Q_DECLARE_PRIVATE(AllEventsListJob) |
45 | }; |
46 | |
47 | } |
48 | |
49 | #endif |
50 | |