summaryrefslogtreecommitdiffabout
path: root/kabc/plugins/file/resourcefile.cpp
Side-by-side diff
Diffstat (limited to 'kabc/plugins/file/resourcefile.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kabc/plugins/file/resourcefile.cpp10
1 files changed, 9 insertions, 1 deletions
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
@@ -59,5 +59,10 @@ using namespace KABC;
extern "C"
+#ifdef _WIN32_
+__declspec(dllexport)
+#else
{
+#endif
+
//US void *init_kabc_file()
void *init_microkabc_file()
@@ -65,6 +70,7 @@ extern "C"
return new KRES::PluginFactory<ResourceFile,ResourceFileConfig>();
}
+#ifndef _WIN32_
}
-
+#endif
ResourceFile::ResourceFile( const KConfig *config )
@@ -138,4 +144,6 @@ ResourceFile::~ResourceFile()
void ResourceFile::writeConfig( KConfig *config )
{
+
+ config->setGroup( "Resource_" + identifier() );
Resource::writeConfig( config );