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

libkdepim

  • sources
  • kde-4.12
  • kdepim
  • libkdepim
  • ldap
ldapclient.h
Go to the documentation of this file.
1 /* kldapclient.h - LDAP access
2  * Copyright (C) 2002 Klarälvdalens Datakonsult AB
3  *
4  * Author: Steffen Hansen <hansen@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef KLDAP_LDAPCLIENT_H
23 #define KLDAP_LDAPCLIENT_H
24 
25 #include "libkdepim/kdepim_export.h"
26 
27 #include <QtCore/QObject>
28 #include <QtCore/QStringList>
29 
30 class KConfig;
31 class KConfigGroup;
32 class KJob;
33 
34 namespace KLDAP {
35 
36 class LdapObject;
37 class LdapServer;
38 
48 class KDEPIM_EXPORT LdapClient : public QObject
49 {
50  Q_OBJECT
51 
52  public:
59  explicit LdapClient( int clientNumber, QObject *parent = 0 );
60 
64  virtual ~LdapClient();
65 
69  int clientNumber() const;
70 
75  bool isActive() const;
76 
83  void setCompletionWeight( int weight );
84 
88  int completionWeight() const;
89 
94  void setServer( const KLDAP::LdapServer &server );
95 
100  const KLDAP::LdapServer server() const;
101 
108  void setAttributes( const QStringList &attributes );
109 
114  QStringList attributes() const;
115 
121  void setScope( const QString scope );
122 
126  void startQuery( const QString &filter );
127 
131  void cancelQuery();
132 
133  Q_SIGNALS:
137  void done();
138 
144  void error( const QString &message );
145 
150  void result( const KLDAP::LdapClient &client, const KLDAP::LdapObject& );
151 
152  private:
153  //@cond PRIVATE
154  class Private;
155  Private* const d;
156 
157  Q_PRIVATE_SLOT( d, void slotData( KIO::Job*, const QByteArray& ) )
158  Q_PRIVATE_SLOT( d, void slotData( const QByteArray& ) )
159  Q_PRIVATE_SLOT( d, void slotInfoMessage( KJob*, const QString&, const QString& ) )
160  Q_PRIVATE_SLOT( d, void slotDone() )
161  //@endcond
162 };
163 
164 }
165 
166 #endif
kdepim_export.h
QObject
KLDAP::LdapClient
An object that represents a configured LDAP server.
Definition: ldapclient.h:48
KJob
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 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

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