1
#ifndef WINDOW_SELECTION_INTERFACE_H
2
#define WINDOW_SELECTION_INTERFACE_H
3
/* Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
4
Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
Version 2 as published by the Free Software Foundation;
10
This program 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
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#include <QtCore/QString>
23
#include "KConfigGroup"
25
#include <QtGui/qwindowdefs.h>
27
#include <netwm_def.h>
31
struct KDE_EXPORT Window_data
33
Window_data( WId id_P );
34
QString title; // _NET_WM_NAME or WM_NAME
35
QString role; // WM_WINDOW_ROLE
36
QString wclass; // WM_CLASS
40
class KDE_EXPORT Windowdef
42
Q_DISABLE_COPY( Windowdef )
45
Windowdef( const QString& comment_P );
46
Windowdef( KConfigGroup& cfg_P );
48
const QString& comment() const;
49
void set_comment(const QString &comment);
50
virtual bool match( const Window_data& window_P ) = 0;
51
static Windowdef* create_cfg_read( KConfigGroup& cfg_P/*, ActionDataBase* data_P*/ );
52
virtual void cfg_write( KConfigGroup& cfg_P ) const = 0;
53
virtual Windowdef* copy( /*ActionDataBase* data_P*/ ) const = 0;
54
virtual const QString description() const = 0;
59
} // namespace KHotKeys
61
#endif /* #ifndef WINDOW_SELECTION_INTERFACE_H */