summaryrefslogtreecommitdiffabout
path: root/microkde/kresources
authorzautrix <zautrix>2005-01-11 11:09:13 (UTC)
committer zautrix <zautrix>2005-01-11 11:09:13 (UTC)
commit7738615474fd5186928e3f4dcdc58b483f7ad1a9 (patch) (side-by-side diff)
tree34bb0612d606f083a6b6591c76a8619c1c6b1edb /microkde/kresources
parent430d67f339232b6cf745840eaa2aaceb14bdc8c7 (diff)
downloadkdepimpi-7738615474fd5186928e3f4dcdc58b483f7ad1a9.zip
kdepimpi-7738615474fd5186928e3f4dcdc58b483f7ad1a9.tar.gz
kdepimpi-7738615474fd5186928e3f4dcdc58b483f7ad1a9.tar.bz2
mayn fixes
Diffstat (limited to 'microkde/kresources') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kresources/manager.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/microkde/kresources/manager.h b/microkde/kresources/manager.h
index 0e6f838..69062da 100644
--- a/microkde/kresources/manager.h
+++ b/microkde/kresources/manager.h
@@ -238,17 +238,17 @@ class Manager : private ManagerImplListener
*/
QStringList resourceNames() const
{
return mImpl->resourceNames();
}
ConfigWidget *configWidget( const QString& type, QWidget *parent = 0 )
{
- return mFactory->resourceConfigWidget( type, parent );
+ return mFactory->configWidget( type, parent );
}
/**
Creates a new resource of type @param type, with default
settings. The resource is
not added to the manager, the application has to do that.
Returns a pointer to a resource object or a null pointer
if resource type doesn't exist.
@@ -297,39 +297,37 @@ class Manager : private ManagerImplListener
void removeListener( ManagerListener<T> *listener )
{
mListeners->remove( listener );
}
virtual void resourceAdded( Resource *res )
{
- kdDebug(5650) << "Manager::resourceAdded " << res->resourceName() << endl;
T* resource = (T *)( res );
ManagerListener<T> *listener;
for ( listener = mListeners->first(); listener; listener = mListeners->next() )
listener->resourceAdded( resource );
}
virtual void resourceModified( Resource *res )
{
- kdDebug(5650) << "Manager::resourceModified " << res->resourceName() << endl;
+
T* resource = (T *)( res );
ManagerListener<T> *listener;
for ( listener = mListeners->first(); listener; listener = mListeners->next() )
listener->resourceModified( resource );
}
virtual void resourceDeleted( Resource *res )
{
- kdDebug(5650) << "Manager::resourceDeleted " << res->resourceName() << endl;
+
T* resource = (T *)( res );
ManagerListener<T> *listener;
for ( listener = mListeners->first(); listener; listener = mListeners->next() ) {
- kdDebug(5650) << "Notifying a listener to Manager..." << endl;
listener->resourceDeleted( resource );
}
}
private:
ManagerImpl *mImpl;
Factory *mFactory;
QPtrList<ManagerListener<T> > *mListeners;