digiKam
Loading...
Searching...
No Matches
dbengineactiontype.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 : 2010-04-20
7 * Description : Database Engine container to wrap data types
8 *
9 * SPDX-FileCopyrightText: 2009-2010 by Holger Foerster <hamsi2k at freenet dot de>
10 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QVariant>
21
22// Local includes
23
24#include "digikam_export.h"
25
26namespace Digikam
27{
34class DIGIKAM_EXPORT DbEngineActionType
35{
36public:
37
39 DbEngineActionType(const DbEngineActionType& actionType);
41
42 static DbEngineActionType value(const QVariant& value);
43 static DbEngineActionType fieldEntry(const QVariant& actionValue);
44
48 QVariant getActionValue();
49
53 void setActionValue(const QVariant& actionValue);
54
59 bool isValue() const;
60
66 void setValue(bool isValue);
67
68private:
69
70 // Disable
71 DbEngineActionType& operator=(const DbEngineActionType&) = delete;
72
73 class Private;
74 Private* const d = nullptr;
75};
76
77} // namespace Digikam
78
79Q_DECLARE_METATYPE(Digikam::DbEngineActionType)
Definition dbengineactiontype.h:35
qulonglong value
Definition itemviewutilities.cpp:585
Definition datefolderview.cpp:34