20 #ifndef AKONADI_COLLECTIONDIALOG_MOBILE_P_H
21 #define AKONADI_COLLECTIONDIALOG_MOBILE_P_H
23 #include "collectiondialog.h"
26 class QDeclarativeView;
27 class QSortFilterProxyModel;
31 class AsyncSelectionHandler;
32 class EntityRightsFilterModel;
33 class EntityTreeModel;
35 class CollectionFilterProxyModel;
37 class CollectionDialog::Private :
public QObject
41 Q_PROPERTY( QString descriptionText READ descriptionText NOTIFY descriptionTextChanged )
42 Q_PROPERTY(
bool okButtonEnabled READ okButtonEnabled NOTIFY buttonStatusChanged )
43 Q_PROPERTY(
bool cancelButtonEnabled READ cancelButtonEnabled NOTIFY buttonStatusChanged )
44 Q_PROPERTY(
bool createButtonEnabled READ createButtonEnabled NOTIFY buttonStatusChanged )
45 Q_PROPERTY(
bool createButtonVisible READ createButtonVisible NOTIFY buttonStatusChanged )
48 Private( QAbstractItemModel *customModel,
CollectionDialog *parent, CollectionDialogOptions options );
52 void slotSelectionChanged();
53 void slotAddChildCollection();
54 void slotCollectionCreationResult( KJob* job );
55 void slotCollectionAvailable(
const QModelIndex &index );
59 void setDescriptionText(
const QString &text );
60 QString descriptionText()
const;
62 bool okButtonEnabled()
const;
63 bool cancelButtonEnabled()
const;
64 bool createButtonEnabled()
const;
65 bool createButtonVisible()
const;
71 void setCurrentIndex(
int index );
72 void setFilterText(
const QString &text );
73 void selectionChanged(
const QItemSelection&,
const QItemSelection& );
76 void descriptionTextChanged();
77 void buttonStatusChanged();
78 void selectionChanged(
int row );
82 ChangeRecorder *mMonitor;
83 EntityTreeModel *mModel;
84 CollectionFilterProxyModel *mMimeTypeFilterModel;
85 EntityRightsFilterModel *mRightsFilterModel;
86 AsyncSelectionHandler *mSelectionHandler;
87 QItemSelectionModel *mSelectionModel;
88 QSortFilterProxyModel *mFilterModel;
90 QAbstractItemView::SelectionMode mSelectionMode;
91 QDeclarativeView *mView;
92 bool mAllowToCreateNewChildCollection;
93 QString mDescriptionText;
94 bool mOkButtonEnabled;
95 bool mCancelButtonEnabled;
96 bool mCreateButtonEnabled;
CollectionDialog(QWidget *parent=0)
Creates a new collection dialog.
Represents a collection of PIM items.
void changeCollectionDialogOptions(CollectionDialogOptions options)
Change collection dialog options.