akonadi
subscriptionchangeproxymodel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_SUBSCRIPTIONCHANGEPROXYMODEL_H
00021 #define AKONADI_SUBSCRIPTIONCHANGEPROXYMODEL_H
00022
00023 #include <QtGui/QSortFilterProxyModel>
00024
00025 namespace Akonadi {
00026
00033 class SubscriptionChangeProxyModel : public QSortFilterProxyModel
00034 {
00035 Q_OBJECT
00036 public:
00043 explicit SubscriptionChangeProxyModel( bool subscribed, QObject *parent = 0 );
00044
00048 ~SubscriptionChangeProxyModel();
00049
00050 QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const;
00051 QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
00052
00053 protected:
00054 bool filterAcceptsRow( int row, const QModelIndex &parent ) const;
00055
00056 private:
00057 class Private;
00058 Private* const d;
00059 };
00060
00061 }
00062
00063 #endif