• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
kcalmodel.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2008 Bruno Virlet <bvirlet@kdemail.net>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef CALENDARSUPPORT_KCALMODEL_H
21 #define CALENDARSUPPORT_KCALMODEL_H
22 
23 #include "calendarsupport_export.h"
24 #include <Akonadi/ItemModel>
25 
26 namespace CalendarSupport {
27 
28 class CALENDARSUPPORT_EXPORT KCalModel : public Akonadi::ItemModel
29 {
30  public:
31  enum Column {
32  Summary,
33  DateTimeStart,
34  DateTimeEnd,
35  Type
36  };
37 
38  explicit KCalModel( QObject *parent = 0 );
39 
40  virtual ~KCalModel();
41 
42  virtual int rowCount( const QModelIndex & parent = QModelIndex() ) const;
43  virtual int columnCount( const QModelIndex & parent = QModelIndex() ) const;
44  virtual QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const;
45  virtual QVariant headerData( int section, Qt::Orientation orientation,
46  int role = Qt::DisplayRole ) const;
50  virtual QStringList mimeTypes() const;
51 
52  private:
53  class Private;
54  Private *const d;
55 };
56 
57 }
58 
59 #endif
60 
CalendarSupport::KCalModel::DateTimeStart
Definition: kcalmodel.h:33
QObject
CalendarSupport::KCalModel::Column
Column
Definition: kcalmodel.h:31
calendarsupport_export.h
CalendarSupport::KCalModel::DateTimeEnd
Definition: kcalmodel.h:34
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
CalendarSupport::KCalModel::Summary
Definition: kcalmodel.h:32
CalendarSupport::KCalModel
Definition: kcalmodel.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal