• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kabc
 

kabc

  • kabc
ldapurl.h
1 /*
2  This file is part of libkabc.
3  Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef _K_LDAPURL_H_
22 #define _K_LDAPURL_H_
23 
24 #include <tqstring.h>
25 #include <tqstringlist.h>
26 #include <tqmap.h>
27 
28 #include <kurl.h>
29 
30 namespace KABC {
31 
42  class KABC_EXPORT LDAPUrl : public KURL
43  {
44  public:
45 
46  struct Extension {
47  TQString value;
48  bool critical;
49  };
50 
51  enum Scope { Base, One, Sub };
52 
54  LDAPUrl();
56  LDAPUrl( const KURL &url );
57 
62  const TQString& dn() const { return m_dn; }
64  void setDn( const TQString &dn );
65 
67  const TQStringList &attributes() { return m_attributes; }
69  void setAttributes( const TQStringList &attributes )
70  { m_attributes=attributes; updateQuery(); }
71 
73  Scope scope() const { return m_scope; }
75  void setScope(Scope scope) { m_scope = scope; updateQuery(); }
76 
78  const TQString &filter() const { return m_filter; }
80  void setFilter( TQString filter ) { m_filter = filter; updateQuery(); }
81 
83  bool hasExtension( const TQString &key ) const;
85  Extension extension( const TQString &key ) const;
87  TQString extension( const TQString &key, bool &critical ) const;
89  void setExtension( const TQString &key, const Extension &ext );
91  void setExtension( const TQString &key, const TQString &value, bool critical = false );
93  void removeExtension( const TQString &key );
95  void updateQuery();
96 
97  protected:
98  void parseQuery();
99 
100  private:
101 
102  TQMap<TQString, Extension> m_extensions;
103  TQString m_dn;
104  TQStringList m_attributes;
105  Scope m_scope;
106  TQString m_filter;
107  };
108 }
109 
110 #endif
KURL
KABC::LDAPUrl
LDAPUrl.
Definition: ldapurl.h:42
KABC::LDAPUrl::setFilter
void setFilter(TQString filter)
Sets the filter part of the LDAP Url.
Definition: ldapurl.h:80
KABC::LDAPUrl::attributes
const TQStringList & attributes()
Returns the attributes part of the LDAP Url.
Definition: ldapurl.h:67
KABC::LDAPUrl::filter
const TQString & filter() const
Returns the filter part of the LDAP Url.
Definition: ldapurl.h:78
KABC::LDAPUrl::scope
Scope scope() const
Returns the scope part of the LDAP Url.
Definition: ldapurl.h:73
KABC::LDAPUrl::setAttributes
void setAttributes(const TQStringList &attributes)
Sets the attributes part of the LDAP Url.
Definition: ldapurl.h:69
KABC
static data, shared by ALL addressee objects
Definition: address.h:48
KABC::LDAPUrl::setScope
void setScope(Scope scope)
Sets the scope part of the LDAP Url.
Definition: ldapurl.h:75
KABC::LDAPUrl::dn
const TQString & dn() const
Returns the dn part of the LDAP Url (same as path(), but slash removed from the beginning).
Definition: ldapurl.h:62

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |