Akonadi

cachepolicy.h
1 /*
2  Copyright (c) 2008 Volker Krause <[email protected]>
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_CACHEPOLICY_H
21 #define AKONADI_CACHEPOLICY_H
22 
23 #include "akonadicore_export.h"
24 
25 #include <QSharedDataPointer>
26 #include <QStringList>
27 
28 namespace Akonadi
29 {
30 
72 class AKONADICORE_EXPORT CachePolicy
73 {
74 public:
78  CachePolicy();
79 
83  CachePolicy(const CachePolicy &other);
84 
88  ~CachePolicy();
89 
93  bool inheritFromParent() const;
94 
98  void setInheritFromParent(bool inherit);
99 
103  Q_REQUIRED_RESULT QStringList localParts() const;
104 
108  void setLocalParts(const QStringList &parts);
109 
114  Q_REQUIRED_RESULT int cacheTimeout() const;
115 
120  void setCacheTimeout(int timeout);
121 
125  Q_REQUIRED_RESULT int intervalCheckTime() const;
126 
131  void setIntervalCheckTime(int time);
132 
137  Q_REQUIRED_RESULT bool syncOnDemand() const;
138 
144  void setSyncOnDemand(bool enable);
145 
150  CachePolicy &operator=(const CachePolicy &other);
151 
156  Q_REQUIRED_RESULT bool operator==(const CachePolicy &other) const;
157 
158 private:
159  //@cond PRIVATE
160  class Private;
162  //@endcond
163 };
164 
165 }
166 
170 AKONADICORE_EXPORT QDebug operator<<(QDebug, const Akonadi::CachePolicy &);
171 
172 #endif
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Represents the caching policy for a collection.
Definition: cachepolicy.h:72
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 22:46:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.