Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadiconfigdialog.h
Show All 20 Lines | 1 | /* This file is part of Zanshin | |||
---|---|---|---|---|---|
21 | USA. | 21 | USA. | ||
22 | */ | 22 | */ | ||
23 | 23 | | |||
24 | #ifndef AKONADI_CONFIGDIALOG_H | 24 | #ifndef AKONADI_CONFIGDIALOG_H | ||
25 | #define AKONADI_CONFIGDIALOG_H | 25 | #define AKONADI_CONFIGDIALOG_H | ||
26 | 26 | | |||
27 | #include <QDialog> | 27 | #include <QDialog> | ||
28 | 28 | | |||
29 | #include "akonadistorageinterface.h" | ||||
30 | | ||||
29 | namespace Akonadi | 31 | namespace Akonadi | ||
30 | { | 32 | { | ||
31 | 33 | | |||
34 | class AgentFilterProxyModel; | ||||
32 | class AgentInstanceWidget; | 35 | class AgentInstanceWidget; | ||
33 | 36 | | |||
34 | class ConfigDialog : public QDialog | 37 | class ConfigDialog : public QDialog | ||
35 | { | 38 | { | ||
36 | Q_OBJECT | 39 | Q_OBJECT | ||
37 | public: | 40 | public: | ||
38 | explicit ConfigDialog(QWidget *parent = 0); | 41 | explicit ConfigDialog(StorageInterface::FetchContentTypes types, QWidget *parent = 0); | ||
39 | 42 | | |||
40 | private slots: | 43 | private slots: | ||
41 | void onAddTriggered(); | 44 | void onAddTriggered(); | ||
42 | void onRemoveTriggered(); | 45 | void onRemoveTriggered(); | ||
43 | void onConfigureTriggered(); | 46 | void onConfigureTriggered(); | ||
44 | 47 | | |||
45 | private: | 48 | private: | ||
49 | void applyContentTypes(AgentFilterProxyModel *model); | ||||
50 | | ||||
46 | Akonadi::AgentInstanceWidget *m_agentInstanceWidget; | 51 | Akonadi::AgentInstanceWidget *m_agentInstanceWidget; | ||
52 | const StorageInterface::FetchContentTypes m_types; | ||||
47 | }; | 53 | }; | ||
48 | 54 | | |||
49 | } | 55 | } | ||
50 | 56 | | |||
51 | #endif // AKONADI_CONFIGDIALOG_H | 57 | #endif // AKONADI_CONFIGDIALOG_H | ||
52 | 58 | |