EventKey
#include <bb/pim/calendar/EventKey>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The EventKey class represents a database key for calendar events.
This class includes attributes (such as event ID, account ID, and dates) that uniquely identify an event in the calendar database.
EventKey objects are used by the EventSearchParameters class, which itself is used when you want to search for specific events in the calendar database. When you call EventSearchParameters::events(), a list of EventKey objects is returned. Each object represents a particular event to search for. You can call EventSearchParameters::addEvent() or EventSearchParameters::setEvents() to add or set events to search for.
BlackBerry 10.0.0
Public Functions Index
| EventKey () | |
| ~EventKey () | |
| EventKey (const EventKey &other) | |
| EventKey & | operator= (const EventKey &other) |
| EventId | eventId () const |
| AccountId | accountId () const |
| QList< QDateTime > | dates () const |
| void | setEventId (EventId eventId) |
| void | setAccountId (AccountId accountId) |
| void | addDate (const QDateTime &date) |
| void | resetDates () |
| void | setDates (const QList< QDateTime > &dates) |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs an EventKey containing exactly the same values as the provided EventKey.
| Parameters | |
|---|---|
| other |
The EventKey to be copied. |
BlackBerry 10.0.0
EventKey &
Assignment operator.
This operator copies all values from the provided EventKey into this EventKey.
| Parameters | |
|---|---|
| other |
The EventKey from which to copy all values. |
A reference to this EventKey.
BlackBerry 10.0.0
EventId
Retrieves the event ID of this EventKey.
The event ID uniquely identifies an event in a particular account. Two events in different accounts may have the same event ID.
The event ID of this EventKey.
BlackBerry 10.0.0
AccountId
Retrieves the account ID of this EventKey.
The account ID is the database identifier for a particular account.
The account ID of this EventKey.
BlackBerry 10.0.0
QList< QDateTime >
Retrieves the recurrence dates for this EventKey.
This is an optional attribute that's used to select occurrences of a recurring event by date. A query with dates is faster because it overrides the recurrence expansion mechanism.
The recurrence dates for this EventKey.
BlackBerry 10.0.0
void
Sets the event ID of this EventKey.
| Parameters | |
|---|---|
| eventId |
The new event ID. |
BlackBerry 10.0.0
void
Sets the account ID of this EventKey.
| Parameters | |
|---|---|
| accountId |
The new account ID. |
BlackBerry 10.0.0
void
Adds a new date to the list of recurrence dates for this EventKey.
| Parameters | |
|---|---|
| date |
The date to add. |
BlackBerry 10.0.0
void
Sets the list of recurrence dates for this EventKey.
This function replaces the current list of recurrence dates with the provided list.
| Parameters | |
|---|---|
| dates |
The new list of recurrence dates. |
BlackBerry 10.0.0
bool
Indicates whether this EventKey is valid.
This function determines whether the attributes of this EventKey object have acceptable values.
true if this EventKey is valid, false otherwise.
BlackBerry 10.0.0