From c9d570427f3d5bead7bee1301514a2d4b82836ea Mon Sep 17 00:00:00 2001 From: ulf69 Date: Tue, 10 Aug 2004 01:34:22 +0000 Subject: enhancements to configure external apps like email and phones through a generalized interface --- (limited to 'microkde/kdeui/kcmodule.cpp') diff --git a/microkde/kdeui/kcmodule.cpp b/microkde/kdeui/kcmodule.cpp index 915cd0f..f646db3 100644 --- a/microkde/kdeui/kcmodule.cpp +++ b/microkde/kdeui/kcmodule.cpp @@ -33,22 +33,24 @@ public: QString _rootOnlyMsg; bool _useRootOnlyMsg; bool _hasOwnInstance; + KPrefs* _prefs; }; -KCModule::KCModule(QWidget *parent, const char *name, const QStringList &) +KCModule::KCModule(KPrefs* prefs, QWidget *parent, const char *name, const QStringList &) : QWidget(parent, name), _btn(Help|Default|Apply) { kdDebug() << "KCModule " << name << endl; d = new KCModulePrivate; d->_useRootOnlyMsg = true; -/*US + d->_prefs = prefs; +/*US d->_instance = new KInstance(name); if (name && strlen(name)) { d->_instance = new KInstance(name); KGlobal::locale()->insertCatalogue(name); } else d->_instance = new KInstance("kcmunnamed"); -*/ +*/ d->_hasOwnInstance = true; //US KGlobal::setActiveInstance(this->instance()); } @@ -71,7 +73,7 @@ KCModule::~KCModule() /*US if (d->_hasOwnInstance) delete d->_instance; -*/ +*/ delete d; } @@ -94,6 +96,12 @@ bool KCModule::useRootOnlyMsg() const { return d->_useRootOnlyMsg; } + +KPrefs* KCModule::getPreferences() +{ + return d->_prefs; +} + /*US KInstance *KCModule::instance() const { -- cgit v0.9.0.2