author | ulf69 <ulf69> | 2004-08-10 01:34:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-10 01:34:22 (UTC) |
commit | c9d570427f3d5bead7bee1301514a2d4b82836ea (patch) (side-by-side diff) | |
tree | 8d25f388217c591b7dac1db6c26d0777e6459352 /microkde/kdeui/kcmodule.cpp | |
parent | 4f05a9fcbb9e54184aef93883886aaf865104463 (diff) | |
download | kdepimpi-c9d570427f3d5bead7bee1301514a2d4b82836ea.zip kdepimpi-c9d570427f3d5bead7bee1301514a2d4b82836ea.tar.gz kdepimpi-c9d570427f3d5bead7bee1301514a2d4b82836ea.tar.bz2 |
enhancements to configure external apps like email and phones through a
generalized interface
-rw-r--r-- | microkde/kdeui/kcmodule.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
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 @@ -35,5 +35,6 @@ public: 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) @@ -43,3 +44,4 @@ KCModule::KCModule(QWidget *parent, const char *name, const QStringList &) d->_useRootOnlyMsg = true; -/*US + d->_prefs = prefs; +/*US d->_instance = new KInstance(name); @@ -50,3 +52,3 @@ KCModule::KCModule(QWidget *parent, const char *name, const QStringList &) d->_instance = new KInstance("kcmunnamed"); -*/ +*/ d->_hasOwnInstance = true; @@ -73,3 +75,3 @@ KCModule::~KCModule() delete d->_instance; -*/ +*/ delete d; @@ -96,2 +98,8 @@ bool KCModule::useRootOnlyMsg() const } + +KPrefs* KCModule::getPreferences() +{ + return d->_prefs; +} + /*US |