~cyberspace/akonadi-facebook/akonadi-facebook-afiestas

« back to all changes in this revision

Viewing changes to libkfacebook/postlistjob.h

  • Committer: Pankaj Bhambhani
  • Date: 2011-07-14 14:59:36 UTC
  • Revision ID: git-v1:8c515c61db01367d121440df1be8bd535b10bdde
Added Files for Manipulating Facebook Post Object

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2011 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
 
#ifndef POSTSLISTJOB_H
20
 
#define POSTSLISTJOB_H
21
 
 
22
 
#include "listjobbase.h"
23
 
#include "postinfo.h"
24
 
 
25
 
class LIBKFACEBOOK_EXPORT PostsListJob : public ListJobBase
26
 
{
27
 
  Q_OBJECT
28
 
  public:
29
 
    PostsListJob( const QString &accessToken );
30
 
    QList<PostInfoPtr> posts() const;
31
 
    int numEntries() const;
32
 
 
33
 
  protected:
34
 
    void handleItem( const QVariant& item );
35
 
 
36
 
  private:
37
 
    QList<PostInfoPtr> mPosts;
38
 
};
39
 
 
40
 
#endif