summaryrefslogtreecommitdiffstats
path: root/kresources/scalix/kcal/resourcescalix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/scalix/kcal/resourcescalix.cpp')
-rw-r--r--kresources/scalix/kcal/resourcescalix.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kresources/scalix/kcal/resourcescalix.cpp b/kresources/scalix/kcal/resourcescalix.cpp
index eeebb32f8..a757c81fc 100644
--- a/kresources/scalix/kcal/resourcescalix.cpp
+++ b/kresources/scalix/kcal/resourcescalix.cpp
@@ -61,7 +61,7 @@ static const char* journalAttachmentMimeType = "application/x-vnd.kolab.journal"
static const char* incidenceInlineMimeType = "text/calendar";
-ResourceScalix::ResourceScalix( const KConfig *config )
+ResourceScalix::ResourceScalix( const TDEConfig *config )
: ResourceCalendar( config ), ResourceScalixBase( "ResourceScalix-libkcal" ),
mCalendar( TQString::fromLatin1("UTC") ), mOpen( false )
{
@@ -79,18 +79,18 @@ ResourceScalix::~ResourceScalix()
}
}
-void ResourceScalix::loadSubResourceConfig( KConfig& config,
+void ResourceScalix::loadSubResourceConfig( TDEConfig& config,
const TQString& name,
const TQString& label,
bool writable,
ResourceMap& subResource )
{
- KConfigGroup group( &config, name );
+ TDEConfigGroup group( &config, name );
bool active = group.readBoolEntry( "Active", true );
subResource.insert( name, Scalix::SubResource( active, writable, label ) );
}
-bool ResourceScalix::openResource( KConfig& config, const char* contentType,
+bool ResourceScalix::openResource( TDEConfig& config, const char* contentType,
ResourceMap& map )
{
// Read the subresource entries from KMail
@@ -111,7 +111,7 @@ bool ResourceScalix::doOpen()
return true;
mOpen = true;
- KConfig config( configFile() );
+ TDEConfig config( configFile() );
config.setGroup( "General" );
mProgressDialogIncidenceLimit = config.readNumEntry("ProgressDialogIncidenceLimit", 200);
@@ -120,7 +120,7 @@ bool ResourceScalix::doOpen()
&& openResource( config, kmailJournalContentsType, mJournalSubResources );
}
-static void closeResource( KConfig& config, ResourceMap& map )
+static void closeResource( TDEConfig& config, ResourceMap& map )
{
ResourceMap::ConstIterator it;
for ( it = map.begin(); it != map.end(); ++it ) {
@@ -136,7 +136,7 @@ void ResourceScalix::doClose()
return;
mOpen = false;
- KConfig config( configFile() );
+ TDEConfig config( configFile() );
closeResource( config, mEventSubResources );
closeResource( config, mTodoSubResources );
closeResource( config, mJournalSubResources );
@@ -745,7 +745,7 @@ void ResourceScalix::fromKMailAddSubresource( const TQString& type,
// Already registered
return;
- KConfig config( configFile() );
+ TDEConfig config( configFile() );
config.setGroup( subResource );
bool active = config.readBoolEntry( subResource, true );
@@ -767,7 +767,7 @@ void ResourceScalix::fromKMailDelSubresource( const TQString& type,
return;
// Delete from the config file
- KConfig config( configFile() );
+ TDEConfig config( configFile() );
config.deleteGroup( subResource );
config.sync();