00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AKONADI_ETMSTATESAVER_H
00023 #define AKONADI_ETMSTATESAVER_H
00024
00025 #include <kviewstatesaver.h>
00026
00027 #include "collection.h"
00028 #include "item.h"
00029
00030 #include "akonadi_export.h"
00031
00032 namespace Akonadi
00033 {
00034
00035 class AKONADI_EXPORT ETMViewStateSaver : public KViewStateSaver
00036 {
00037 Q_OBJECT
00038 public:
00039 ETMViewStateSaver(QObject *parent = 0);
00040
00041 void selectCollections( const Akonadi::Collection::List &list );
00042 void selectCollections( const QList<Akonadi::Collection::Id> &list );
00043 void selectItems( const Akonadi::Item::List &list );
00044 void selectItems( const QList<Akonadi::Item::Id> &list );
00045
00046 protected:
00047 QModelIndex indexFromConfigString(const QAbstractItemModel *model, const QString &key) const;
00048 QString indexToConfigString(const QModelIndex &index) const;
00049
00050 };
00051
00052 }
00053
00054 #endif