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

tdeabc

  • tdeabc
ldapurl.h
1/*
2 This file is part of libtdeabc.
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
30namespace TDEABC {
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
TDEABC::LDAPUrl
LDAPUrl.
Definition: ldapurl.h:43
TDEABC::LDAPUrl::setScope
void setScope(Scope scope)
Sets the scope part of the LDAP Url.
Definition: ldapurl.h:75
TDEABC::LDAPUrl::setAttributes
void setAttributes(const TQStringList &attributes)
Sets the attributes part of the LDAP Url.
Definition: ldapurl.h:69
TDEABC::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
TDEABC::LDAPUrl::setFilter
void setFilter(TQString filter)
Sets the filter part of the LDAP Url.
Definition: ldapurl.h:80
TDEABC::LDAPUrl::attributes
const TQStringList & attributes()
Returns the attributes part of the LDAP Url.
Definition: ldapurl.h:67
TDEABC::LDAPUrl::filter
const TQString & filter() const
Returns the filter part of the LDAP Url.
Definition: ldapurl.h:78
TDEABC::LDAPUrl::scope
Scope scope() const
Returns the scope part of the LDAP Url.
Definition: ldapurl.h:73
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.