KLDAP Library
21#ifndef KLDAP_LDAPMODEL_H
22#define KLDAP_LDAPMODEL_H
24#include <QtCore/QAbstractItemModel>
26#include "ldapconnection.h"
27#include "ldapobject.h"
28#include "kldap_export.h"
42class KLDAP_EXPORT
LdapModel :
public QAbstractItemModel
47 NodeTypeRole = Qt::UserRole + 1
51 DistinguishedName = 0,
63 explicit LdapModel( QObject *parent = 0 );
89 virtual QModelIndex index(
int row,
int col,
const QModelIndex &parent )
const;
93 virtual QModelIndex parent(
const QModelIndex &child )
const;
97 virtual QVariant data(
const QModelIndex &index,
int role )
const;
102 virtual bool setData(
const QModelIndex &index,
103 const QVariant &value,
104 int role = Qt::EditRole );
108 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const;
112 virtual Qt::ItemFlags flags(
const QModelIndex &index )
const;
116 virtual int columnCount(
const QModelIndex &parent )
const;
120 virtual int rowCount(
const QModelIndex &parent )
const;
124 virtual bool hasChildren(
const QModelIndex &parent )
const;
128 virtual bool canFetchMore(
const QModelIndex &parent )
const;
132 virtual void fetchMore(
const QModelIndex &parent );
137 virtual bool insertRows(
int row,
int count,
138 const QModelIndex &parent = QModelIndex() );
143 virtual bool removeRows(
int row,
int count,
144 const QModelIndex &parent = QModelIndex() );
149 virtual void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder );
158 virtual Qt::DropActions supportedDropActions()
const;
163 virtual QMimeData *mimeData(
const QModelIndexList &indexes )
const;
168 virtual bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
169 int row,
int column,
const QModelIndex &parent );
183 bool hasChildrenOfType(
const QModelIndex &parent, LdapDataType type )
const;
190 virtual void revert();
195 virtual bool submit();
This class represents a connection to an LDAP server.
A ModelView interface to an LDAP tree.
void ready()
The ready() signal is emitted when the model is ready for use by other components.
This class represents an LDAP Object.
This class starts a search operation on a LDAP server and returns the search values via a Qt signal.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.