Diffstat (limited to 'kabc/plugins/ldap/resourceldap.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/ldap/resourceldap.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kabc/plugins/ldap/resourceldap.cpp b/kabc/plugins/ldap/resourceldap.cpp index 55c43af..4b9dede 100644 --- a/kabc/plugins/ldap/resourceldap.cpp +++ b/kabc/plugins/ldap/resourceldap.cpp | |||
@@ -35,25 +35,26 @@ $Id$ | |||
35 | #include <stdlib.h> | 35 | #include <stdlib.h> |
36 | 36 | ||
37 | #include "resourceldap.h" | 37 | #include "resourceldap.h" |
38 | #include "resourceldapconfig.h" | 38 | #include "resourceldapconfig.h" |
39 | #include "syncwidget.h" | ||
39 | 40 | ||
40 | using namespace KABC; | 41 | using namespace KABC; |
41 | 42 | ||
42 | extern "C" | 43 | extern "C" |
43 | { | 44 | { |
44 | //US void *init_kabc_ldap() | 45 | //US void *init_kabc_ldap() |
45 | void *init_microkabc_ldap() | 46 | void *init_microkabc_ldap() |
46 | { | 47 | { |
47 | return new KRES::PluginFactory<ResourceLDAP,ResourceLDAPConfig>(); | 48 | return new KRES::PluginFactory<ResourceLDAP,ResourceLDAPConfig, KRES::SyncWidget>(); |
48 | } | 49 | } |
49 | } | 50 | } |
50 | 51 | ||
51 | void addModOp( LDAPMod ***pmods, const QString &attr, const QString &value ); | 52 | void addModOp( LDAPMod ***pmods, const QString &attr, const QString &value ); |
52 | 53 | ||
53 | 54 | ||
54 | ResourceLDAP::ResourceLDAP( const KConfig *config ) | 55 | ResourceLDAP::ResourceLDAP( const KConfig *config, bool syncable ) |
55 | : Resource( config ), mPort( 389 ), mLdap( 0 ) | 56 | : Resource( config, syncable ), mPort( 389 ), mLdap( 0 ) |
56 | { | 57 | { |
57 | KConfig *cfg = (KConfig *)config; | 58 | KConfig *cfg = (KConfig *)config; |
58 | if ( cfg ) { | 59 | if ( cfg ) { |
59 | mUser = cfg->readEntry( "LdapUser" ); | 60 | mUser = cfg->readEntry( "LdapUser" ); |