KLDAP Library
ldapdn.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KLDAP_LDAPDN_H
00022 #define KLDAP_LDAPDN_H
00023
00024 #include "kldap_export.h"
00025
00026 #include <QtCore/QStringList>
00027
00028 #include <kldap/kldap_export.h>
00029
00030 namespace KLDAP {
00031
00032 class KLDAP_EXPORT LdapDN
00033 {
00034 public:
00035 explicit LdapDN();
00036 explicit LdapDN( const QString &dn );
00037
00038 LdapDN( const LdapDN &that );
00039 LdapDN &operator=( const LdapDN &that );
00040
00041 ~LdapDN();
00042
00043 void clear();
00044
00045 bool isEmpty() const;
00046
00050 QString toString() const;
00051
00056 QString toString( int depth ) const;
00057
00061 QString rdnString() const;
00062
00067 QString rdnString( int depth ) const;
00068
00072 bool isValid() const;
00073
00077 int depth() const;
00078
00079 bool operator == ( const LdapDN &rhs ) const;
00080
00081 bool operator != ( const LdapDN &rhs ) const;
00082
00083 private:
00084 class LdapDNPrivate;
00085 LdapDNPrivate *const d;
00086 };
00087
00088 }
00089
00090 #endif