CalendarSettings
#include <bb/pim/calendar/CalendarSettings>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The CalendarSettings class contains system settings for calendars.
This class contains settings that are relevant to calendar applications, such as snooze time for calendar notifications, current system time zone, and whether the device time is in 24-hour format.
You can retrieve the current calendar settings by calling CalendarService::settings().
BlackBerry 10.0.0
Public Functions Index
| CalendarSettings () | |
| ~CalendarSettings () | |
| CalendarSettings (const CalendarSettings &other) | |
| CalendarSettings & | operator= (const CalendarSettings &other) |
| int | snoozeTime () const |
| QString | timezoneDatabaseId () const |
| QString | currentSystemTimezone () const |
| bool | is24HourFormat () const |
| void | setSnoozeTime (int snoozeTime) |
| void | setTimezoneDatabaseId (const QString &timezoneDatabaseId) |
| void | setCurrentSystemTimezone (const QString ¤tSystemTimezone) |
| void | set24HourFormat (bool value) |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a CalendarSettings containing exactly the same values as the provided CalendarSettings.
| Parameters | |
|---|---|
| other |
The CalendarSettings to be copied. |
BlackBerry 10.0.0
CalendarSettings &
Assignment operator.
This operator copies all values from the provided CalendarSettings into this CalendarSettings.
| Parameters | |
|---|---|
| other |
The CalendarSettings from which to copy all values. |
A reference to this CalendarSettings.
BlackBerry 10.0.0
int
Retrieves the current snooze time for calendar notifications.
The system notification manager shows alerts for upcoming events. The user can snooze an alert, which means that the manager will close it and then show it again after a period of time. This time interval is the snooze time.
The current snooze time.
BlackBerry 10.0.0
QString
Retrieves the ID of the current time zone.
This function returns the database ID for the device's current time zone.
The ID of the current time zone.
BlackBerry 10.0.0
QString
Retrieves the name of the current time zone.
This function returns the name of the device's current time zone.
The name of the current time zone.
BlackBerry 10.0.0
bool
Indicates whether the device time is in 24-hour format.
true if the device time is in 24-hour format, false otherwise.
BlackBerry 10.0.0
void
Sets the snooze time for calendar notifications.
| Parameters | |
|---|---|
| snoozeTime |
The new snooze time. |
BlackBerry 10.0.0
void
Sets the ID of the current time zone.
| Parameters | |
|---|---|
| timezoneDatabaseId |
The new time zone ID. |
BlackBerry 10.0.0
void
Sets the name of the current time zone.
| Parameters | |
|---|---|
| currentSystemTimezone |
The new time zone name. |
BlackBerry 10.0.0
void
Sets whether the device time is in 24-hour format.
| Parameters | |
|---|---|
| value |
If true the time is in 24-hour format, if false the time is not in 24-hour format. |
BlackBerry 10.0.0
bool
Indicates whether this CalendarSettings is valid.
This function determines whether the attributes of this CalendarSettings object have acceptable values.
true if this CalendarSettings is valid, false otherwise.
BlackBerry 10.0.0