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

libkdepim

  • sources
  • kde-4.14
  • 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 KJob;
31 
32 namespace KLDAP {
33 
34 class LdapObject;
35 class LdapServer;
36 
46 class KDEPIM_EXPORT LdapClient : public QObject
47 {
48  Q_OBJECT
49 
50 public:
57  explicit LdapClient( int clientNumber, QObject *parent = 0 );
58 
62  virtual ~LdapClient();
63 
67  int clientNumber() const;
68 
73  bool isActive() const;
74 
81  void setCompletionWeight( int weight );
82 
86  int completionWeight() const;
87 
92  void setServer( const KLDAP::LdapServer &server );
93 
98  const KLDAP::LdapServer server() const;
99 
106  void setAttributes( const QStringList &attributes );
107 
112  QStringList attributes() const;
113 
119  void setScope( const QString scope );
120 
124  void startQuery( const QString &filter );
125 
129  void cancelQuery();
130 
131 Q_SIGNALS:
135  void done();
136 
142  void error( const QString &message );
143 
148  void result( const KLDAP::LdapClient &client, const KLDAP::LdapObject& );
149 
150 private:
151  //@cond PRIVATE
152  class Private;
153  Private* const d;
154 
155  Q_PRIVATE_SLOT( d, void slotData( KIO::Job*, const QByteArray& ) )
156  Q_PRIVATE_SLOT( d, void slotData( const QByteArray& ) )
157  Q_PRIVATE_SLOT( d, void slotInfoMessage( KJob*, const QString&, const QString& ) )
158  Q_PRIVATE_SLOT( d, void slotDone() )
159  //@endcond
160 };
161 
162 }
163 
164 #endif
kdepim_export.h
QByteArray
QObject
QString
QStringList
KLDAP::LdapClient
An object that represents a configured LDAP server.
Definition: ldapclient.h:46
KJob
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
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