Diffstat (limited to 'kabc/plugins/dir/resourcedir.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kabc/plugins/dir/resourcedir.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kabc/plugins/dir/resourcedir.cpp b/kabc/plugins/dir/resourcedir.cpp index 52863d5..d978e61 100644 --- a/kabc/plugins/dir/resourcedir.cpp +++ b/kabc/plugins/dir/resourcedir.cpp | |||
@@ -54,12 +54,13 @@ $Id$ | |||
54 | #include "stdaddressbook.h" | 54 | #include "stdaddressbook.h" |
55 | 55 | ||
56 | //US | 56 | //US |
57 | #include <qdir.h> | 57 | #include <qdir.h> |
58 | 58 | ||
59 | #include "resourcedir.h" | 59 | #include "resourcedir.h" |
60 | #include "syncwidget.h" | ||
60 | 61 | ||
61 | using namespace KABC; | 62 | using namespace KABC; |
62 | 63 | ||
63 | extern "C" | 64 | extern "C" |
64 | #ifdef _WIN32_ | 65 | #ifdef _WIN32_ |
65 | __declspec(dllexport) | 66 | __declspec(dllexport) |
@@ -67,20 +68,20 @@ __declspec(dllexport) | |||
67 | { | 68 | { |
68 | #endif | 69 | #endif |
69 | 70 | ||
70 | //US void *init_kabc_dir() | 71 | //US void *init_kabc_dir() |
71 | void *init_microkabc_dir() | 72 | void *init_microkabc_dir() |
72 | { | 73 | { |
73 | return new KRES::PluginFactory<ResourceDir,ResourceDirConfig>(); | 74 | return new KRES::PluginFactory<ResourceDir,ResourceDirConfig, KRES::SyncWidget>(); |
74 | } | 75 | } |
75 | #ifndef _WIN32_ | 76 | #ifndef _WIN32_ |
76 | } | 77 | } |
77 | #endif | 78 | #endif |
78 | 79 | ||
79 | ResourceDir::ResourceDir( const KConfig *config ) | 80 | ResourceDir::ResourceDir( const KConfig *config, bool syncable ) |
80 | : Resource( config ) | 81 | : Resource( config, syncable ) |
81 | { | 82 | { |
82 | QString path; | 83 | QString path; |
83 | 84 | ||
84 | KConfig *cfg = (KConfig *)config; | 85 | KConfig *cfg = (KConfig *)config; |
85 | if ( cfg ) { | 86 | if ( cfg ) { |
86 | //US path = config->readEntry( "FilePath" ); | 87 | //US path = config->readEntry( "FilePath" ); |