digiKam
loadingcacheinterface.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-02-06
7  * Description : shared image loading and caching
8  *
9  * Copyright (C) 2005-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_LOADING_CACHE_INTERFACE_H
25 #define DIGIKAM_LOADING_CACHE_INTERFACE_H
26 
27 // Qt includes
28 
29 #include <QString>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 #include "dimg.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT LoadingCacheInterface
40 {
41 public:
42 
43  static void initialize();
44 
48  static void cleanUp();
49 
54  static void fileChanged(const QString& filePath, bool notify = true);
55 
62  static void connectToSignalFileChanged(QObject* const object, const char* slot);
63 
69  static void cleanCache();
70 
75  static void cleanThumbnailCache();
76 
80  static void putImage(const QString& filePath, const DImg& img);
81 
86  static void setCacheOptions(int cacheSize);
87 
88 private:
89 
90  explicit LoadingCacheInterface();
92 
93  // Disable
95  LoadingCacheInterface& operator=(const LoadingCacheInterface&) = delete;
96 };
97 
98 } // namespace Digikam
99 
100 #endif // DIGIKAM_LOADING_CACHE_INTERFACE_H
Definition: dimg.h:62
Definition: loadingcacheinterface.h:40
Definition: datefolderview.cpp:43