• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
  • configuredialog
  • configureagents
configureagentlistmodel.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 
19 #ifndef CONFIGUREAGENTLISTMODEL_H
20 #define CONFIGUREAGENTLISTMODEL_H
21 
22 #include <QAbstractItemModel>
23 #include <QVector>
24 #include "configureagentitem.h"
25 
26 
27 class ConfigureAgentListModel: public QAbstractListModel
28 {
29  Q_OBJECT
30 
31 public:
32  enum Role
33  {
34  DescriptionRole = Qt::UserRole + 1,
35  PathRole,
36  InterfaceNameRole,
37  FailedRole
38  };
39  ConfigureAgentListModel(QObject *parent = 0);
40 
41  virtual ~ConfigureAgentListModel();
42 
43  virtual bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex());
44  virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
45  virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
46  virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
47 
48 private:
49  QVector<ConfigureAgentItem> mAgentItems;
50 };
51 
52 #endif // CONFIGUREAGENTLISTMODEL_H
QModelIndex
ConfigureAgentListModel::insertRows
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: configureagentlistmodel.cpp:33
ConfigureAgentListModel::InterfaceNameRole
Definition: configureagentlistmodel.h:36
ConfigureAgentListModel::PathRole
Definition: configureagentlistmodel.h:35
ConfigureAgentListModel::data
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: configureagentlistmodel.cpp:87
QObject
ConfigureAgentListModel::ConfigureAgentListModel
ConfigureAgentListModel(QObject *parent=0)
Definition: configureagentlistmodel.cpp:23
QAbstractListModel::index
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
ConfigureAgentListModel::FailedRole
Definition: configureagentlistmodel.h:37
QAbstractListModel
ConfigureAgentListModel::DescriptionRole
Definition: configureagentlistmodel.h:34
QVector< ConfigureAgentItem >
ConfigureAgentListModel::rowCount
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: configureagentlistmodel.cpp:118
ConfigureAgentListModel
Definition: configureagentlistmodel.h:27
ConfigureAgentListModel::Role
Role
Definition: configureagentlistmodel.h:32
ConfigureAgentListModel::~ConfigureAgentListModel
virtual ~ConfigureAgentListModel()
Definition: configureagentlistmodel.cpp:29
QObject::parent
QObject * parent() const
ConfigureAgentListModel::setData
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: configureagentlistmodel.cpp:53
configureagentitem.h
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



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