• 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
ldapclientsearch.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 LDAPCLIENTSEARCH_H
23 #define LDAPCLIENTSEARCH_H
24 
25 #include "libkdepim/kdepim_export.h"
26 #include <QtCore/QObject>
27 #include <QtCore/QStringList>
28 
29 class KConfig;
30 class KConfigGroup;
31 class KJob;
32 
33 
34 namespace KLDAP {
35 class LdapObject;
36 class LdapServer;
37 class LdapClient;
38 
44 struct LdapResult
45 {
49  typedef QList<LdapResult> List;
50 
51  QString name;
52  QStringList email;
53  int clientNumber;
54  int completionWeight;
55 };
56 
60 class KDEPIM_EXPORT LdapClientSearch : public QObject
61 {
62  Q_OBJECT
63 
64  public:
70  explicit LdapClientSearch( QObject *parent = 0 );
71 
75  ~LdapClientSearch();
76 
80  void startSearch( const QString &query );
81 
85  void cancelSearch();
86 
93  bool isAvailable() const;
94 
99  void updateCompletionWeights();
100 
104  QList<LdapClient*> clients() const;
105 
106  Q_SIGNALS:
113  void searchData( const QStringList &results );
114 
121  void searchData( const KLDAP::LdapResult::List &results );
122 
127  void searchDone();
128 
129  private:
130  //@cond PRIVATE
131  class Private;
132  Private* const d;
133 
134  Q_PRIVATE_SLOT( d, void slotLDAPResult( const KLDAP::LdapClient&, const KLDAP::LdapObject& ) )
135  Q_PRIVATE_SLOT( d, void slotLDAPError( const QString& ) )
136  Q_PRIVATE_SLOT( d, void slotLDAPDone() )
137  Q_PRIVATE_SLOT( d, void slotDataTimer() )
138  Q_PRIVATE_SLOT( d, void slotFileChanged( const QString& ) )
139  //@endcond
140 };
141 
142 }
143 
144 #endif // LDAPCLIENTSEARCH_H
kdepim_export.h
KLDAP::LdapResult::clientNumber
int clientNumber
The client the contact comes from (used for sorting in a ldap-only lookup).
Definition: ldapclientsearch.h:53
KLDAP::LdapClientSearch
Definition: ldapclientsearch.h:60
KLDAP::LdapResult
Describes the result returned by an LdapClientSearch query.
Definition: ldapclientsearch.h:44
QObject
KLDAP::LdapResult::name
QString name
The full name of the contact.
Definition: ldapclientsearch.h:51
KLDAP::LdapResult::email
QStringList email
The list of emails of the contact.
Definition: ldapclientsearch.h:52
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
KLDAP::LdapResult::List
QList< LdapResult > List
A list of LdapResult objects.
Definition: ldapclientsearch.h:49
KLDAP::LdapResult::completionWeight
int completionWeight
The weight of the contact (used for sorting in a completion list).
Definition: ldapclientsearch.h:54
QList
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