summaryrefslogtreecommitdiffstats
path: root/kcontrol/accessibility/accessibility.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/accessibility/accessibility.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/accessibility/accessibility.h')
-rw-r--r--kcontrol/accessibility/accessibility.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/kcontrol/accessibility/accessibility.h b/kcontrol/accessibility/accessibility.h
new file mode 100644
index 000000000..ad94dcdcc
--- /dev/null
+++ b/kcontrol/accessibility/accessibility.h
@@ -0,0 +1,71 @@
+/****************************************************************************
+ accessibility.h
+ KDE Control Accessibility module to control Bell, Keyboard and ?Mouse?
+ -------------------
+ Copyright : (c) 2000 Matthias Hölzer-Klüpfel
+ -------------------
+ Original Author: Matthias Hölzer-Klüpfel
+ Contributors: José Pablo Ezequiel "Pupeno" Fernández <pupeno@kde.org>
+ Current Maintainer: José Pablo Ezequiel "Pupeno" Fernández <pupeno@kde.org>
+ ****************************************************************************/
+
+/****************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ****************************************************************************/
+
+#ifndef _ACCESSIBILITY_H_
+#define _ACCESSIBILITY_H_
+
+#include <kdebug.h>
+
+#include "accessibilityconfigwidget.h"
+
+class AccessibilityConfig : public AccessibilityConfigWidget {
+ Q_OBJECT
+
+ public:
+ /**
+ * Constructor
+ */
+ AccessibilityConfig(QWidget *parent = 0L, const char *name = 0L, const QStringList &foo = QStringList());
+
+ /**
+ * Destructor
+ */
+ virtual ~AccessibilityConfig();
+
+ /**
+ * This method is invoked whenever the module should read its
+ * configuration (most of the times from a config file) and update the
+ * user interface. This happens when the user clicks the "Reset" button in
+ * the control center, to undo all of his changes and restore the currently
+ * valid settings. NOTE that this is not called after the modules is loaded,
+ * so you probably want to call this method in the constructor.
+ */
+ void load();
+ void load( bool useDefaults );
+
+ /**
+ * This function gets called when the user wants to save the settings in
+ * the user interface, updating the config files or wherever the
+ * configuration is stored. The method is called when the user clicks "Apply"
+ * or "Ok".
+ */
+ void save();
+
+ /**
+ * This function is called to set the settings in the module to sensible
+ * default values. It gets called when hitting the "Default" button. The
+ * default values should probably be the same as the ones the application
+ * uses when started without a config file.
+ */
+ void defaults();
+
+};
+
+#endif // _ACCESSIBILITY_H_