Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kcontrol / accessibility / accessibility.h
blobd5d50a34d938b800c18701f9edfd9ec0c752e89f
1 /****************************************************************************
2 accessibility.h
3 KDE Control Accessibility module to control Bell, Keyboard and ?Mouse?
4 -------------------
5 Copyright : (c) 2000 Matthias Hölzer-Klüpfel
6 -------------------
7 Original Author: Matthias Hölzer-Klüpfel
8 Contributors: José Pablo Ezequiel "Pupeno" Fernández <pupeno@kde.org>
9 Current Maintainer: José Pablo Ezequiel "Pupeno" Fernández <pupeno@kde.org>
10 ****************************************************************************/
12 /****************************************************************************
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 ****************************************************************************/
21 #ifndef _ACCESSIBILITY_H_
22 #define _ACCESSIBILITY_H_
24 #include <kdebug.h>
25 #include <kcmodule.h>
26 #include <kcomponentdata.h>
27 #include "ui_accessibilityconfigwidget.h"
29 class AccessibilityConfigWidget : public QWidget, public Ui::AccessibilityConfigWidget
31 public:
32 AccessibilityConfigWidget( QWidget *parent ) : QWidget( parent ) {
33 setupUi( this );
37 class AccessibilityConfig : public KCModule {
38 Q_OBJECT
40 public:
41 /**
42 * Constructor
44 explicit AccessibilityConfig(QWidget *parent, const QVariantList &foo = QVariantList());
46 /**
47 * Destructor
49 virtual ~AccessibilityConfig();
51 /**
52 * This method is invoked whenever the module should read its
53 * configuration (most of the times from a config file) and update the
54 * user interface. This happens when the user clicks the "Reset" button in
55 * the control center, to undo all of his changes and restore the currently
56 * valid settings. NOTE that this is not called after the modules is loaded,
57 * so you probably want to call this method in the constructor.
59 void load();
61 /**
62 * This function gets called when the user wants to save the settings in
63 * the user interface, updating the config files or wherever the
64 * configuration is stored. The method is called when the user clicks "Apply"
65 * or "Ok".
67 void save();
69 /**
70 * This function is called to set the settings in the module to sensible
71 * default values. It gets called when hitting the "Default" button. The
72 * default values should probably be the same as the ones the application
73 * uses when started without a config file.
75 void defaults();
76 private slots:
77 void slotChanged();
78 void updateFlashScreenColor();
80 private:
81 AccessibilityConfigWidget *widget;
84 #endif // _ACCESSIBILITY_H_