dtor first
[personal-kdebase.git] / workspace / kwin / clients / oxygen / config / config.h
blob467a918b16c820e926f8a78b94187319c0c3d761
1 /*
2 * Oxygen KWin client configuration module
4 * Copyright (C) 2008 Lubos Lunak <l.lunak@kde.org>
6 * Based on the Quartz configuration module,
7 * Copyright (c) 2001 Karol Szwed <gallium@kde.org>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the license, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; see the file COPYING. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
25 #ifndef OXYGEN_CONFIG_H
26 #define OXYGEN_CONFIG_H
28 #include <kconfig.h>
30 #include "ui_oxygenconfig.h"
32 namespace Oxygen {
34 class OxygenConfigUI : public QWidget, public Ui::OxygenConfigUI
36 public:
37 OxygenConfigUI( QWidget *parent ) : QWidget( parent )
39 setupUi( this );
44 class OxygenConfig: public QObject
46 Q_OBJECT
47 public:
48 OxygenConfig( KConfig* conf, QWidget* parent );
49 ~OxygenConfig();
50 // These public signals/slots work similar to KCM modules
51 signals:
52 void changed();
53 public slots:
54 void load( const KConfigGroup& conf );
55 void save( KConfigGroup& conf );
56 void defaults();
57 private:
58 OxygenConfigUI *ui;
59 KConfig *c;
62 } //namespace Oxygen
64 #endif