resourceldap.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KABC_RESOURCELDAP_H
00022 #define KABC_RESOURCELDAP_H
00023
00024 #include <kconfig.h>
00025
00026 #include <lber.h>
00027 #include <ldap.h>
00028
00029 #include "addressbook.h"
00030 #include "resource.h"
00031
00032 namespace KABC {
00033
00034 class ResourceLDAP : public Resource
00035 {
00036 public:
00037
00038 ResourceLDAP( AddressBook *ab, const KConfig * );
00039 ResourceLDAP( AddressBook *ab, const QString &user, const QString &password,
00040 const QString &dn, const QString &host,
00041 const QString &port, const QString &filter, const bool anonymous );
00042
00043 bool open();
00044 void close();
00045
00046 Ticket *requestSaveTicket();
00047
00048 bool load();
00049 bool save( Ticket * );
00050
00051 void removeAddressee( const Addressee& addr );
00052
00053 QString identifier() const;
00054
00055 private:
00056 QString mUser;
00057 QString mPassword;
00058 QString mDn;
00059 QString mHost;
00060 QString mPort;
00061 QString mFilter;
00062 bool mAnonymous;
00063
00064 LDAP *mLdap;
00065 };
00066
00067 }
00068 #endif
This file is part of the documentation for kdelibs Version 3.1.4.