From 863c4c3678e59ef125c08c00e9532ded5b540f67 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Mon, 02 Aug 2004 18:32:08 +0000 Subject: added support for syncprofiles for resources and export/import capabilities --- (limited to 'kabc/plugins/ldap') diff --git a/kabc/plugins/ldap/ldapE.pro b/kabc/plugins/ldap/ldapE.pro index f6ca586..2e79fc0 100644 --- a/kabc/plugins/ldap/ldapE.pro +++ b/kabc/plugins/ldap/ldapE.pro @@ -3,7 +3,7 @@ CONFIG += qt warn_on release #release debug TARGET = microkabc_ldap -INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat $(QPEDIR)/include +INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kresources ../../../qtcompat $(QPEDIR)/include OBJECTS_DIR = obj/$(PLATFORM) MOC_DIR = moc/$(PLATFORM) DESTDIR = $(QPEDIR)/lib 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 @@ -36,6 +36,7 @@ $Id$ #include "resourceldap.h" #include "resourceldapconfig.h" +#include "syncwidget.h" using namespace KABC; @@ -44,15 +45,15 @@ extern "C" //US void *init_kabc_ldap() void *init_microkabc_ldap() { - return new KRES::PluginFactory(); + return new KRES::PluginFactory(); } } void addModOp( LDAPMod ***pmods, const QString &attr, const QString &value ); -ResourceLDAP::ResourceLDAP( const KConfig *config ) - : Resource( config ), mPort( 389 ), mLdap( 0 ) +ResourceLDAP::ResourceLDAP( const KConfig *config, bool syncable ) + : Resource( config, syncable ), mPort( 389 ), mLdap( 0 ) { KConfig *cfg = (KConfig *)config; if ( cfg ) { diff --git a/kabc/plugins/ldap/resourceldap.h b/kabc/plugins/ldap/resourceldap.h index 0625f30..0aad3c1 100644 --- a/kabc/plugins/ldap/resourceldap.h +++ b/kabc/plugins/ldap/resourceldap.h @@ -43,7 +43,7 @@ class ResourceLDAP : public Resource { public: - ResourceLDAP( const KConfig* ); + ResourceLDAP( const KConfig*, bool syncable ); virtual void writeConfig( KConfig* ); -- cgit v0.9.0.2