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

« back to all changes in this revision

Viewing changes to akonadi/akonadi_next/mailmodel.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 the Akonadi Mail example.
3
 
 *
4
 
 * Copyright 2009  Stephen Kelly <steveire@gmail.com>
5
 
 *
6
 
 * This library is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU Lesser General Public
8
 
 * License as published by the Free Software Foundation; either
9
 
 * version 2.1 of the License, or (at your option) any later version.
10
 
 *
11
 
 * This library 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 GNU
14
 
 * Lesser General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Lesser General Public
17
 
 * License along with this library; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
 
 * 02110-1301  USA
20
 
 */
21
 
 
22
 
#ifndef MAILMODEL_H
23
 
#define MAILMODEL_H
24
 
 
25
 
#include "entitytreemodel.h"
26
 
 
27
 
#include "akonadi_next_export.h"
28
 
 
29
 
using namespace Akonadi;
30
 
 
31
 
class MailModelPrivate;
32
 
 
33
 
class AKONADI_NEXT_EXPORT MailModel : public EntityTreeModel
34
 
{
35
 
  Q_OBJECT
36
 
public:
37
 
 
38
 
  MailModel(Session *session, Monitor *monitor, QObject *parent = 0);
39
 
  virtual ~MailModel();
40
 
 
41
 
  virtual QVariant getData(const Item &item, int column, int role=Qt::DisplayRole) const;
42
 
 
43
 
  virtual QVariant getData(const Collection &collection, int column, int role=Qt::DisplayRole) const;
44
 
 
45
 
  virtual int columnCount(const QModelIndex &index = QModelIndex()) const;
46
 
 
47
 
  virtual QVariant getHeaderData( int section, Qt::Orientation orientation, int role, int headerSet ) const;
48
 
 
49
 
private:
50
 
    Q_DECLARE_PRIVATE(MailModel)
51
 
    MailModelPrivate *d_ptr;
52
 
};
53
 
 
54
 
#endif