~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/database/dbactiontype.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-06-18 21:58:46 UTC
  • mfrom: (1.2.29 upstream) (3.2.13 sid)
  • Revision ID: james.westby@ubuntu.com-20100618215846-c95bk5aoysmu786d
Tags: 2:1.3.0-0ubuntu1
* Merge with Debian unstable, remaining changes:
  - Export .pot name and copy to plugins in debian/rules
  - Enable Nepomuk support in Digikam
    - Add shared-desktop-ontologies to build depends
* New upstream release:
  - Remove digikam-1.2.0-kde232628.patch fixed by upstream
  - Add mysql-server-5.1 to buil-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2010-04-20
 
7
 * Description : DBActionType which wrappes other data types
 
8
 *
 
9
 * Copyright (C) 2009-2010 by Holger Foerster <hamsi2k at freenet 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
// Local includes
 
25
 
 
26
#include "dbactiontype.h"
 
27
 
 
28
namespace Digikam
 
29
{
 
30
 
 
31
DBActionType::DBActionType()
 
32
{
 
33
}
 
34
 
 
35
DBActionType::DBActionType(const DBActionType &actionType)
 
36
{
 
37
        m_isValue               = actionType.m_isValue;
 
38
        m_ActionValue   = actionType.m_ActionValue;
 
39
}
 
40
DBActionType::~DBActionType()
 
41
{
 
42
        m_ActionValue.~QVariant();
 
43
}
 
44
 
 
45
QVariant DBActionType::getActionValue()
 
46
{
 
47
        return m_ActionValue;
 
48
}
 
49
void DBActionType::setActionValue(QVariant actionValue)
 
50
{
 
51
        m_ActionValue = actionValue;
 
52
}
 
53
bool DBActionType::isValue() const
 
54
{
 
55
        return m_isValue;
 
56
}
 
57
void DBActionType::setValue(bool isValue)
 
58
{
 
59
        m_isValue = isValue;
 
60
}
 
61
 
 
62
}  // namespace Digikam