File indexing completed on 2024-12-01 13:34:29

0001 #ifndef CONDITIONS_VISITOR_H
0002 #define CONDITIONS_VISITOR_H
0003 /* SPDX-FileCopyrightText: 2009 Michael Jansen <kde@michael-jansen.biz>
0004    SPDX-FileCopyrightText: 1999-2001 Lubos Lunak <l.lunak@kde.org>
0005 
0006    SPDX-License-Identifier: LGPL-2.0-only
0007 */
0008 
0009 #include <qglobal.h>
0010 
0011 namespace KHotKeys
0012 {
0013 class Condition_list_base;
0014 class Condition_list;
0015 class Condition;
0016 
0017 /**
0018  * @author Michael Jansen <kde@michael-jansen.biz>
0019  */
0020 class Q_DECL_EXPORT ConditionsVisitor
0021 {
0022 public:
0023     ConditionsVisitor(bool recurse = true);
0024     virtual ~ConditionsVisitor();
0025 
0026     virtual void visitCondition(Condition *condition) = 0;
0027     virtual void visitConditionsList(Condition_list *list) = 0;
0028     virtual void visitConditionsListBase(Condition_list_base *list) = 0;
0029 
0030 private:
0031     bool _recurse;
0032 
0033 }; // class ConditionsVisitor
0034 
0035 } // namespace KHotKeys
0036 
0037 #endif /* #ifndef CONDITIONS_VISITOR_H */