KABC::ResourceLDAPKIO Class Reference

Inheritance diagram for KABC::ResourceLDAPKIO:

KABC::Resource List of all members.

Detailed Description

Definition at line 33 of file resourceldapkio.h.


Public Types

 Cache_No
 Cache_NoConnection
 Cache_Always
enum  CachePolicy { Cache_No, Cache_NoConnection, Cache_Always }

Public Member Functions

 ResourceLDAPKIO (const KConfig *)
virtual void init ()
virtual void writeConfig (KConfig *)
virtual bool doOpen ()
virtual void doClose ()
virtual TicketrequestSaveTicket ()
virtual void releaseSaveTicket (Ticket *)
virtual bool readOnly () const
virtual void setReadOnly (bool value)
virtual bool load ()
virtual bool asyncLoad ()
virtual bool save (Ticket *)
virtual bool asyncSave (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, QStringattributes () 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

virtual bool KABC::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.

virtual bool KABC::ResourceLDAPKIO::asyncSave ( 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.

virtual void KABC::ResourceLDAPKIO::init (  )  [virtual]

Call this after you used one of the set.

.. methods

virtual bool KABC::ResourceLDAPKIO::load (  )  [virtual]

Loads all addressees synchronously.

Returns:
Whether the loading was successfully.

Implements KABC::Resource.

virtual void KABC::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.

virtual void KABC::ResourceLDAPKIO::removeAddressee ( const Addressee addr  )  [virtual]

Removes an addressee from resource.

Reimplemented from KABC::Resource.

virtual Ticket* KABC::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.

virtual bool KABC::ResourceLDAPKIO::save ( 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.

virtual void KABC::ResourceLDAPKIO::writeConfig ( KConfig  )  [virtual]

Writes the resource specific config to file.

Reimplemented from KABC::Resource.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys