[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/accessibility [POSSIBLY UNSAFE]
From: José Pablo Ezequiel Fernández <pupeno () kde ! org>
Date: 2002-12-19 7:52:11
[Download RAW message or body]
CVS commit by pupeno:
Now it is *supoused* to use KGenericFactory.
M +26 -23 accessibility.cpp 1.6 [POSSIBLY UNSAFE: gets]
--- kdebase/kcontrol/accessibility/accessibility.cpp #1.5:1.6
@@ -49,4 +49,5 @@
#include <kaboutdata.h>
#include <kdebug.h>
+#include <kgenericfactory.h>
#include "accessibilityconfigwidget.h"
@@ -450,5 +451,5 @@ QString KAccessConfig::quickHelp() const
const KAboutData* KAccessConfig::aboutData() const{
KAboutData *about =
- new KAboutData(I18N_NOOP("kaccess"), I18N_NOOP("KDE Accessibility Tool"),
+ new KAboutData(I18N_NOOP("kcmaccessiblity"), I18N_NOOP("KDE Accessibility Tool"),
0, 0, KAboutData::License_GPL,
I18N_NOOP("(c) 2000, Matthias Hoelzer-Kluepfel"));
@@ -460,25 +461,27 @@ const KAboutData* KAccessConfig::aboutDa
}
-//K_EXPORT_COMPONENT_FACTORY( libmyplugin, KGenericFactory<MyPlugin> );
-
-extern "C"
-{
- KCModule *create_access(QWidget *parent, const char *name)
- {
- return new KAccessConfig(parent, name);
- };
-
- /* This one gets called by kcminit
+typedef KGenericFactory<KAccessConfig, QWidget> AccessibilityFactory;
+K_EXPORT_COMPONENT_FACTORY( kcm_accessiblity, AccessibilityFactory("kcmaccessibility") );
- */
- /*
- void init_access()
- {
- KConfig *config = new KConfig("kaccessrc", true, false);
- bool run = needToRunKAccessDaemon( config );
- delete config;
- if (run)
- kapp->startServiceByDesktopName("kaccess");
- }*/
-}
+// extern "C"
+// {
+// /*KCModule *create_access(QWidget *parent, const char *name)
+// {
+// return new KAccessConfig(parent, name);
+// };*/
+//
+// /* This one gets called by kcminit
+//
+// */
+// /*
+// void init_access()
+// {
+// KConfig *config = new KConfig("kaccessrc", true, false);
+// bool run = needToRunKAccessDaemon( config );
+//
+// delete config;
+// if (run)
+// kapp->startServiceByDesktopName("kaccess");
+// }*/
+// }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic