akonadi
22 #ifndef AKONADI_CONTACTGROUPMODEL_P_H
23 #define AKONADI_CONTACTGROUPMODEL_P_H
25 #include <QtCore/QAbstractItemModel>
27 #include <kabc/contactgroup.h>
32 class ContactGroupModel :
public QAbstractItemModel
38 IsReferenceRole = Qt::UserRole,
42 explicit ContactGroupModel( QObject *parent = 0 );
45 void loadContactGroup(
const KABC::ContactGroup &contactGroup );
46 bool storeContactGroup( KABC::ContactGroup &contactGroup )
const;
48 QString lastErrorMessage()
const;
50 virtual QModelIndex index(
int row,
int col,
const QModelIndex &parent = QModelIndex() )
const;
51 virtual QModelIndex parent(
const QModelIndex &child )
const;
52 virtual QVariant data(
const QModelIndex &index,
int role )
const;
53 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole );
54 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const;
55 virtual Qt::ItemFlags flags(
const QModelIndex &index )
const;
56 virtual int columnCount(
const QModelIndex &parent = QModelIndex() )
const;
57 virtual int rowCount(
const QModelIndex &parent = QModelIndex() )
const;
59 virtual bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() );
65 Q_PRIVATE_SLOT( d,
void itemFetched( KJob* ) )
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.