/usr/include/kldap/ldapdn.h is in kdepimlibs5-dev 4:4.13.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | /*
This file is part of libkldap.
Copyright (c) 2006 Sean Harmer <sh@theharmers.co.uk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KLDAP_LDAPDN_H
#define KLDAP_LDAPDN_H
#include "kldap_export.h"
#include <QtCore/QStringList>
#include <kldap/kldap_export.h>
namespace KLDAP {
class KLDAP_EXPORT LdapDN
{
public:
explicit LdapDN();
explicit LdapDN( const QString &dn );
LdapDN( const LdapDN &that );
LdapDN &operator=( const LdapDN &that );
~LdapDN();
void clear();
bool isEmpty() const;
/**
* \returns A QString representing the DN.
*/
QString toString() const;
/**
* \param depth The depth of the DN to return using a zero-based index.
* \returns A QString representing the DN levels deep in the directory.
*/
QString toString( int depth ) const;
/**
* \returns A QString representing the RDN of this DN.
*/
QString rdnString() const;
/**
* \param depth The depth of the RDN to return using a zero-based index.
* \returns A QString representing the RDN levels deep in the directory.
*/
QString rdnString( int depth ) const;
/**
* \returns True if this is a valid DN, false otherwise.
*/
bool isValid() const;
/**
* \returns The depth of this DN in the directory.
*/
int depth() const;
bool operator == ( const LdapDN &rhs ) const;
bool operator != ( const LdapDN &rhs ) const;
private:
class LdapDNPrivate;
LdapDNPrivate *const d;
};
}
#endif
|