From cf7175c9a6b96cd11fb7f3cba459f5223aa4aacb Mon Sep 17 00:00:00 2001 From: ulf69 Date: Wed, 14 Jul 2004 14:52:15 +0000 Subject: added changes to support the kdirwatch implementation --- (limited to 'kabc/plugins/dir/resourcedir.cpp') diff --git a/kabc/plugins/dir/resourcedir.cpp b/kabc/plugins/dir/resourcedir.cpp index 3cb5179..7825c6f 100644 --- a/kabc/plugins/dir/resourcedir.cpp +++ b/kabc/plugins/dir/resourcedir.cpp @@ -112,11 +112,9 @@ ResourceDir::ResourceDir( const KConfig *config ) qDebug("ResourceFile::init format unknown !!! %s ", mFormatName.latin1()); */ -/*US we have no KDirWatch. SO simulate the signals from inside the apropriate methods connect( &mDirWatch, SIGNAL( dirty(const QString&) ), SLOT( pathChanged() ) ); connect( &mDirWatch, SIGNAL( created(const QString&) ), SLOT( pathChanged() ) ); connect( &mDirWatch, SIGNAL( deleted(const QString&) ), SLOT( pathChanged() ) ); -*/ setPath( path ); } @@ -298,19 +296,16 @@ void ResourceDir::unlock( const QString &path ) void ResourceDir::setPath( const QString &path ) { -/*US ToDo: no synchronization so far. Has to be changed in the future mDirWatch.stopScan(); mDirWatch.removeDir( mPath ); -*/ + mPath = path; -/*US ToDo: no synchronization so far. Has to be changed in the future mDirWatch.addDir( mPath, true ); mDirWatch.startScan(); -*/ //US simulate KDirWatch event - pathChanged(); +//US pathChanged(); } -- cgit v0.9.0.2