CalendarEventPicker
#include <bb/cascades/pickers/CalendarEventPicker>
To link against this class, add the following line to your .pro file: LIBS += -lbbcascadespickers
A picker for selecting a calendar event.
The CalendarEventPicker is a full-screen card that allows the user to select a calendar event.
When open() is called then one of the below scenarios will occur: canceled() signal will be emitted if the user has cancelled the selection error(bb::cascades::pickers::CalendarEventPickerError::Type error) signal will be emitted if an error occurs eventSelected(const QByteArray &vcsData) signal will be emitted if the user successfully selected an event.
access_pimdomain_calendars
CalendarEventPicker *calendarEventPicker = new CalendarEventPicker(); QObject::connect(calendarEventPicker, SIGNAL(eventSelected(const QByteArray &)), this, SLOT(onEventSelected(const QByteArray &))); QObject::connect(calendarEventPicker, SIGNAL(canceled()), this, SLOT(onCanceled())); QObject::connect(calendarEventPicker, SIGNAL(error(bb::cascades::pickers::CalendarEventPickerError::Type)), this, SLOT(onError(bb::cascades::pickers::CalendarEventPickerError::Type))); calendarEventPicker->open();
BlackBerry 10.0.0
Public Functions Index
| CalendarEventPicker (QObject *parent=0) | |
| virtual | ~CalendarEventPicker () |
| Q_SLOT void | open () |
| Q_SLOT void | open (bb::cascades::pickers::ICalendarConstants::Version iCalVersion) |
| Q_SLOT void | close () |
| void | setPerimeter (bb::system::SecurityPerimeter::Type perimeter) |
Signals Index
| void | canceled () |
| void | error (bb::cascades::pickers::CalendarEventPickerError::Type error) |
| void | eventSelected (const QByteArray &vcsData) |
Public Functions
Constructs a CalendarEventPicker.
| Parameters | |
|---|---|
| parent |
The parent or 0. If not 0, the ownership of constructed CalendarEventPicker will be transferred to the parent. |
BlackBerry 10.0.0
virtual
Destructor.
BlackBerry 10.0.0
Q_SLOT void
Opens the CalendarEventPicker.
This will display the CalendarEventPicker, allowing the user to perform the selection. Output is in iCal 1.0 format.
BlackBerry 10.0.0
Q_SLOT void
Opens the CalendarEventPicker.
This will display the CalendarEventPicker, allowing the user to perform the selection.
| Parameters | |
|---|---|
| iCalVersion |
The version of the iCal file that the picker will output. Currently supports 1.0 (.vcs) and 2.0 (.ics) |
BlackBerry 10.1.0
Q_SLOT void
Closes the picker.
Use this only when the user's input is no longer needed. Normally, the picker will close automatically as soon the user completes the selection.
BlackBerry 10.0.0
void
Sets the security perimeter in which CalendarEventPicker should be invoked.
Only required for hybrid applications using this api.
| Parameters | |
|---|---|
| perimeter |
Security perimeter to use for CalendarEventPicker invoke. |
BlackBerry 10.1.0
Signals
void
Emitted when the cancel button is clicked in the CalendarEventPicker.
BlackBerry 10.0.0
void
Emitted when launching the picker fails.
BlackBerry 10.0.0
void
Emitted when an event is selected.
| Parameters | |
|---|---|
| vcsData |
The QByteArray containing the vcs representation of the event. |
BlackBerry 10.0.0