diff options
Diffstat (limited to 'kresources/kolab/kcal/resourcekolab.cpp')
-rw-r--r-- | kresources/kolab/kcal/resourcekolab.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kresources/kolab/kcal/resourcekolab.cpp b/kresources/kolab/kcal/resourcekolab.cpp index edd94303c..44c13fd2b 100644 --- a/kresources/kolab/kcal/resourcekolab.cpp +++ b/kresources/kolab/kcal/resourcekolab.cpp @@ -68,7 +68,7 @@ static const char* journalAttachmentMimeType = "application/x-vnd.kolab.journal" static const char* incidenceInlineMimeType = "text/calendar"; -ResourceKolab::ResourceKolab( const KConfig *config ) +ResourceKolab::ResourceKolab( const TDEConfig *config ) : ResourceCalendar( config ), ResourceKolabBase( "ResourceKolab-libkcal" ), mCalendar( TQString::fromLatin1("UTC") ), mOpen( false ),mResourceChangedTimer( 0, "mResourceChangedTimer" ), mBatchAddingInProgress( false ) @@ -90,20 +90,20 @@ ResourceKolab::~ResourceKolab() } } -void ResourceKolab::loadSubResourceConfig( KConfig& config, +void ResourceKolab::loadSubResourceConfig( TDEConfig& config, const TQString& name, const TQString& label, bool writable, bool alarmRelevant, ResourceMap& subResource ) { - KConfigGroup group( &config, name ); + TDEConfigGroup group( &config, name ); bool active = group.readBoolEntry( "Active", true ); subResource.insert( name, Kolab::SubResource( active, writable, alarmRelevant, label ) ); } -bool ResourceKolab::openResource( KConfig& config, const char* contentType, +bool ResourceKolab::openResource( TDEConfig& config, const char* contentType, ResourceMap& map ) { // Read the subresource entries from KMail @@ -125,7 +125,7 @@ bool ResourceKolab::doOpen() return true; mOpen = true; - KConfig config( configFile() ); + TDEConfig config( configFile() ); config.setGroup( "General" ); mProgressDialogIncidenceLimit = config.readNumEntry("ProgressDialogIncidenceLimit", 200); @@ -134,7 +134,7 @@ bool ResourceKolab::doOpen() && openResource( config, kmailJournalContentsType, mJournalSubResources ); } -static void writeResourceConfig( KConfig& config, ResourceMap& map ) +static void writeResourceConfig( TDEConfig& config, ResourceMap& map ) { ResourceMap::ConstIterator it; for ( it = map.begin(); it != map.end(); ++it ) { @@ -1077,7 +1077,7 @@ void ResourceKolab::fromKMailAddSubresource( const TQString& type, // Already registered return; - KConfig config( configFile() ); + TDEConfig config( configFile() ); config.setGroup( subResource ); bool active = config.readBoolEntry( subResource, true ); @@ -1100,7 +1100,7 @@ void ResourceKolab::fromKMailDelSubresource( const TQString& type, return; // Delete from the config file - KConfig config( configFile() ); + TDEConfig config( configFile() ); config.deleteGroup( subResource ); config.sync(); @@ -1322,7 +1322,7 @@ TQString ResourceKolab::subresourceType( const TQString &resource ) void ResourceKolab::writeConfig() { - KConfig config( configFile() ); + TDEConfig config( configFile() ); writeResourceConfig( config, mEventSubResources ); writeResourceConfig( config, mTodoSubResources ); writeResourceConfig( config, mJournalSubResources ); |