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

« back to all changes in this revision

Viewing changes to khotkeys/libkhotkeysprivate/actions/action_visitor.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
#ifndef ACTION_VISITOR_H
 
2
#define ACTION_VISITOR_H
 
3
/**
 
4
 * Copyright (C) 2009 Michael Jansen <kde@michael-jansen.biz>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public License
 
17
 * along with this library; see the file COPYING.LIB. If not, write to
 
18
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
 * Boston, MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
namespace KHotKeys {
 
23
 
 
24
class Action;
 
25
class ActionList;
 
26
class ActivateWindowAction;
 
27
class CommandUrlAction;
 
28
class DBusAction;
 
29
class KeyboardInputAction;
 
30
class MenuEntryAction;
 
31
 
 
32
/**
 
33
 * @author Michael Jansen <kde@michael-jansen.biz>
 
34
 */
 
35
class ActionVisitor
 
36
    {
 
37
public:
 
38
    ActionVisitor();
 
39
    virtual ~ActionVisitor();
 
40
 
 
41
private:
 
42
 
 
43
    virtual void visit(Action*)= 0
 
44
    virtual void visit(ActionList*)= 0
 
45
    virtual void visit(ActivateWindowAction*)= 0
 
46
    virtual void visit(CommandUrlAction*)= 0
 
47
    virtual void visit(DBusAction*)= 0
 
48
    virtual void visit(KeyboardInputAction*)= 0
 
49
    virtual void visit(MenuEntryAction*)= 0
 
50
 
 
51
    virtual void visit(Action*) const= 0
 
52
    virtual void visit(ActionList*) const= 0
 
53
    virtual void visit(ActivateWindowAction*) const= 0
 
54
    virtual void visit(CommandUrlAction*) const= 0
 
55
    virtual void visit(DBusAction*) const= 0
 
56
    virtual void visit(KeyboardInputAction*) const= 0
 
57
    virtual void visit(MenuEntryAction*) const= 0
 
58
    }; // ActionVisitor
 
59
 
 
60
 
 
61
} // namespace KHotKeys
 
62
 
 
63
#endif /* ACTION_VISITOR_H */
 
64