akonadi
collectiondialog_mobile_p.h
00001 00002 #ifndef AKONADI_COLLECTIONDIALOG_MOBILE_P_H 00003 #define AKONADI_COLLECTIONDIALOG_MOBILE_P_H 00004 00005 #include "collectiondialog.h" 00006 00007 class KJob; 00008 class QDeclarativeView; 00009 class QSortFilterProxyModel; 00010 00011 namespace Akonadi { 00012 00013 class AsyncSelectionHandler; 00014 class EntityRightsFilterModel; 00015 class EntityTreeModel; 00016 class ChangeRecorder; 00017 class CollectionFilterProxyModel; 00018 00019 class CollectionDialog::Private : public QObject 00020 { 00021 Q_OBJECT 00022 00023 Q_PROPERTY( QString descriptionText READ descriptionText NOTIFY descriptionTextChanged ) 00024 Q_PROPERTY( bool okButtonEnabled READ okButtonEnabled NOTIFY buttonStatusChanged ) 00025 Q_PROPERTY( bool cancelButtonEnabled READ cancelButtonEnabled NOTIFY buttonStatusChanged ) 00026 Q_PROPERTY( bool createButtonEnabled READ createButtonEnabled NOTIFY buttonStatusChanged ) 00027 Q_PROPERTY( bool createButtonVisible READ createButtonVisible NOTIFY buttonStatusChanged ) 00028 00029 public: 00030 Private( QAbstractItemModel *customModel, CollectionDialog *parent, CollectionDialogOptions options ); 00031 00032 ~Private(); 00033 00034 void slotSelectionChanged(); 00035 void slotAddChildCollection(); 00036 void slotCollectionCreationResult( KJob* job ); 00037 void slotCollectionAvailable( const QModelIndex &index ); 00038 bool canCreateCollection( const Akonadi::Collection &parentCollection ) const; 00039 void changeCollectionDialogOptions( CollectionDialogOptions options ); 00040 00041 void setDescriptionText( const QString &text ); 00042 QString descriptionText() const; 00043 00044 bool okButtonEnabled() const; 00045 bool cancelButtonEnabled() const; 00046 bool createButtonEnabled() const; 00047 bool createButtonVisible() const; 00048 00049 public Q_SLOTS: 00050 void okClicked(); 00051 void cancelClicked(); 00052 void createClicked(); 00053 void setCurrentIndex( int index ); 00054 void setFilterText( const QString &text ); 00055 void selectionChanged( const QItemSelection&, const QItemSelection& ); 00056 00057 Q_SIGNALS: 00058 void descriptionTextChanged(); 00059 void buttonStatusChanged(); 00060 void selectionChanged( int row ); 00061 00062 public: 00063 CollectionDialog *mParent; 00064 ChangeRecorder *mMonitor; 00065 EntityTreeModel *mModel; 00066 CollectionFilterProxyModel *mMimeTypeFilterModel; 00067 EntityRightsFilterModel *mRightsFilterModel; 00068 AsyncSelectionHandler *mSelectionHandler; 00069 QItemSelectionModel *mSelectionModel; 00070 QSortFilterProxyModel *mFilterModel; 00071 00072 QAbstractItemView::SelectionMode mSelectionMode; 00073 QDeclarativeView *mView; 00074 bool mAllowToCreateNewChildCollection; 00075 QString mDescriptionText; 00076 bool mOkButtonEnabled; 00077 bool mCancelButtonEnabled; 00078 bool mCreateButtonEnabled; 00079 }; 00080 00081 } 00082 00083 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:20 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:20 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.