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

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
  • model
kgpgsearchresultmodel.h
Go to the documentation of this file.
1 /* Copyright 2009,2010 Rolf Eike Beer <kde@opensource.sf-tec.de>
2  *
3  * This program is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU General Public License as
5  * published by the Free Software Foundation; either version 2 of
6  * the License or (at your option) version 3 or any later version
7  * accepted by the membership of KDE e.V. (or its successor approved
8  * by the membership of KDE e.V.), which shall act as a proxy
9  * defined in Section 14 of version 3 of the license.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef KGPGSEARCHRESULTMODEL_H
20 #define KGPGSEARCHRESULTMODEL_H
21 
22 #include <QAbstractItemModel>
23 
24 class QString;
25 class QStringList;
26 
27 class KGpgSearchResultModelPrivate;
28 
36 class KGpgSearchResultModel : public QAbstractItemModel {
37  Q_OBJECT
38 public:
39  explicit KGpgSearchResultModel(QObject *parent = NULL);
40  ~KGpgSearchResultModel();
41 
42  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
43  virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
44  virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
45  virtual QModelIndex parent(const QModelIndex &index) const;
46  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
47  QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
48 
54  const QString &idForIndex(const QModelIndex &index) const;
55 
56 public slots:
57  void slotAddKey(QStringList lines);
58 
59 private:
60  KGpgSearchResultModelPrivate * const d;
61 };
62 
63 #endif
QModelIndex
KGpgSearchResultModel::rowCount
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: kgpgsearchresultmodel.cpp:304
KGpgSearchResultModel::slotAddKey
void slotAddKey(QStringList lines)
Definition: kgpgsearchresultmodel.cpp:355
KGpgSearchResultModel::~KGpgSearchResultModel
~KGpgSearchResultModel()
Definition: kgpgsearchresultmodel.cpp:180
QObject
KGpgSearchResultModel
Model of the results of a keyserver search.
Definition: kgpgsearchresultmodel.h:36
QString
QStringList
KGpgSearchResultModel::KGpgSearchResultModel
KGpgSearchResultModel(QObject *parent=NULL)
Definition: kgpgsearchresultmodel.cpp:175
KGpgSearchResultModel::index
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kgpgsearchresultmodel.cpp:261
KGpgSearchResultModel::columnCount
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: kgpgsearchresultmodel.cpp:243
KGpgSearchResultModel::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: kgpgsearchresultmodel.cpp:324
KGpgSearchResultModel::idForIndex
const QString & idForIndex(const QModelIndex &index) const
get the key fingerprint for the given index
Definition: kgpgsearchresultmodel.cpp:343
KGpgSearchResultModel::data
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kgpgsearchresultmodel.cpp:186
QAbstractItemModel
QObject::parent
QObject * parent() const
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

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