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

calendarsupport

  • CalendarSupport
  • IncidenceViewer
Public Slots | Public Member Functions | Protected Member Functions | List of all members
CalendarSupport::IncidenceViewer Class Reference

#include <incidenceviewer.h>

Inheritance diagram for CalendarSupport::IncidenceViewer:
Inheritance graph
[legend]

Public Slots

void setIncidence (const Akonadi::Item &incidence, const QDate &activeDate=QDate())
 

Public Member Functions

 IncidenceViewer (Akonadi::ETMCalendar *calendar, QWidget *parent=0)
 
 IncidenceViewer (QWidget *parent=0)
 
 ~IncidenceViewer ()
 
QDate activeDate () const
 
QAbstractItemModel * attachmentModel () const
 
Akonadi::Item incidence () const
 
void setCalendar (Akonadi::ETMCalendar *calendar)
 
void setDefaultMessage (const QString &message)
 
void setDelayedClear (bool delayed)
 
void setHeaderText (const QString &text)
 

Protected Member Functions

void init ()
 

Detailed Description

A viewer component for incidences in Akonadi.

This widgets provides a way to show an incidence from the Akonadi storage.

Example:

using namespace CalendarSupport;
const Item item = ...
IncidenceViewer *viewer = new IncidenceViewer( this );
viewer->setIncidence( item );
Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org
Since
4.5

Definition at line 62 of file incidenceviewer.h.

Constructor & Destructor Documentation

IncidenceViewer::IncidenceViewer ( Akonadi::ETMCalendar *  calendar,
QWidget *  parent = 0 
)
explicit

Creates a new incidence viewer.

*param

Parameters
calendaris a pointer to a Calendar instance.
parentit the parent widget.

Definition at line 140 of file incidenceviewer.cpp.

IncidenceViewer::IncidenceViewer ( QWidget *  parent = 0)
explicit

Creates a new incidence viewer.

*param

Parameters
parentit the parent widget.

Definition at line 147 of file incidenceviewer.cpp.

IncidenceViewer::~IncidenceViewer ( )

Destroys the incidence viewer.

Definition at line 171 of file incidenceviewer.cpp.

Member Function Documentation

QDate IncidenceViewer::activeDate ( ) const

Returns the active date used for the currently displayed incidence.

Definition at line 186 of file incidenceviewer.cpp.

QAbstractItemModel * IncidenceViewer::attachmentModel ( ) const

Returns the attachment model for the currently displayed incidence.

Definition at line 191 of file incidenceviewer.cpp.

Akonadi::Item IncidenceViewer::incidence ( ) const

Returns the incidence that is currently displayed.

Definition at line 181 of file incidenceviewer.cpp.

void IncidenceViewer::init ( )
protected

Initialize the widget settings.

Definition at line 154 of file incidenceviewer.cpp.

void IncidenceViewer::setCalendar ( Akonadi::ETMCalendar *  calendar)

Sets the Calendar for this viewer.

Parameters
calendaris a pointer to a Calendar instance.

Definition at line 176 of file incidenceviewer.cpp.

void IncidenceViewer::setDefaultMessage ( const QString &  message)

Sets the default message that shall be shown if no incidence is set.

Definition at line 205 of file incidenceviewer.cpp.

void IncidenceViewer::setDelayedClear ( bool  delayed)

Sets whether the view shall be cleared as soon as an empty incidence is set (default) or delayed when the next valid incidence is set.

Definition at line 200 of file incidenceviewer.cpp.

void IncidenceViewer::setHeaderText ( const QString &  text)

Sets an additional text that is shown above the incidence.

Definition at line 210 of file incidenceviewer.cpp.

void IncidenceViewer::setIncidence ( const Akonadi::Item &  incidence,
const QDate &  activeDate = QDate() 
)
slot

Sets the incidence that shall be displayed in the viewer.

Parameters
activeDateThe active date is used to calculate the actual date of the selected incidence in case of recurring incidences.

Definition at line 215 of file incidenceviewer.cpp.


The documentation for this class was generated from the following files:
  • incidenceviewer.h
  • incidenceviewer.cpp
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