File indexing completed on 2024-05-19 16:31:54

0001 #ifndef WINDOW_SELECTION_LIST_H
0002 #define WINDOW_SELECTION_LIST_H
0003 /* SPDX-FileCopyrightText: 1999-2001 Lubos Lunak <l.lunak@kde.org>
0004    SPDX-FileCopyrightText: 2008 Michael Jansen <kde@michael-jansen.biz>
0005 
0006    SPDX-License-Identifier: GPL-2.0-only
0007 */
0008 
0009 #include "windows_helper/window_selection_interface.h"
0010 
0011 #include <QList>
0012 
0013 namespace KHotKeys
0014 {
0015 class Q_DECL_EXPORT Windowdef_list : public QList<Windowdef *>
0016 {
0017     Q_DISABLE_COPY(Windowdef_list)
0018 
0019 public:
0020     Windowdef_list(const QString &comment = "");
0021     Windowdef_list(KConfigGroup &cfg_P /*, ActionDataBase* data_P*/);
0022 
0023     ~Windowdef_list();
0024 
0025     void cfg_write(KConfigGroup &cfg_P) const;
0026     bool match(const Window_data &window_P) const;
0027     Windowdef_list *copy(/*ActionDataBase* data_P*/) const;
0028     // typedef QList< Windowdef* >::iterator Iterator;
0029     void set_comment(const QString &comment);
0030     const QString &comment() const;
0031 
0032 private:
0033     QString _comment;
0034 };
0035 
0036 } // namespace KHotKeys
0037 
0038 #endif /* #ifndef WINDOW_SELECTION_LIST_H */