digiKam
Loading...
Searching...
No Matches
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
* SPDX-FileCopyrightText: 2005-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10
*
11
* SPDX-License-Identifier: GPL-2.0-or-later
12
*
13
* ============================================================ */
14
15
#pragma once
16
17
// Qt includes
18
19
#include <QString>
20
21
// Local includes
22
23
#include "
digikam_export.h
"
24
#include "
dimg.h
"
25
26
namespace
Digikam
27
{
28
29
class
DIGIKAM_EXPORT
LoadingCacheInterface
30
{
31
public
:
32
33
static
void
initialize();
34
38
static
void
cleanUp();
39
44
static
void
fileChanged(
const
QString& filePath,
bool
notify =
true
);
45
52
static
void
connectToSignalFileChanged(QObject*
const
object
,
const
char
* slot);
53
59
static
void
cleanCache();
60
65
static
void
cleanThumbnailCache();
66
70
static
void
putImage(
const
QString& filePath,
const
DImg
& img);
71
76
static
void
setCacheOptions(
int
cacheSize);
77
78
private
:
79
80
explicit
LoadingCacheInterface
();
81
~LoadingCacheInterface
();
82
83
// Disable
84
LoadingCacheInterface
(
const
LoadingCacheInterface
&) =
delete
;
85
LoadingCacheInterface
& operator=(
const
LoadingCacheInterface
&) =
delete
;
86
};
87
88
}
// namespace Digikam
Digikam::DImg
Definition
dimg.h:52
Digikam::LoadingCacheInterface
Definition
loadingcacheinterface.h:30
digikam_export.h
dimg.h
Digikam
Definition
datefolderview.cpp:34
core
libs
threadimageio
fileio
loadingcacheinterface.h
Generated by
1.9.8