20#ifndef AKONADI_COLLECTIONDIALOG_MOBILE_P_H
21#define AKONADI_COLLECTIONDIALOG_MOBILE_P_H
23#include "collectiondialog.h"
26class QDeclarativeView;
27class QSortFilterProxyModel;
31class AsyncSelectionHandler;
32class EntityRightsFilterModel;
35class CollectionFilterProxyModel;
37class 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);
57 void changeCollectionDialogOptions(CollectionDialogOptions options);
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);
81 CollectionDialog *mParent;
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;
Represents a collection of PIM items.
FreeBusyManager::Singleton.