ICalendarObjects

Since: BlackBerry 10.0.0

#include <bb/pim/calendar/ICalendarObjects>

To link against this class, add the following line to your .pro file: LIBS += -lbbpim

Container for iCalendar objects.

This holds objects constructed by CalendarService::readICalendarFile from data in an iCalendar file.


Overview

Public Functions Index

ICalendarObjects ()
ICalendarObjects (const ICalendarObjects &other)
~ICalendarObjects ()
voidaddEvent (const CalendarEvent &event)
voidaddTodo (const ICalendarTodo &todo)
QList< CalendarEvent >events () const
boolisValid () const
ICalendarObjects &operator= (const ICalendarObjects &other)
voidresetEvents ()
voidresetTodos ()
voidsetEvents (const QList< CalendarEvent > &events)
voidsetTodos (const QList< ICalendarTodo > &todos)
QList< ICalendarTodo >todos () const

Public Functions

ICalendarObjects ()

Constructor.

Creates an object

Since:

BlackBerry 10.0.0

ICalendarObjects (

Copy constructor.

Creates an object with values copied from the one passed as parameter.

Since:

BlackBerry 10.0.0

~ICalendarObjects ()

Destructor.

Class destructor

Since:

BlackBerry 10.0.0

void addEvent (

Adds an event.

Puts a new event at the end of the list of events.

Parameters
event

object to be added

Since:

BlackBerry 10.0.0

void addTodo (

Adds a to-do.

Puts a new to-do at the end of the object's list of to-dos.

Parameters
todo

object to be added

Since:

BlackBerry 10.0.0

QList< CalendarEvent > events ()

Events in the iCalendar file.

Returns the calendar events (VEVENT) found in the iCalendar file.

Return:

The attribute's value.

Since:

BlackBerry 10.0.0

bool isValid ()

Object correctness.

Checks if the object's attributes have acceptable values.

Return:

True if the object is valid, false otherwise.

Since:

BlackBerry 10.0.0

ICalendarObjects & operator= (

Assignment operator.

Updates the object's fields with values from the one passed as parameter.

Return:

Reference to the object that received the assignment.

Since:

BlackBerry 10.0.0

void resetEvents ()

Removes all events.

Clears the list of events.

Since:

BlackBerry 10.0.0

void resetTodos ()

Removes all to-dos.

Clears the list of to-dos.

Since:

BlackBerry 10.0.0

void setEvents (

Setter for the events' list.

Changes the list of events.

Parameters
events

new value for the attribute

Since:

BlackBerry 10.0.0

void setTodos (

Setter for the list of to-dos.

Assigns a new list of to-dos to the object.

Parameters
todos

new value for the attribute

Since:

BlackBerry 10.0.0

QList< ICalendarTodo > todos ()

To-dos in the iCalendar file.

Returns the to-dos (VTODO) found in the iCalendar file.

Return:

The attribute's value.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus