00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_ENTITYTREEVIEWSTATESAVER_H
00021 #define AKONADI_ENTITYTREEVIEWSTATESAVER_H
00022
00023 #include "akonadi_export.h"
00024
00025 #include <QtCore/QObject>
00026
00027 class QTreeView;
00028 class KConfigGroup;
00029
00030 namespace Akonadi {
00031
00032 class EntityTreeViewStateSaverPrivate;
00033
00089 class AKONADI_EXPORT_DEPRECATED EntityTreeViewStateSaver : public QObject
00090 {
00091 Q_OBJECT
00092
00093 public:
00099 explicit EntityTreeViewStateSaver( QTreeView* view );
00100
00104 ~EntityTreeViewStateSaver();
00105
00111 void saveState( KConfigGroup &configGroup ) const;
00112
00120 void restoreState( const KConfigGroup &configGroup ) const;
00121
00122 private:
00123
00124 EntityTreeViewStateSaverPrivate* const d;
00125 Q_PRIVATE_SLOT( d, void rowsInserted( const QModelIndex&, int, int ) )
00126 Q_PRIVATE_SLOT( d, void restoreScrollBarState() )
00127
00128 };
00129
00130 }
00131
00132 #endif