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

« back to all changes in this revision

Viewing changes to khotkeys/libkhotkeysprivate/conditions/conditions_list.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 CONDITIONS_LIST_H
 
2
#define CONDITIONS_LIST_H
 
3
/* Copyright (C) 2009 Michael Jansen <kde@michael-jansen.biz>
 
4
   Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
 
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 version 2 as published by the Free Software Foundation.
 
9
 
 
10
   This library is distributed in the hope that it will be useful,
 
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
   Library General Public License for more details.
 
14
 
 
15
   You should have received a copy of the GNU Library General Public License
 
16
   along with this library; see the file COPYING.LIB.  If not, write to
 
17
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
   Boston, MA 02110-1301, USA.
 
19
*/
 
20
 
 
21
 
 
22
#include "conditions/conditions_list_base.h"
 
23
 
 
24
#include <QtCore/QString>
 
25
 
 
26
class KConfigGroup;
 
27
 
 
28
namespace KHotKeys {
 
29
 
 
30
class ActionDataBase;
 
31
 
 
32
/**
 
33
 * @author Michael Jansen <kde@michael-jansen.biz>
 
34
 */
 
35
class KDE_EXPORT Condition_list
 
36
    : public Condition_list_base
 
37
    {
 
38
    typedef Condition_list_base base;
 
39
    public:
 
40
        Condition_list( const QString& comment_P, ActionDataBase* parent = NULL );
 
41
        Condition_list( KConfigGroup& cfg_P, ActionDataBase* data_P );
 
42
        void cfg_write( KConfigGroup& cfg_P ) const;
 
43
        virtual Condition_list* copy() const;
 
44
        virtual bool match() const;
 
45
        const QString& comment() const;
 
46
        void set_data( ActionDataBase* data_P );
 
47
        virtual void updated() const;
 
48
        virtual const QString description() const;
 
49
 
 
50
        virtual void visit(ConditionsVisitor *visitor);
 
51
    private:
 
52
        QString _comment;
 
53
        ActionDataBase* data;
 
54
    };
 
55
 
 
56
 
 
57
} // namespace KHotKeys
 
58
 
 
59
#endif /* #ifndef CONDITIONS_LIST_H */