CommonLocation
#include <bb/pim/calendar/CommonLocation>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The CommonLocation class represents a meeting location that is common between the user and a specified person.
You can use the CalendarService::commonLocations() function to retrieve a list of meeting locations where both the user and a person that you specify were present. You use the emails attribute of an AnalyticsParams object to identify the person that should have participate in meetings along with the user at a location.
The commonLocations() function returns a list of CommonLocation objects. Each CommonLocation object includes information such as the location itself and statistics about the common location.
BlackBerry 10.0.0
Public Functions Index
| CommonLocation () | |
| ~CommonLocation () | |
| CommonLocation (const CommonLocation &other) | |
| CommonLocation & | operator= (const CommonLocation &other) |
| QString | location () const |
| AnalyticsStats | stats () const |
| void | setLocation (const QString &location) |
| void | setStats (const AnalyticsStats &stats) |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a CommonLocation containing exactly the same values as the provided CommonLocation.
| Parameters | |
|---|---|
| other |
The CommonLocation to be copied. |
BlackBerry 10.0.0
CommonLocation &
Assignment operator.
This operator copies all values from the provided CommonLocation into this CommonLocation.
| Parameters | |
|---|---|
| other |
The CommonLocation from which to copy all values. |
A reference to this CommonLocation.
BlackBerry 10.0.0
QString
Retrieves the location of this CommonLocation.
This function returns the place where the user and the person identified in the CalendarService::commonLocations() call met.
The location of this CommonLocation.
BlackBerry 10.0.0
AnalyticsStats
Retrieves statistics for this CommonLocation.
This function returns an AnalyticsStats object that contains information such as the total number of meetings between the user and the attendee provided to CalendarService::commonLocations() and the date of their last meeting.
Statistics for this CommonLocation.
BlackBerry 10.0.0
void
Sets the location for this CommonLocation.
| Parameters | |
|---|---|
| location |
The new location. |
BlackBerry 10.0.0
void
Sets the statistics for this CommonLocation.
| Parameters | |
|---|---|
| stats |
The statistics to set. |
BlackBerry 10.0.0
bool
Indicates whether this CommonLocation is valid.
This function determines whether the attributes of this CommonLocation object have acceptable values.
true if this CommonLocation is valid, false otherwise.
BlackBerry 10.0.0