00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_CACHEPOLICY_H
00021 #define AKONADI_CACHEPOLICY_H
00022
00023 #include "akonadi_export.h"
00024
00025 #include <QtCore/QSharedDataPointer>
00026 #include <QtCore/QStringList>
00027
00028 namespace Akonadi {
00029
00071 class AKONADI_EXPORT CachePolicy
00072 {
00073 public:
00077 CachePolicy();
00078
00082 CachePolicy( const CachePolicy &other );
00083
00087 ~CachePolicy();
00088
00092 bool inheritFromParent() const;
00093
00097 void setInheritFromParent( bool inherit );
00098
00102 QStringList localParts() const;
00103
00107 void setLocalParts( const QStringList &parts );
00108
00113 int cacheTimeout() const;
00114
00119 void setCacheTimeout( int timeout );
00120
00124 int intervalCheckTime() const;
00125
00130 void setIntervalCheckTime( int time );
00131
00136 bool syncOnDemand() const;
00137
00143 void setSyncOnDemand( bool enable );
00144
00148 CachePolicy& operator=( const CachePolicy &other );
00149
00153 bool operator==( const CachePolicy &other ) const;
00154
00155 private:
00156
00157 class Private;
00158 QSharedDataPointer<Private> d;
00159
00160 };
00161
00162 }
00163
00167 AKONADI_EXPORT QDebug operator<<( QDebug, const Akonadi::CachePolicy& );
00168
00169 #endif