KLdap
8#include "kldap_core_export.h"
9#include <KLDAPCore/LdapServer>
10#include <QAbstractListModel>
13class KLDAP_CORE_EXPORT LdapModel :
public QAbstractListModel
17 explicit LdapModel(QObject *parent =
nullptr);
18 ~LdapModel()
override;
24 EnabledActivitiesRole,
32 KLDAPCore::LdapServer server;
35 [[nodiscard]] QVariant data(
const QModelIndex &index,
int role =
Qt::DisplayRole)
const override;
36 [[nodiscard]]
int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
37 [[nodiscard]]
int columnCount(
const QModelIndex &parent)
const override;
38 bool setData(
const QModelIndex &modelIndex,
const QVariant &value,
int role)
override;
40 [[nodiscard]] QList<ServerInfo> ldapServerInfo()
const;
41 void setLdapServerInfo(
const QList<ServerInfo> &newLdapServerInfo);
43 [[nodiscard]]
Qt::ItemFlags flags(
const QModelIndex &index)
const override;
48 void insertServer(
const KLDAPCore::LdapServer &server);
50 void removeServer(
int index);
53 KLDAP_CORE_NO_EXPORT
void init();
54 QList<ServerInfo> mLdapServerInfo;
57Q_DECLARE_METATYPE(KLDAPCore::LdapModel::ServerInfo)
58Q_DECLARE_TYPEINFO(KLDAPCore::LdapModel::ServerInfo, Q_RELOCATABLE_TYPE);
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:20 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.