digiKam
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  * Copyright (C) 2009-2010 by Holger Foerster <hamsi2k at freenet dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DB_ENGINE_ACTION_TYPE_H
26 #define DIGIKAM_DB_ENGINE_ACTION_TYPE_H
27 
28 // Qt includes
29 
30 #include <QVariant>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
44 class DIGIKAM_EXPORT DbEngineActionType
45 {
46 public:
47 
49  DbEngineActionType(const DbEngineActionType& actionType);
51 
52  static DbEngineActionType value(const QVariant& value);
53  static DbEngineActionType fieldEntry(const QVariant& actionValue);
54 
58  QVariant getActionValue();
59 
63  void setActionValue(const QVariant& actionValue);
64 
69  bool isValue() const;
70 
76  void setValue(bool isValue);
77 
78 private:
79 
80  // Disable
81  DbEngineActionType& operator=(const DbEngineActionType&) = delete;
82 
83  class Private;
84  Private* const d;
85 };
86 
87 } // namespace Digikam
88 
89 Q_DECLARE_METATYPE(Digikam::DbEngineActionType)
90 
91 #endif // DIGIKAM_DB_ENGINE_ACTION_TYPE_H
Definition: dbengineactiontype.h:45
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43