From e8628e6e3e98f2276fb69bbc545866cc9a022228 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 08 Jul 2004 00:16:46 +0000 Subject: Compile fixes for windows --- (limited to 'kabc/plugins/file/resourcefile.cpp') diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp index 4b4c935..2d20706 100644 --- a/kabc/plugins/file/resourcefile.cpp +++ b/kabc/plugins/file/resourcefile.cpp @@ -58,14 +58,20 @@ $Id$ using namespace KABC; extern "C" +#ifdef _WIN32_ +__declspec(dllexport) +#else { +#endif + //US void *init_kabc_file() void *init_microkabc_file() { return new KRES::PluginFactory(); } +#ifndef _WIN32_ } - +#endif ResourceFile::ResourceFile( const KConfig *config ) : Resource( config ) , mFormat( 0 ) @@ -137,6 +143,8 @@ ResourceFile::~ResourceFile() void ResourceFile::writeConfig( KConfig *config ) { + + config->setGroup( "Resource_" + identifier() ); Resource::writeConfig( config ); config->writeEntry( "FileName", mFileName ); -- cgit v0.9.0.2