2
This file is part of Akonadi.
4
Copyright (c) 2008 Bruno Virlet <bvirlet@kdemail.net>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25
#include <QtGui/QTreeView>
27
#include <QHBoxLayout>
29
#include <akonadi/collection.h>
30
#include <akonadi/collectionview.h>
31
#include <akonadi/collectionfilterproxymodel.h>
32
#include <akonadi/collectionmodel.h>
33
#include "kcal/kcalmodel.h"
34
#include "kcal/kcalitembrowser.h"
38
class MainWidget : public QWidget
43
MainWidget( MainWindow* parent = 0 );
46
void collectionClicked( const Akonadi::Collection& collection );
47
void itemActivated( const QModelIndex& index );
50
MainWindow *mMainWindow;
53
Akonadi::CollectionView *mCollectionList;
54
QTreeView *mIncidenceList;
55
Akonadi::KCalItemBrowser *mIncidenceViewer;
58
Akonadi::CollectionModel *mCollectionModel;
59
Akonadi::CollectionFilterProxyModel *mCollectionProxyModel;
60
Akonadi::KCalModel *mIncidenceModel;