akonadi
collectionfetchscope.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AKONADI_COLLECTIONFETCHSCOPE_H
00022 #define AKONADI_COLLECTIONFETCHSCOPE_H
00023
00024 #include "akonadi_export.h"
00025
00026 #include <QtCore/QSharedDataPointer>
00027
00028 class QStringList;
00029
00030 namespace Akonadi {
00031
00032 class CollectionFetchScopePrivate;
00033
00066 class AKONADI_EXPORT CollectionFetchScope
00067 {
00068 public:
00072 enum AncestorRetrieval {
00073 None,
00074 Parent,
00075 All
00076 };
00077
00084 CollectionFetchScope();
00085
00089 CollectionFetchScope( const CollectionFetchScope &other );
00090
00094 ~CollectionFetchScope();
00095
00099 CollectionFetchScope &operator=( const CollectionFetchScope &other );
00100
00106 bool includeUnubscribed() const;
00107
00113 void setIncludeUnsubscribed( bool include );
00114
00120 bool includeStatistics() const;
00121
00127 void setIncludeStatistics( bool include );
00128
00134 QString resource() const;
00135
00142 void setResource( const QString &resource );
00143
00150 void setContentMimeTypes( const QStringList &mimeTypes );
00151
00157 QStringList contentMimeTypes() const;
00158
00168 void setAncestorRetrieval( AncestorRetrieval ancestorDepth );
00169
00175 AncestorRetrieval ancestorRetrieval() const;
00176
00180 bool isEmpty() const;
00181
00182 private:
00183
00184 QSharedDataPointer<CollectionFetchScopePrivate> d;
00185
00186 };
00187
00188 }
00189
00190 #endif