CalendarEvent
#include <bb/pim/calendar/CalendarEvent>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The CalendarEvent class represents an event or meeting in a user's calendar.
Monthly level: accountId, allDay, busyStatus, endTime, folderId, id, parentId, and startTime
Weekly level: all the attributes in the monthly level plus birthday and subject
Full level: all the attributes in the weekly level plus attendees, bbmConference, body, guid, location, meetingSequence, meetingStatus, recurrence, reminder, sensitivity, timezone, and url
Agenda level: all the attributes in the weekly level plus bbmConference, guid, location, meetingSequence, meetingStatus, recurrence, reminder, sensitivity, timezone, and url
A CalendarEvent is not automatically updated when a synchronization service in the back-end changes the information in the calendar database. You should connect a QObject with the appropriate slots to the signals in CalendarService to be notified of an update and request a new copy of the event when needed.
When you change the attribute of a CalendarEvent, this change does not automatically modify the event in the calendar database. To update the database, you should call CalendarService::updateEvent() and pass the event as an argument.
BlackBerry 10.0.0
Public Functions Index
| CalendarEvent () | |
| ~CalendarEvent () | |
| CalendarEvent (const CalendarEvent &other) | |
| CalendarEvent & | operator= (const CalendarEvent &other) |
| QDateTime | startTime () const |
| QDateTime | endTime () const |
| QString | body () const |
| QString | subject () const |
| EventLocation | location () const |
| QString | timezone () const |
| QString | url () const |
| Recurrence | recurrence () const |
| QList< Attendee > | attendees () const |
| Sensitivity::Type | sensitivity () const |
| BusyStatus::Type | busyStatus () const |
| AccountId | accountId () const |
| FolderId | folderId () const |
| EventId | id () const |
| EventId | parentId () const |
| int | sequence () const |
| int | reminder () const |
| bool | isBirthday () const |
| bool | isAllDay () const |
| BbmConference | bbmConference () const |
| ICalendarData | iCalendarData () const |
| int | meetingStatus () const |
| QString | guid () const |
| QDateTime | originalStartTime () const |
| void | setStartTime (const QDateTime &startTime) |
| void | setEndTime (const QDateTime &endTime) |
| void | setBody (const QString &body) |
| void | setSubject (const QString &subject) |
| void | setLocation (const EventLocation &location) |
| void | setTimezone (const QString &timezone) |
| void | setUrl (const QString &url) |
| void | setRecurrence (const Recurrence &recurrence) |
| void | addAttendee (const Attendee &attendee) |
| void | resetAttendees () |
| void | setAttendees (const QList< Attendee > &attendees) |
| void | setSensitivity (Sensitivity::Type sensitivity) |
| void | setBusyStatus (BusyStatus::Type busyStatus) |
| void | setAccountId (AccountId accountId) |
| void | setFolderId (FolderId folderId) |
| void | setId (EventId id) |
| void | setParentId (EventId parentId) |
| void | setSequence (int sequence) |
| void | setReminder (int reminder) |
| void | setBirthday (bool birthday) |
| void | setAllDay (bool allDay) |
| void | setBbmConference (const BbmConference &bbmConference) |
| void | setICalendarData (const ICalendarData &iCalendarData) |
| void | setMeetingStatus (int meetingStatus) |
| void | setGuid (const QString &guid) |
| bool | isValid () const |
| BusyStatus::Type | intendedStatus () const |
| void | setIntendedStatus (BusyStatus::Type busyStatus) |
| QString | delegator () const |
| void | setDelegator (const QString &delegator) |
| void | setOriginalStartTime (const QDateTime &originalStartTime) |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a CalendarEvent containing exactly the same values as the provided CalendarEvent.
| Parameters | |
|---|---|
| other |
The CalendarEvent to be copied. |
BlackBerry 10.0.0
CalendarEvent &
Assignment operator.
This operator copies all values from the provided CalendarEvent into this CalendarEvent.
| Parameters | |
|---|---|
| other |
The CalendarEvent from which to copy all values. |
A reference to this CalendarEvent.
BlackBerry 10.0.0
QDateTime
Retrieves the start time of this CalendarEvent.
This function returns the date and time when the event starts, in the local time zone (the system's time zone).
The start time of this CalendarEvent.
BlackBerry 10.0.0
QDateTime
Retrieves the end time of this CalendarEvent.
This function returns the date and time when the event ends, in the local time zone (the system's time zone). This value should be greater than (that is, occur after) the start time.
The end time of this CalendarEvent.
BlackBerry 10.0.0
QString
Retrieves the body of this CalendarEvent.
This function returns the contents of the text field that contains details for the event.
The body of this CalendarEvent.
BlackBerry 10.0.0
QString
Retrieves the subject of this CalendarEvent.
This function returns the subject, or title, of the event.
The subject of this CalendarEvent.
BlackBerry 10.0.0
EventLocation
Retrieves the location of this CalendarEvent.
This function returns a string that indicates where the event happened or will happen.
The location of this CalendarEvent.
BlackBerry 10.0.0
QString
Retrieves the time zone of this CalendarEvent.
This function returns the name of the time zone where the event was created.
The time zone of this CalendarEvent.
BlackBerry 10.0.0
QString
Retrieves the URL that's associated with this CalendarEvent.
The URL that's associated with this CalendarEvent.
BlackBerry 10.0.0
Recurrence
Retrieves the recurrence rule for this CalendarEvent.
The recurrence rule defines how an event repeats. The information about the recurrence of an event, such as start and end time, frequency, days of the week, and so on, are included in the Recurrence class.
By default, an event is not recurrent (that is, event.recurrence().isValid() == false). The event becomes a recurring event when a call is made to the setRecurrence() function with a valid Recurrence object.
The recurrence rule for this CalendarEvent.
BlackBerry 10.0.0
QList< Attendee >
Retrieves the list of participants for this CalendarEvent.
This function returns a list of people who are attending the event. Each participant is represented by an Attendee object.
The list of participants for this CalendarEvent.
BlackBerry 10.0.0
Sensitivity::Type
Retrieves the sensitivity of this CalendarEvent.
This function indicates the degree of confidentiality for the event normal, personal, private, or confidential.
The sensitivity of this CalendarEvent.
BlackBerry 10.0.0
BusyStatus::Type
Retrieves the busy status of this CalendarEvent.
This function indicates whether the event represents free time, tentative time (the user might be present or not), busy time, or time out of the office.
The busy status of this CalendarEvent.
BlackBerry 10.0.0
AccountId
Retrieves the account ID of this CalendarEvent.
This function returns the identifier for the account that owns the event.
The account ID of this CalendarEvent.
BlackBerry 10.0.0
FolderId
Retrieves the folder of this CalendarEvent.
This function returns the identifier for the folder that contains the event. A folder represents a specific calendar on the device.
The folder of this CalendarEvent.
BlackBerry 10.0.0
EventId
Retrieves the ID of this CalendarEvent.
The ID uniquely identifies a CalendarEvent in the database.
The ID of this CalendarEvent.
BlackBerry 10.0.0
EventId
Retrieves the parent ID of this CalendarEvent.
This attribute is only meaningful in events that are recurrence exceptions.
A recurrence exception is a differing instance of a recurring event. For example, a daily meeting at 2:00 PM is rescheduled to 3:00 PM on a given day. This rescheduled occurrence is represented as an exception. It is stored in the database as a separate event and it references the original recurring event by using the parent ID.
The parent ID of this CalendarEvent.
BlackBerry 10.0.0
int
Retrieves the sequence number of this CalendarEvent.
The sequence number of this CalendarEvent.
BlackBerry 10.0.0
int
Retrieves the reminder time of this CalendarEvent.
A reminder is an alert shown by the system's notification manager before the event starts. This attribute determines the number of minutes between the alert and the start time of the event.
The reminder time of this CalendarEvent.
BlackBerry 10.0.0
bool
Indicates whether this CalendarEvent represents a birthday.
true if this event represents a birthday, false otherwise.
BlackBerry 10.0.0
bool
Indicates whether this CalendarEvent is an all-day event.
true if this event is an all-day event, false otherwise.
BlackBerry 10.0.0
BbmConference
Retrieves the BBM conference data for this CalendarEvent.
This function returns the BBM conference data that's associated with this event. This data includes information such as available phone numbers, participant code, and so on.
The BBM conference data for this CalendarEvent.
BlackBerry 10.0.0
ICalendarData
Retrieves the iCalendar data for this CalendarEvent.
This function returns additional data that's available in events that are created from iCalendar attachments.
The iCalendar data for this CalendarEvent.
BlackBerry 10.0.0
int
Retrieves the meeting status of this CalendarEvent.
0: not a meeting
1 and 9: is a meeting
3 and 11: meeting received
5 and 13: meeting is canceled
7 and 15: meeting is canceled and received
The meeting status of this CalendarEvent.
BlackBerry 10.0.0
QString
Retrieves the globally unique ID of this CalendarEvent.
This ID is used by remote servers to uniquely identify the event.
The globally unique ID of this CalendarEvent.
BlackBerry 10.0.0
QDateTime
Retrieves the original start time of this CalendarEvent.
This function returns the original start time from the CalendarEvent file.
The original start time of this CalendarEvent.
void
Sets the start time of this CalendarEvent.
| Parameters | |
|---|---|
| startTime |
The new start time. |
BlackBerry 10.0.0
void
Sets the end time of this CalendarEvent.
The new end time should be greater than (that is, later than) the current start time.
| Parameters | |
|---|---|
| endTime |
The new end time. |
BlackBerry 10.0.0
void
Sets the subject of this CalendarEvent.
| Parameters | |
|---|---|
| subject |
The new subject. |
BlackBerry 10.0.0
void
Sets the location of this CalendarEvent.
| Parameters | |
|---|---|
| location |
The new location. |
BlackBerry 10.0.0
void
Sets the time zone of this CalendarEvent.
| Parameters | |
|---|---|
| timezone |
The new time zone. |
BlackBerry 10.0.0
void
Sets the URL that's associated with this CalendarEvent.
| Parameters | |
|---|---|
| url |
The new URL. |
BlackBerry 10.0.0
void
Sets the recurrence rule for this CalendarEvent.
| Parameters | |
|---|---|
| recurrence |
The new recurrence rule. |
BlackBerry 10.0.0
void
Adds an attendee to this CalendarEvent.
This function appends an Attendee object to the list of attendees for this event.
| Parameters | |
|---|---|
| attendee |
The Attendee object to add. |
BlackBerry 10.0.0
void
Sets the list of attendees for this CalendarEvent.
This function clears the list of attendees for this CalendarEvent object and then populates it with attendees from the provided list.
| Parameters | |
|---|---|
| attendees |
The list of attendees to set. |
BlackBerry 10.0.0
void
Sets the sensitivity of this CalendarEvent.
| Parameters | |
|---|---|
| sensitivity |
The new sensitivity. |
BlackBerry 10.0.0
void
Sets the busy status for this CalendarEvent.
| Parameters | |
|---|---|
| busyStatus |
The new busy status. |
BlackBerry 10.0.0
void
Sets the account ID for this CalendarEvent.
| Parameters | |
|---|---|
| accountId |
The new account ID. |
BlackBerry 10.0.0
void
Sets the folder ID for this CalendarEvent.
| Parameters | |
|---|---|
| folderId |
The new folder ID. |
BlackBerry 10.0.0
void
Sets the event ID for this CalendarEvent.
| Parameters | |
|---|---|
| id |
The new event ID. |
BlackBerry 10.0.0
void
Sets the parent ID for this CalendarEvent.
| Parameters | |
|---|---|
| parentId |
The new parent ID. |
BlackBerry 10.0.0
void
Sets the sequence number of this CalendarEvent.
| Parameters | |
|---|---|
| sequence |
The new sequence number. |
BlackBerry 10.0.0
void
Sets the reminder value of this CalendarEvent.
| Parameters | |
|---|---|
| reminder |
The new reminder value. |
BlackBerry 10.0.0
void
Sets whether this CalendarEvent represents a birthday.
| Parameters | |
|---|---|
| birthday |
If true this event represents a birthday, if false this event does not represent a birthday. |
BlackBerry 10.0.0
void
Sets whether this CalendarEvent is an all-day event.
| Parameters | |
|---|---|
| allDay |
If true this event is an all-day event, if false this event is not an all-day event. |
BlackBerry 10.0.0
void
Sets the BBM conference that's associated with this CalendarEvent.
| Parameters | |
|---|---|
| bbmConference |
The new BBM conference. |
BlackBerry 10.0.0
void
Sets the iCalendar data that's associated with this CalendarEvent.
| Parameters | |
|---|---|
| iCalendarData |
The new iCalendar data. |
BlackBerry 10.0.0
void
Sets the meeting status of this CalendarEvent.
| Parameters | |
|---|---|
| meetingStatus |
The new meeting status. |
BlackBerry 10.0.0
void
Sets the globally unique identifier of this CalendarEvent.
| Parameters | |
|---|---|
| guid |
The new globally unique identifier. |
BlackBerry 10.0.0
bool
Indicates whether this CalendarEvent is valid.
This function determines whether the attributes of this CalendarEvent object have acceptable values.
true if this CalendarEvent is valid, false otherwise.
BlackBerry 10.0.0
BusyStatus::Type
Retrieves the intended status of this CalendarEvent.
The intended status represents the creation busy status of the event.
The intended status of this CalendarEvent.
BlackBerry 10.1.0
void
Sets the intended status for this CalendarEvent.
| Parameters | |
|---|---|
| busyStatus |
The new intended busy status. |
BlackBerry 10.1.0
QString
Retrieves the delegator of this CalendarEvent.
The delegator of this CalendarEvent. It could be the delegator email or a non empty string.
BlackBerry 10.2.0
void
Sets the original start time of this CalendarEvent.
| Parameters | |
|---|---|
| originalStartTime |
The new original start time. |