digiKam
Loading...
Searching...
No Matches
undocache.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 : 2005-02-05
7 * Description : undo cache manager for image editor.
8 *
9 * SPDX-FileCopyrightText: 2005 by Renchi Raju <renchi dot raju at gmail dot com>
10 * SPDX-FileCopyrightText: 2005 by Joern Ahrens <joern dot ahrens at kdemail dot net>
11 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19// Local includes
20
21#include "dimg.h"
22#include "digikam_export.h"
23
24namespace Digikam
25{
26
27class DIGIKAM_EXPORT UndoCache
28{
29
30public:
31
32 explicit UndoCache();
33 ~UndoCache();
34
38 void clear();
39
43 void clearFrom(int level);
44
48 bool putData(int level, const DImg& img) const;
49
53 DImg getData(int level) const;
54
55private:
56
57 // Disable
58 UndoCache(const UndoCache&) = delete;
59 UndoCache& operator=(const UndoCache&) = delete;
60
61private:
62
63 class Private;
64 Private* const d = nullptr;
65};
66
67} // namespace Digikam
Definition dimg.h:52
Definition undocache.h:28
Definition datefolderview.cpp:34