CalendarFolder
#include <bb/pim/calendar/CalendarFolder>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The CalendarFolder class represents a distinct calendar in the Calendar application.
Calendar folders are containers for events. A calendar in the Calendar application is represented by a CalendarFolder object. This object includes information about the calendar, including name, type, owner email address, and color.
When you create a CalendarEvent, you can specify the folder that you want to add the event to. You can update an existing CalendarFolder in the database by calling CalendarService::updateFolder().
BlackBerry 10.0.0
Public Functions Index
| CalendarFolder () | |
| ~CalendarFolder () | |
| CalendarFolder (const CalendarFolder &other) | |
| CalendarFolder & | operator= (const CalendarFolder &other) |
| QString | name () const |
| QString | ownerEmail () const |
| QString | syncId () const |
| QString | providerData () const |
| AccountId | accountId () const |
| FolderId | id () const |
| FolderId | parentId () const |
| unsigned int | color () const |
| int | type () const |
| bool | isReadOnly () const |
| bool | isVisible () const |
| void | setName (const QString &name) |
| void | setOwnerEmail (const QString &ownerEmail) |
| void | setSyncId (const QString &syncId) |
| void | setProviderData (const QString &providerData) |
| void | setAccountId (AccountId accountId) |
| void | setId (FolderId id) |
| void | setParentId (FolderId parentId) |
| void | setColor (unsigned int color) |
| void | setType (int type) |
| void | setReadOnly (bool readOnly) |
| void | setVisible (bool visible) |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a CalendarFolder containing exactly the same values as the provided CalendarFolder.
| Parameters | |
|---|---|
| other |
The CalendarFolder to be copied. |
BlackBerry 10.0.0
CalendarFolder &
Assignment operator.
This operator copies all values from the provided CalendarFolder into this CalendarFolder.
| Parameters | |
|---|---|
| other |
The CalendarFolder from which to copy all values. |
A reference to this CalendarFolder.
BlackBerry 10.0.0
QString
Retrieves the name of this CalendarFolder.
The name of this CalendarFolder.
BlackBerry 10.0.0
QString
Retrieves the email address of the owner of this CalendarFolder.
The email address of the owner of this CalendarFolder.
BlackBerry 10.0.0
QString
Retrieves the synchronization ID of this CalendarFolder.
The synchronization ID is a token that's used for synchronization with remote servers.
The synchronization ID of this CalendarFolder.
BlackBerry 10.0.0
QString
Retrieves the provider data for this CalendarFolder.
The provider data is used for synchronization with remote servers.
The provider data for this CalendarFolder.
BlackBerry 10.0.0
AccountId
Retrieves the account ID of this CalendarFolder.
The account ID of this CalendarFolder.
BlackBerry 10.0.0
FolderId
Retrieves the database ID of this CalendarFolder.
The database ID of this CalendarFolder.
BlackBerry 10.0.0
FolderId
Retrieves the parent folder ID of this CalendarFolder.
This function returns the ID of this folder's parent folder (that is, the folder that contains this folder).
The parent folder ID of this CalendarFolder.
BlackBerry 10.0.0
unsigned int
Retrieves the color of this CalendarFolder.
This function returns this folder's color, encoded as a 24-bit RGB value.
The color of this CalendarFolder.
BlackBerry 10.0.0
int
Retrieves the type of this CalendarFolder.
The two possible values for the type of a calendar folder are 8 (default calendar) and 13 (user calendar).
The type of this CalendarFolder.
BlackBerry 10.0.0
bool
Indicates whether this CalendarFolder is read-only.
true if this CalendarFolder is read-only, false otherwise.
BlackBerry 10.0.0
bool
Indicates whether this CalendarFolder has been marked as visible in the Calendar application.
true if this CalendarFolder has been marked as visible in the Calendar application, false otherwise.
BlackBerry 10.0.0
void
Sets the email address of the owner of this CalendarFolder.
| Parameters | |
|---|---|
| ownerEmail |
The new owner email address. |
BlackBerry 10.0.0
void
Sets the synchronization ID of this CalendarFolder.
| Parameters | |
|---|---|
| syncId |
The new synchronization ID. |
BlackBerry 10.0.0
void
Sets the provider data for this CalendarFolder.
| Parameters | |
|---|---|
| providerData |
The new provider data. |
BlackBerry 10.0.0
void
Sets the account ID of this CalendarFolder.
| Parameters | |
|---|---|
| accountId |
The new account ID. |
BlackBerry 10.0.0
void
Sets the folder ID of this CalendarFolder.
| Parameters | |
|---|---|
| id |
The new folder ID. |
BlackBerry 10.0.0
void
Sets the parent folder ID of this CalendarFolder.
| Parameters | |
|---|---|
| parentId |
The new parent folder ID. |
BlackBerry 10.0.0
void
Sets the color of this CalendarFolder.
| Parameters | |
|---|---|
| color |
The new color, encoded as a 24-bit RGB value. |
BlackBerry 10.0.0
void
Sets whether this CalendarFolder is read-only.
| Parameters | |
|---|---|
| readOnly |
If true this CalendarFolder is read-only, if false this CalendarFolder is not read-only. |
BlackBerry 10.0.0
void
Sets whether this CalendarFolder is visible in the Calendar application.
| Parameters | |
|---|---|
| visible |
If true this CalendarFolder is visible in the Calendar application, if false this CalendarFolder is not visible. |
BlackBerry 10.0.0
bool
Indicates whether this CalendarFolder is valid.
This function determines whether the attributes of this CalendarFolder object have acceptable values.
true if this CalendarFolder is valid, false otherwise.
BlackBerry 10.0.0