author | ulf69 <ulf69> | 2004-06-29 03:37:25 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-29 03:37:25 (UTC) |
commit | b0a92f38dc4dfb2685581d17b72a69e30bfabedc (patch) (unidiff) | |
tree | d04ca7535f36f7043c909d6df7d624503af02b8c | |
parent | 82fec00bb1355affe8093f0f92922827f0357632 (diff) | |
download | kdepimpi-b0a92f38dc4dfb2685581d17b72a69e30bfabedc.zip kdepimpi-b0a92f38dc4dfb2685581d17b72a69e30bfabedc.tar.gz kdepimpi-b0a92f38dc4dfb2685581d17b72a69e30bfabedc.tar.bz2 |
enable dynamic loading
-rw-r--r-- | kabc/plugins/ldap/resourceldap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kabc/plugins/ldap/resourceldap.cpp b/kabc/plugins/ldap/resourceldap.cpp index 1c54f63..55c43af 100644 --- a/kabc/plugins/ldap/resourceldap.cpp +++ b/kabc/plugins/ldap/resourceldap.cpp | |||
@@ -32,28 +32,28 @@ $Id$ | |||
32 | #include <kconfig.h> | 32 | #include <kconfig.h> |
33 | #include <kstringhandler.h> | 33 | #include <kstringhandler.h> |
34 | 34 | ||
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 | 39 | ||
40 | using namespace KABC; | 40 | using namespace KABC; |
41 | 41 | ||
42 | extern "C" | 42 | extern "C" |
43 | { | 43 | { |
44 | void *init_kabc_ldap() | 44 | //US void *init_kabc_ldap() |
45 | void *init_microkabc_ldap() | ||
45 | { | 46 | { |
46 | qDebug("resourceldap.cpp : init_kabc_ldap has to be changed"); | 47 | return new KRES::PluginFactory<ResourceLDAP,ResourceLDAPConfig>(); |
47 | //US return new KRES::PluginFactory<ResourceLDAP,ResourceLDAPConfig>(); | ||
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | void addModOp( LDAPMod ***pmods, const QString &attr, const QString &value ); | 51 | void addModOp( LDAPMod ***pmods, const QString &attr, const QString &value ); |
52 | 52 | ||
53 | 53 | ||
54 | ResourceLDAP::ResourceLDAP( const KConfig *config ) | 54 | ResourceLDAP::ResourceLDAP( const KConfig *config ) |
55 | : Resource( config ), mPort( 389 ), mLdap( 0 ) | 55 | : Resource( config ), mPort( 389 ), mLdap( 0 ) |
56 | { | 56 | { |
57 | KConfig *cfg = (KConfig *)config; | 57 | KConfig *cfg = (KConfig *)config; |
58 | if ( cfg ) { | 58 | if ( cfg ) { |
59 | mUser = cfg->readEntry( "LdapUser" ); | 59 | mUser = cfg->readEntry( "LdapUser" ); |