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

« back to all changes in this revision

Viewing changes to kwin/kcmkwin/kwinrules/kcm.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
/*
 
2
 * Copyright (c) 2004 Lubos Lunak <l.lunak@kde.org>
 
3
 *
 
4
 *  This program is free software; you can redistribute it and/or modify
 
5
 *  it under the terms of the GNU General Public License as published by
 
6
 *  the Free Software Foundation; either version 2 of the License, or
 
7
 *  (at your option) any later version.
 
8
 *
 
9
 *  This program is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *  GNU General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU General Public License
 
15
 *  along with this program; if not, write to the Free Software
 
16
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 */
 
18
 
 
19
 
 
20
#ifndef __KCM_H__
 
21
#define __KCM_H__
 
22
 
 
23
#include <kcmodule.h>
 
24
#include <kconfig.h>
 
25
 
 
26
class KConfig;
 
27
 
 
28
namespace KWin
 
29
{
 
30
 
 
31
class KCMRulesList;
 
32
 
 
33
class KCMRules
 
34
    : public KCModule
 
35
{
 
36
    Q_OBJECT
 
37
public:
 
38
    KCMRules(QWidget *parent, const QVariantList &args);
 
39
    virtual void load();
 
40
    virtual void save();
 
41
    virtual void defaults();
 
42
    virtual QString quickHelp() const;
 
43
protected slots:
 
44
    void moduleChanged(bool state);
 
45
private:
 
46
    KCMRulesList* widget;
 
47
    KConfig config;
 
48
};
 
49
 
 
50
} // namespace
 
51
 
 
52
#endif