• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • sources
  • kde-4.12
  • kdepimlibs
  • akonadi
collectionfetchjob.h
1 /*
2  Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  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 the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_COLLECTIONFETCHJOB_H
21 #define AKONADI_COLLECTIONFETCHJOB_H
22 
23 #include "akonadi_export.h"
24 #include <akonadi/collection.h>
25 #include <akonadi/job.h>
26 
27 namespace Akonadi {
28 
29 class CollectionFetchScope;
30 class CollectionFetchJobPrivate;
31 
53 class AKONADI_EXPORT CollectionFetchJob : public Job
54 {
55  Q_OBJECT
56 
57  public:
61  enum Type {
62  Base,
63  FirstLevel,
64  Recursive,
65  NonOverlappingRoots
66  };
67 
80  explicit CollectionFetchJob( const Collection &collection, Type type = FirstLevel, QObject *parent = 0 );
81 
90  explicit CollectionFetchJob( const Collection::List &collections, QObject *parent = 0 );
91 
103  CollectionFetchJob( const Collection::List &collections, Type type, QObject *parent = 0 );
104 
112  explicit CollectionFetchJob( const QList<Collection::Id> &collections, Type type = Base, QObject *parent = 0 );
113 
117  virtual ~CollectionFetchJob();
118 
122  Collection::List collections() const;
123 
130  AKONADI_DEPRECATED void setResource( const QString &resource );
131 
137  AKONADI_DEPRECATED void includeUnsubscribed( bool include = true );
138 
146  AKONADI_DEPRECATED void includeStatistics( bool include = true );
147 
160  void setFetchScope( const CollectionFetchScope &fetchScope );
161 
175  CollectionFetchScope &fetchScope();
176 
177  Q_SIGNALS:
183  void collectionsReceived( const Akonadi::Collection::List &collections );
184 
185  protected:
186  virtual void doStart();
187  virtual void doHandleResponse( const QByteArray &tag, const QByteArray &data );
188 
189  protected Q_SLOTS:
190  //@cond PRIVATE
191  void slotResult( KJob* job );
192  //@endcond
193 
194  private:
195  Q_DECLARE_PRIVATE( CollectionFetchJob )
196 
197  //@cond PRIVATE
198  Q_PRIVATE_SLOT( d_func(), void timeout() )
199  Q_PRIVATE_SLOT( d_func(), void subJobCollectionReceived(const Akonadi::Collection::List &) )
200  //@endcond
201 };
202 
203 }
204 
205 #endif
Akonadi::CollectionFetchScope
Specifies which parts of a collection should be fetched from the Akonadi storage. ...
Definition: collectionfetchscope.h:68
Akonadi::CollectionFetchJob::Type
Type
Describes the type of fetch depth.
Definition: collectionfetchjob.h:61
Akonadi::CollectionFetchJob::FirstLevel
Only list direct sub-collections of the base collection.
Definition: collectionfetchjob.h:63
Akonadi::Collection
Represents a collection of PIM items.
Definition: collection.h:75
Akonadi::CollectionFetchJob
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:53
Akonadi::Job
Base class for all actions in the Akonadi storage.
Definition: job.h:86
Akonadi::CollectionFetchJob::Base
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Akonadi::CollectionFetchJob::Recursive
List all sub-collections.
Definition: collectionfetchjob.h:64
Akonadi::Collection::List
QList< Collection > List
Describes a list of collections.
Definition: collection.h:81
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal