• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkdepim

  • KLDAP
  • LdapClient
Signals | Public Member Functions | List of all members
KLDAP::LdapClient Class Reference

#include <ldapclient.h>

Inheritance diagram for KLDAP::LdapClient:
Inheritance graph
[legend]

Signals

void done ()
 
void error (const QString &message)
 
void result (const KLDAP::LdapClient &client, const KLDAP::LdapObject &)
 

Public Member Functions

 LdapClient (int clientNumber, QObject *parent=0)
 
virtual ~LdapClient ()
 
QStringList attributes () const
 
void cancelQuery ()
 
int clientNumber () const
 
int completionWeight () const
 
bool isActive () const
 
const KLDAP::LdapServer server () const
 
void setAttributes (const QStringList &attributes)
 
void setCompletionWeight (int weight)
 
void setScope (const QString scope)
 
void setServer (const KLDAP::LdapServer &server)
 
void startQuery (const QString &filter)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

An object that represents a configured LDAP server.

This class represents a client that to an LDAP server that can be used for LDAP lookups. Every client is identified by a unique numeric id.

Since
4.5

Definition at line 46 of file ldapclient.h.

Constructor & Destructor Documentation

LdapClient::LdapClient ( int  clientNumber,
QObject *  parent = 0 
)
explicit

Creates a new ldap client.

Parameters
clientNumberThe unique number of this client.
parentThe parent object.

Definition at line 87 of file ldapclient.cpp.

LdapClient::~LdapClient ( )
virtual

Destroys the ldap client.

Definition at line 94 of file ldapclient.cpp.

Member Function Documentation

QStringList LdapClient::attributes ( ) const

Returns the LDAP attributes that should be returned in the query result.

Definition at line 125 of file ldapclient.cpp.

void LdapClient::cancelQuery ( )

Cancels a running query.

Definition at line 173 of file ldapclient.cpp.

int LdapClient::clientNumber ( ) const

Returns the number of this client.

Definition at line 307 of file ldapclient.cpp.

int LdapClient::completionWeight ( ) const

Returns the completion weight of this client.

Definition at line 312 of file ldapclient.cpp.

void KLDAP::LdapClient::done ( )
signal

This signal is emitted when the query has finished.

void KLDAP::LdapClient::error ( const QString &  message)
signal

This signal is emitted in case of an error.

Parameters
messageA message that describes the error.
bool LdapClient::isActive ( ) const

Returns whether this client is currently running a search query.

Definition at line 99 of file ldapclient.cpp.

void KLDAP::LdapClient::result ( const KLDAP::LdapClient &  client,
const KLDAP::LdapObject &   
)
signal

This signal is emitted once for each object that is returned from the query.

const KLDAP::LdapServer LdapClient::server ( ) const

Returns the ldap server information that are used by this client.

Definition at line 114 of file ldapclient.cpp.

void LdapClient::setAttributes ( const QStringList &  attributes)

Sets the LDAP attributes that should be returned in the query result.

Pass an empty list to include all available attributes.

Definition at line 119 of file ldapclient.cpp.

void LdapClient::setCompletionWeight ( int  weight)

Sets the completion weight of this client.

This value will be used to sort the results of this client when used for auto completion.

Definition at line 317 of file ldapclient.cpp.

void LdapClient::setScope ( const QString  scope)

Sets the scope of the LDAP query.

Valid values are 'one' or 'sub'.

Definition at line 130 of file ldapclient.cpp.

void LdapClient::setServer ( const KLDAP::LdapServer &  server)

Sets the LDAP server information that shall be used by this client.

Definition at line 104 of file ldapclient.cpp.

void LdapClient::startQuery ( const QString &  filter)

Starts the query with the given filter.

Definition at line 135 of file ldapclient.cpp.


The documentation for this class was generated from the following files:
  • ldapclient.h
  • ldapclient.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal