~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to khotkeys/libkhotkeysprivate/action_data/generic_action_data.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 
 
3
 KHotKeys
 
4
 
 
5
 Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
 
6
 
 
7
 Distributed under the terms of the GNU General Public License version 2.
 
8
 
 
9
****************************************************************************/
 
10
 
 
11
#ifndef GENERIC_ACTION_DATA_H
 
12
#define GENERIC_ACTION_DATA_H
 
13
 
 
14
#include "action_data.h"
 
15
 
 
16
 
 
17
namespace KHotKeys {
 
18
 
 
19
class ActionDataGroup;
 
20
 
 
21
class KDE_EXPORT Generic_action_data
 
22
    : public ActionData
 
23
    {
 
24
    typedef ActionData base;
 
25
 
 
26
    public:
 
27
 
 
28
        Generic_action_data(
 
29
                ActionDataGroup* parent_P,
 
30
                const QString& name_P = QString(),
 
31
                const QString& comment_P = QString(),
 
32
                Trigger_list* triggers_P = NULL,
 
33
                Condition_list* conditions_P = NULL,
 
34
                ActionList* actions_P = NULL);
 
35
 
 
36
        ~Generic_action_data();
 
37
 
 
38
        /**
 
39
         * Visitor pattern
 
40
         * @reimp
 
41
         */
 
42
        virtual void accept(ActionDataVisitor *visitor);
 
43
        virtual void accept(ActionDataConstVisitor *visitor) const;
 
44
 
 
45
        // CHECKME: Why this?
 
46
        using ActionDataBase::set_conditions; // make public
 
47
        using ActionData::add_trigger; // make public
 
48
        using ActionData::add_triggers; // make public
 
49
        using ActionData::set_triggers; // make public
 
50
        using ActionData::add_action; // make public
 
51
        using ActionData::add_actions; // make public
 
52
        using ActionData::set_actions; // make public
 
53
    };
 
54
 
 
55
} // namespace KHotKeys
 
56
 
 
57
#endif