KABC::ResourceLDAPKIO Class Reference
Inheritance diagram for KABC::ResourceLDAPKIO:

Detailed Description
Definition at line 33 of file resourceldapkio.h.
Public Types | |
enum | CachePolicy { Cache_No, Cache_NoConnection, Cache_Always } |
Public Member Functions | |
ResourceLDAPKIO (const KConfig *) | |
virtual | ~ResourceLDAPKIO () |
virtual void | init () |
virtual void | writeConfig (KConfig *) |
virtual bool | doOpen () |
virtual void | doClose () |
virtual Ticket * | requestSaveTicket () |
virtual void | releaseSaveTicket (Ticket *) |
virtual bool | readOnly () const |
virtual void | setReadOnly (bool value) |
virtual bool | load () |
virtual bool | asyncLoad () |
virtual bool | save (Ticket *ticket) |
virtual bool | asyncSave (Ticket *ticket) |
virtual void | removeAddressee (const Addressee &addr) |
void | setUser (const QString &user) |
QString | user () const |
void | setPassword (const QString &password) |
QString | password () const |
void | setRealm (const QString &realm) |
QString | realm () const |
void | setBindDN (const QString &binddn) |
QString | bindDN () const |
void | setDn (const QString &dn) |
QString | dn () const |
void | setHost (const QString &host) |
QString | host () const |
void | setPort (int port) |
int | port () const |
void | setVer (int ver) |
int | ver () const |
void | setSizeLimit (int sizelimit) |
int | sizeLimit () |
void | setTimeLimit (int timelimit) |
int | timeLimit () |
void | setFilter (const QString &filter) |
QString | filter () const |
void | setIsAnonymous (bool value) |
bool | isAnonymous () const |
void | setAttributes (const QMap< QString, QString > &attributes) |
QMap< QString, QString > | attributes () const |
void | setRDNPrefix (int value) |
int | RDNPrefix () const |
void | setIsTLS (bool value) |
bool | isTLS () const |
void | setIsSSL (bool value) |
bool | isSSL () const |
void | setIsSubTree (bool value) |
bool | isSubTree () const |
void | setIsSASL (bool value) |
bool | isSASL () const |
void | setMech (const QString &mech) |
QString | mech () const |
void | setCachePolicy (int pol) |
int | cachePolicy () const |
void | setAutoCache (bool value) |
bool | autoCache () |
QString | cacheDst () const |
Protected Slots | |
void | entries (KIO::Job *, const KIO::UDSEntryList &) |
void | data (KIO::Job *, const QByteArray &) |
void | result (KIO::Job *) |
void | listResult (KIO::Job *) |
void | syncLoadSaveResult (KIO::Job *) |
void | saveResult (KIO::Job *) |
void | saveData (KIO::Job *, QByteArray &) |
void | loadCacheResult (KIO::Job *) |
Member Function Documentation
void ResourceLDAPKIO::init | ( | ) | [virtual] |
Call this after you used one of the set.
.. methods
If you want to add new attributes, append them here, add a translation string in the ctor of AttributesDialog and handle them in the load() method below. These are the default values
Definition at line 323 of file resourceldapkio.cpp.
void ResourceLDAPKIO::writeConfig | ( | KConfig * | ) | [virtual] |
Writes the resource specific config to file.
Reimplemented from KABC::Resource.
Definition at line 420 of file resourceldapkio.cpp.
Ticket * ResourceLDAPKIO::requestSaveTicket | ( | ) | [virtual] |
Request a ticket, you have to pass through save() to allow locking.
The resource has to create its locks in this function.
Implements KABC::Resource.
Definition at line 453 of file resourceldapkio.cpp.
void ResourceLDAPKIO::releaseSaveTicket | ( | Ticket * | ) | [virtual] |
Releases the ticket previousely requested with requestSaveTicket().
The resource has to remove its locks in this function. This function is also responsible for deleting the ticket.
Implements KABC::Resource.
Definition at line 463 of file resourceldapkio.cpp.
bool ResourceLDAPKIO::load | ( | ) | [virtual] |
Loads all addressees synchronously.
- Returns:
- Whether the loading was successfully.
Implements KABC::Resource.
Definition at line 520 of file resourceldapkio.cpp.
bool ResourceLDAPKIO::asyncLoad | ( | ) | [virtual] |
Loads all addressees asyncronously.
You have to make sure that either the loadingFinished() or loadingError() signal is emitted from within this function.
The default implementation simply calls the synchronous load.
- Returns:
- Whether the synchronous part of loading was successfully.
Reimplemented from KABC::Resource.
Definition at line 561 of file resourceldapkio.cpp.
bool ResourceLDAPKIO::save | ( | Ticket * | ticket | ) | [virtual] |
Saves all addressees synchronously.
- Parameters:
-
ticket You have to release the ticket later with releaseSaveTicket() explicitely.
- Returns:
- Whether the saving was successfully.
Implements KABC::Resource.
Definition at line 727 of file resourceldapkio.cpp.
bool ResourceLDAPKIO::asyncSave | ( | Ticket * | ticket | ) | [virtual] |
Saves all addressees asynchronously.
You have to make sure that either the savingFinished() or savingError() signal is emitted from within this function.
The default implementation simply calls the synchronous save.
- Parameters:
-
ticket You have to release the ticket later with releaseSaveTicket() explicitely.
- Returns:
- Whether the saving was successfully.
Reimplemented from KABC::Resource.
Definition at line 748 of file resourceldapkio.cpp.
void ResourceLDAPKIO::removeAddressee | ( | const Addressee & | addr | ) | [virtual] |
Removes an addressee from resource.
Reimplemented from KABC::Resource.
Definition at line 802 of file resourceldapkio.cpp.
The documentation for this class was generated from the following files: