~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to akonadi/clients/akonalendar/mainwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of Akonadi.
3
 
 
4
 
    Copyright (c) 2008 Bruno Virlet <bvirlet@kdemail.net>
5
 
 
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.
10
 
 
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.
15
 
 
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,
19
 
    USA.
20
 
*/
21
 
 
22
 
#ifndef MAINWIDGET_H
23
 
#define MAINWIDGET_H
24
 
 
25
 
#include <QtGui/QTreeView>
26
 
#include <QSplitter>
27
 
#include <QHBoxLayout>
28
 
 
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"
35
 
 
36
 
class MainWindow;
37
 
 
38
 
class MainWidget : public QWidget
39
 
{
40
 
    Q_OBJECT
41
 
 
42
 
    public:
43
 
      MainWidget( MainWindow* parent = 0 );
44
 
 
45
 
    private slots:
46
 
      void collectionClicked( const Akonadi::Collection& collection );
47
 
      void itemActivated( const QModelIndex& index );
48
 
 
49
 
    private:
50
 
      MainWindow *mMainWindow;
51
 
 
52
 
      // Views
53
 
      Akonadi::CollectionView *mCollectionList;
54
 
      QTreeView *mIncidenceList;
55
 
      Akonadi::KCalItemBrowser *mIncidenceViewer;
56
 
 
57
 
      // Models
58
 
      Akonadi::CollectionModel *mCollectionModel;
59
 
      Akonadi::CollectionFilterProxyModel *mCollectionProxyModel;
60
 
      Akonadi::KCalModel *mIncidenceModel;
61
 
 
62
 
};
63
 
 
64
 
#endif
65