Changeset View
Changeset View
Standalone View
Standalone View
src/common/etagcache.h
Show All 12 Lines | 1 | /* | |||
---|---|---|---|---|---|
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef KDAV_ETAGCACHE_H | 18 | #ifndef KDAV_ETAGCACHE_H | ||
19 | #define KDAV_ETAGCACHE_H | 19 | #define KDAV_ETAGCACHE_H | ||
20 | 20 | | |||
21 | #include "kpimkdav_export.h" | 21 | #include "kdav_export.h" | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QStringList> | 24 | #include <QStringList> | ||
25 | 25 | | |||
26 | #include <memory> | 26 | #include <memory> | ||
27 | 27 | | |||
28 | namespace KDAV { | 28 | namespace KDAV { | ||
29 | class EtagCachePrivate; | 29 | class EtagCachePrivate; | ||
30 | 30 | | |||
31 | /** | 31 | /** | ||
32 | * @short A helper class to cache etags. | 32 | * @short A helper class to cache etags. | ||
33 | * | 33 | * | ||
34 | * The EtagCache caches the remote ids and etags of all items | 34 | * The EtagCache caches the remote ids and etags of all items | ||
35 | * in a given collection. This cache is needed to find | 35 | * in a given collection. This cache is needed to find | ||
36 | * out which items have been changed in the backend and have to | 36 | * out which items have been changed in the backend and have to | ||
37 | * be refetched on the next call of ResourceBase::retrieveItems() | 37 | * be refetched on the next call of ResourceBase::retrieveItems() | ||
38 | */ | 38 | */ | ||
39 | class KPIMKDAV_EXPORT EtagCache : public QObject | 39 | class KDAV_EXPORT EtagCache : public QObject | ||
40 | { | 40 | { | ||
41 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | 42 | | |||
43 | public: | 43 | public: | ||
44 | /** | 44 | /** | ||
45 | * Creates a new etag cache and populates it with the ETags | 45 | * Creates a new etag cache and populates it with the ETags | ||
46 | * of items found in @p collection. | 46 | * of items found in @p collection. | ||
47 | */ | 47 | */ | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |