Since: BlackBerry 10.0.0

#include <bb/pim/calendar/SortField>

To link against this class, add the following line to your .pro file: LIBS += -lbbpim

The SortField class includes possible fields that can be used to sort calendar events.

When you retrieve events using functions in the CalendarService class (such as CalendarService::events()), you provide an EventSearchParameters object that includes information about the results that you want. You can set a SortField in the EventSearchParameters that describes what fields you want to use to sort the search results.


Public Types Index

enum Type

Undefined 0, Guid 1, Subject 2, Location 3, StartTime 4, EndTime 5

Public Types


An enumeration of possible sort fields for calendar events.


BlackBerry 10.0.0

Undefined 0

Indicates an undefined sort field.

Guid 1

Indicates that events are sorted by guid.


BlackBerry 10.0.0

Subject 2

Indicates that events are sorted by subject.


BlackBerry 10.0.0

Location 3

Indicates that events are sorted by location.


BlackBerry 10.0.0

StartTime 4

Indicates that events are sorted by start time.


BlackBerry 10.0.0

EndTime 5

Indicates that events are sorted by end time.


BlackBerry 10.0.0

Last modified: 2015-03-26

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus