• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

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

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal