• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KLDAP Library

  • kldap
ldapstructureproxymodel.h
1/*
2 This file is part of libkldap.
3 Copyright (c) 2006 Sean Harmer <sh@theharmers.co.uk>
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 KLDAP_LDAPSTRUCTUREPROXYMODEL_H
22#define KLDAP_LDAPSTRUCTUREPROXYMODEL_H
23
24#include <QSortFilterProxyModel>
25
26#include "kldap_export.h"
27
28namespace KLDAP {
29
30class KLDAP_EXPORT LdapStructureProxyModel : public QSortFilterProxyModel
31{
32 Q_OBJECT
33 public:
34 explicit LdapStructureProxyModel( QObject *parent = 0 );
35 ~LdapStructureProxyModel();
36
37 virtual QVariant data( const QModelIndex &index, int role ) const;
42 virtual bool setData( const QModelIndex &index,
43 const QVariant &value,
44 int role = Qt::EditRole );
45 virtual bool filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent ) const;
46 virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) const;
47 virtual int columnCount( const QModelIndex &parent ) const;
48 virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
49 virtual bool hasChildren( const QModelIndex &parent ) const;
50
51 virtual QModelIndex mapFromSource ( const QModelIndex & sourceIndex ) const;
52 virtual QModelIndex mapToSource ( const QModelIndex & proxyIndex ) const;
53
58 virtual bool insertRows( int row, int count,
59 const QModelIndex &parent = QModelIndex() );
64 virtual bool removeRows( int row, int count,
65 const QModelIndex &parent = QModelIndex() );
70 virtual void sort( int column, Qt::SortOrder order = Qt::AscendingOrder );
71
72 //
73 // Drag and drop support
74 //
79 virtual Qt::DropActions supportedDropActions() const;
84 virtual QMimeData *mimeData( const QModelIndexList &indexes ) const;
89 virtual bool dropMimeData( const QMimeData *data, Qt::DropAction action,
90 int row, int column, const QModelIndex &parent );
91
92 private:
93 class LdapStructureProxyModelPrivate;
94 LdapStructureProxyModelPrivate *const m_d;
95};
96
97}
98#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KLDAP Library

Skip menu "KLDAP Library"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal