EventRefresh
#include <bb/pim/calendar/EventRefresh>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The EventRefresh class represents a notification for added, changed, or deleted events.
An EventRefresh object is sent by the calendar service whenever events are created in, updated in, or removed from the local database. This object contains information about the events that were created, updated, or removed, such as event IDs, folder IDs, and account ID.
For example, the CalendarService::eventsRefreshed() signal is emitted when there are changes to events in the database. This signal includes an EventRefresh parameter that contains the details of the refresh.
BlackBerry 10.0.0
Public Functions Index
| EventRefresh () | |
| ~EventRefresh () | |
| EventRefresh (const EventRefresh &other) | |
| EventRefresh & | operator= (const EventRefresh &other) |
| QList< EventId > | createdEventIds () const |
| QList< EventId > | updatedEventIds () const |
| QList< EventId > | deletedEventIds () const |
| QList< FolderId > | updatedFolderIds () const |
| AccountId | account () const |
| void | addCreatedEventId (EventId createdEventId) |
| void | resetCreatedEventIds () |
| void | setCreatedEventIds (const QList< EventId > &createdEventIds) |
| void | addUpdatedEventId (EventId updatedEventId) |
| void | resetUpdatedEventIds () |
| void | setUpdatedEventIds (const QList< EventId > &updatedEventIds) |
| void | addDeletedEventId (EventId deletedEventId) |
| void | resetDeletedEventIds () |
| void | setDeletedEventIds (const QList< EventId > &deletedEventIds) |
| void | addUpdatedFolderId (FolderId updatedFolderId) |
| void | resetUpdatedFolderIds () |
| void | setUpdatedFolderIds (const QList< FolderId > &updatedFolderIds) |
| void | setAccount (AccountId account) |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs an EventRefresh containing exactly the same values as the provided EventRefresh.
| Parameters | |
|---|---|
| other |
The EventRefresh to be copied. |
BlackBerry 10.0.0
EventRefresh &
Assignment operator.
This operator copies all values from the provided EventRefresh into this EventRefresh.
| Parameters | |
|---|---|
| other |
The EventRefresh from which to copy all values. |
A reference to this EventRefresh.
BlackBerry 10.0.0
QList< EventId >
Retrieves the list of IDs of created events.
This function returns a list that includes the IDs of events that were created in the local database.
The list of IDs of created events.
BlackBerry 10.0.0
QList< EventId >
Retrieves the list of IDs of updated events.
This function returns a list that includes the IDs of events that were changed or updated in the local database.
The list of IDs of updated events.
BlackBerry 10.0.0
QList< EventId >
Retrieves the list of IDs of deleted events.
This function returns a list that includes the IDs of events that were deleted from the local database.
The list of IDs of deleted events.
BlackBerry 10.0.0
QList< FolderId >
Retrieves the list of IDs of updated folders.
This function returns a list that includes the IDs of folders in which events were added, deleted, or changed.
The list of IDs of updated folders.
BlackBerry 10.0.0
AccountId
Retrieves the account ID of this EventRefresh.
This function returns the identifier for the account that owns the added, changed, or removed events.
The account ID of this EventRefresh.
BlackBerry 10.0.0
void
Adds the ID of a created event to this EventRefresh.
This function appends a new ID to the existing list of created event IDs.
| Parameters | |
|---|---|
| createdEventId |
The event ID to add. |
BlackBerry 10.0.0
void
Sets the list of created event IDs for this EventRefresh.
This function replaces the current list of created event IDs with the provided list.
| Parameters | |
|---|---|
| createdEventIds |
The new list of created event IDs. |
BlackBerry 10.0.0
void
Adds the ID of an updated event to this EventRefresh.
This function appends a new ID to the existing list of updated event IDs.
| Parameters | |
|---|---|
| updatedEventId |
The event ID to add. |
BlackBerry 10.0.0
void
Sets the list of updated event IDs for this EventRefresh.
This function replaces the current list of updated event IDs with the provided list.
| Parameters | |
|---|---|
| updatedEventIds |
The new list of updated event IDs. |
BlackBerry 10.0.0
void
Adds the ID of a deleted event to this EventRefresh.
This function appends a new ID to the existing list of deleted event IDs.
| Parameters | |
|---|---|
| deletedEventId |
The event ID to add. |
BlackBerry 10.0.0
void
Sets the list of deleted event IDs for this EventRefresh.
This function replaces the current list of deleted event IDs with the provided list.
| Parameters | |
|---|---|
| deletedEventIds |
The new list of deleted event IDs. |
BlackBerry 10.0.0
void
Adds the ID of an updated folder to this EventRefresh.
This function appends a new ID to the existing list of updated folder IDs.
| Parameters | |
|---|---|
| updatedFolderId |
The folder ID to add. |
BlackBerry 10.0.0
void
Sets the list of updated folder IDs for this EventRefresh.
This function replaces the current list of updated folder IDs with the provided list.
| Parameters | |
|---|---|
| updatedFolderIds |
The new list of updated folder IDs. |
BlackBerry 10.0.0
void
Sets the account ID of this EventRefresh.
| Parameters | |
|---|---|
| account |
The new account ID. |
BlackBerry 10.0.0
bool
Indicates whether this EventRefresh is valid.
This function determines whether the attributes of this EventRefresh object have acceptable values.
true if this EventRefresh is valid, false otherwise.
BlackBerry 10.0.0