KLDAPCore::LdapModel Class
The LdapModel class. More...
| Header: | #include <KLDAPCore/LdapModel> |
| CMake: | find_package(KPim6LdapCore REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::LdapCore) |
| Inherits: | QAbstractListModel |
Public Functions
| LdapModel(QObject *parent = nullptr) | |
| virtual | ~LdapModel() override |
| void | insertServer(const KLDAPCore::LdapServer &server) |
| QList<KLDAPCore::LdapModel::ServerInfo> | ldapServerInfo() const |
| void | load() |
| void | removeServer(int index) |
| void | save() |
| void | setLdapServerInfo(const QList<KLDAPCore::LdapModel::ServerInfo> &newLdapServerInfo) |
Reimplemented Public Functions
| virtual int | columnCount(const QModelIndex &parent) const override |
| virtual QVariant | data(const QModelIndex &index, int role = Qt::DisplayRole) const override |
| virtual Qt::ItemFlags | flags(const QModelIndex &index) const override |
| virtual int | rowCount(const QModelIndex &parent = QModelIndex()) const override |
| virtual bool | setData(const QModelIndex &modelIndex, const QVariant &value, int role) override |
Detailed Description
Member Function Documentation
[explicit] LdapModel::LdapModel(QObject *parent = nullptr)
[override virtual noexcept] LdapModel::~LdapModel()
[override virtual] int LdapModel::columnCount(const QModelIndex &parent) const
Reimplements: QAbstractItemModel::columnCount(const QModelIndex &parent) const.
[override virtual] QVariant LdapModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const
Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.
See also setData().
[override virtual] Qt::ItemFlags LdapModel::flags(const QModelIndex &index) const
Reimplements: QAbstractListModel::flags(const QModelIndex &index) const.
void LdapModel::insertServer(const KLDAPCore::LdapServer &server)
QList<KLDAPCore::LdapModel::ServerInfo> LdapModel::ldapServerInfo() const
See also setLdapServerInfo().
void LdapModel::load()
void LdapModel::removeServer(int index)
[override virtual] int LdapModel::rowCount(const QModelIndex &parent = QModelIndex()) const
Reimplements: QAbstractItemModel::rowCount(const QModelIndex &parent) const.
void LdapModel::save()
[override virtual] bool LdapModel::setData(const QModelIndex &modelIndex, const QVariant &value, int role)
Reimplements: QAbstractItemModel::setData(const QModelIndex &index, const QVariant &value, int role).
See also data().
void LdapModel::setLdapServerInfo(const QList<KLDAPCore::LdapModel::ServerInfo> &newLdapServerInfo)
See also ldapServerInfo().