akonadi/kabc
collectioncombobox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef COLLECTIONCOMBOBOX_H
00021 #define COLLECTIONCOMBOBOX_H
00022
00023 #include <QtGui/QWidget>
00024
00025 #include <akonadi/collection.h>
00026
00027 class QAbstractItemModel;
00028
00029 namespace KABC {
00030
00036 class CollectionComboBox : public QWidget
00037 {
00038 Q_OBJECT
00039
00040 public:
00046 CollectionComboBox( QWidget *parent = 0 );
00047
00051 ~CollectionComboBox();
00052
00056 void setModel( QAbstractItemModel *model );
00057
00061 Akonadi::Collection selectedCollection() const;
00062
00063 Q_SIGNALS:
00069 void selectionChanged( const Akonadi::Collection &identifier );
00070
00071 private:
00072 class Private;
00073 Private* const d;
00074
00075 Q_PRIVATE_SLOT( d, void activated( int ) )
00076 };
00077
00078 }
00079
00080 #endif