28 namespace GrantleeTheme {
29 class GrantleeThemeManager;
34 class ContactGroupViewer;
36 class ContactsFilterProxyModel;
37 class EntityMimeTypeFilterModel;
41 class StandardContactActionManager;
42 class EntityTreeModel;
45 namespace KAddressBookGrantlee {
46 class GrantleeContactFormatter;
47 class GrantleeContactGroupFormatter;
51 class KActionCollection;
54 class QAbstractItemModel;
55 class QItemSelectionModel;
68 explicit MainWidget( KXMLGUIClient *guiClient, QWidget *parent = 0 );
81 void itemSelected(
const Akonadi::Item &item );
82 void itemSelectionChanged(
const QModelIndex &,
const QModelIndex & );
83 void selectFirstItem();
85 void setViewMode( QAction *action );
86 void setQRCodeShow(
bool on );
91 void slotGrantleeThemeSelected();
92 void slotGrantleeThemesUpdated();
93 void slotCheckNewCalendar(
const QModelIndex &parent,
int begin,
int end);
96 void initGrantleeThemeName();
98 void setupActions( KActionCollection * );
100 void setViewMode(
int mode );
101 void saveSplitterStates()
const;
102 void restoreSplitterStates();
104 QAbstractItemModel *allContactsModel();
111 Akonadi::Collection currentAddressBook()
const;
113 Akonadi::EntityMimeTypeFilterModel *mCollectionTree;
114 Akonadi::EntityMimeTypeFilterModel *mItemTree;
115 Akonadi::EntityMimeTypeFilterModel *mAllContactsModel;
116 Akonadi::ContactsFilterProxyModel *mContactsFilterModel;
119 Akonadi::EntityTreeView *mCollectionView;
120 Akonadi::EntityTreeView *mItemView;
121 QWidget *mDetailsPane;
122 QStackedWidget *mDetailsViewStack;
125 QSplitter *mMainWidgetSplitter1;
126 QSplitter *mMainWidgetSplitter2;
127 Akonadi::ContactViewer *mContactDetails;
128 Akonadi::ContactGroupViewer *mContactGroupDetails;
129 QWidget *mEmptyDetails;
130 Akonadi::StandardContactActionManager *mActionManager;
131 QItemSelectionModel *mCollectionSelectionModel;
133 QActionGroup *mViewModeGroup;
137 KXMLGUIClient *mXmlGuiClient;
138 KAddressBookGrantlee::GrantleeContactFormatter *mFormatter;
139 KAddressBookGrantlee::GrantleeContactGroupFormatter *mGroupFormatter;
140 GrantleeTheme::GrantleeThemeManager *mGrantleeThemeManager;
141 Akonadi::EntityTreeModel *entityTreeModel()
const;
#define KADDRESSBOOK_EXPORT
The class that manages import and export of contacts.
A manager for the contacts model columns.