|
Maps SDK for C++ 1.0.0
|
SocialOverlay object. More...


Public Member Functions | |
| SocialOverlay (const SocialOverlay &)=delete | |
| SocialOverlay (SocialOverlay &&social)=default | |
| Default move constructor noexcept is deduced. | |
| SocialOverlay & | operator= (const SocialOverlay &)=delete |
| SocialOverlay & | operator= (SocialOverlay &&social)=default |
| Default move assignment noexcept is deduced. | |
| const SocialReportsOverlayInfoRef | getReportsOverlayInfo () const noexcept |
| Get social reports overlay info. | |
| const SocialLabelsOverlayInfoRef | getLabelsOverlayInfo () const noexcept |
| Get social labels overlay info. | |
| int | prepareReporting (const Coordinates &coords, int categId=0) noexcept |
| Prepare reporting. | |
| int | prepareReporting (sense::DataSourcePtr positionSource=PositionService().getDataSource(), int categId=0) noexcept |
| Prepare reporting. | |
| int | report (int prepareId, int categId, const String &description, const Image &snapshot, const ParameterList ¶ms, ProgressListener listener) noexcept |
| Report an social event. | |
| int | confirmReport (const OverlayItem &item, ProgressListener listener) noexcept |
| Confirm an existing report as in effect. | |
| int | denyReport (const OverlayItem &item, ProgressListener listener) noexcept |
| Denied an existing report as not in effect anymore. | |
| int | updateReport (const OverlayItem &item, const ParameterList ¶ms, ProgressListener listener) noexcept |
| Update an existing report parameters. | |
| int | deleteReport (const OverlayItem &item, ProgressListener listener) noexcept |
| Delete an owned report. | |
| int | addComment (const OverlayItem &item, const String &comment, ProgressListener listener) |
| Add a comment to report. | |
| int | getReportSnapshot (const OverlayItem &item, Image &image, ProgressListener listener) noexcept |
| Get report snapshot. | |
| int | registerReportListener (const OverlayItem &report, SocialReportListener listener) noexcept |
| Register the given listener for the given report item. | |
| int | unregisterReportListener (const OverlayItem &report, SocialReportListener listener) noexcept |
| Unregister the given listener for the given report item. | |
| void | registerOverlayItemListener (const OverlayItem &overlayItem, SocialReportListener listener) noexcept |
| void | unregisterOverlayItemListener (const OverlayItem &overlayItem, SocialReportListener listener) noexcept |
| int | addLabel (OverlayItem *result, const Coordinates &coords, const String &image, const String &name, const DataBuffer &details, int validitySec, ProgressListener listener, int labelCategoryId=-1) noexcept |
| Add a social label. | |
| int | collectLabel (const Coordinates &coords, const String &image, const String &name, const DataBuffer &details, int validitySec, int labelCategoryId=-1) noexcept |
| Collect a social label without confirmation ( the operation is not guaranteed to complete successfully ). | |
| int | deleteLabel (LargeInteger id, ProgressListener listener, int labelCategoryId=-1) noexcept |
| Delete a label by id. | |
| int | deleteLabel (const DataBuffer &details, ProgressListener listener, int labelCategoryId=-1) noexcept |
| Delete one or more labels by user details. | |
| int | registerLabelsListener (SocialLabelListener listener, int labelCategoryId=-1) noexcept |
| Register the label overlay listener. | |
| void | cancel (ProgressListener listener) noexcept |
| Cancel the operation identified by progress listener. | |
| TransferStatisticsRef | getTransferStatistics () const noexcept |
| Get data transfer statistics for this service. | |
| String | dumpLocalCache () noexcept |
| DEBUG. | |
| String | executeLocalCacheSQL (const String &sql) noexcept |
| Execute SQL on local cache data. | |
SocialOverlay object.
Implements share-read / write Api object over ISocialOverlay.
This behaves like a singleton, i.e. all instances are shared behind the same API interface
|
default |
Default move constructor noexcept is deduced.
| [in] | social | The object to move |
|
inline |
Add a comment to report.
| [in] | item | The report overlay item |
| [in] | comment | The comment text |
| [in] | listener | Operation progress listener |
error::KInvalidInput - invalid item ( not a social report overlay item )
error::KConnectionRequired - no internet connection available
error::KBusy - another add comment operation is in progress
|
inlinenoexcept |
Add a social label.
| [in] | result | The optional overlay item containing new label data after oprtaion succesfully completes |
| [in] | coords | The label coordinates |
| [in] | image | The label image id ( API user identifier ). SDK will call back the API user for an image via ISocialLabelListener::getLabelIcon |
| [in] | name | The label name |
| [in] | details | The label details ( API user own format / data ) |
| [in] | validitySec | The label validity in seconds. 0 means never expires |
| [in] | listener | Operation listener |
| [in] | labelCategoryId | Label category id where to add. -1 means default label category ( if only one label category exists ) |
|
inlinenoexcept |
Cancel the operation identified by progress listener.
| [in] | listener | The operation progress listener |
|
inlinenoexcept |
Collect a social label without confirmation ( the operation is not guaranteed to complete successfully ).
| [in] | coords | The label coordinates |
| [in] | image | The label image id ( API user identifier ). SDK will call back the API user for an image via ISocialLabelListener::getLabelIcon |
| [in] | name | The label name |
| [in] | details | The label details ( API user own format / data ) |
| [in] | validitySec | The label validity in seconds. 0 means never expires |
| [in] | labelCategoryId | Label category id where to add. -1 means default label category ( if only one label category exists ) |
|
inlinenoexcept |
Confirm an existing report as in effect.
| [in] | item | The report overlay item |
| [in] | listener | Operation progress listener |
error::KInvalidInput - invalid item ( not a social report overlay item ) or item is not a result of alarm notification
error::KAccessDenied - already confirmed or denied
error::KScheduled - operation will proceed later, when internet connection is available. Not an error
|
inlinenoexcept |
Delete one or more labels by user details.
| [in] | details | The label details ( API user own format / data ) |
| [in] | listener | Operation listener |
| [in] | labelCategoryId | Label category id where to add. -1 means default label category ( if only one label category exists ) |
|
inlinenoexcept |
Delete a label by id.
| [in] | id | The label overlay id |
| [in] | listener | Operation listener |
| [in] | labelCategoryId | Label category id where to add. -1 means default label category ( if only one label category exists ) |
|
inlinenoexcept |
Delete an owned report.
| [in] | item | The report overlay item |
| [in] | listener | Operation progress listener |
error::KInvalidInput - invalid item ( not a social report overlay item )
error::KAccessDenied - not an owned report
error::KScheduled - operation will proceed later, when internet connection is available. Not an error
|
inlinenoexcept |
Denied an existing report as not in effect anymore.
| [in] | item | The report overlay item |
| [in] | listener | Operation progress listener |
error::KInvalidInput - invalid item ( not a social report overlay item ) or item is not a result of alarm notification
error::KAccessDenied - already confirmed or denied
error::KScheduled - operation will proceed later, when internet connection is available. Not an error
|
inlinenoexcept |
DEBUG.
Dump local cache as text data
Execute SQL on local cache data.
| [in] | sql | The SQL command |
|
inlinenoexcept |
Get social labels overlay info.
|
inlinenoexcept |
Get report snapshot.
| [in] | item | The report overlay item |
| [out] | image | The image where the snapshot will be stored |
| [in] | listener | Operation progress listener |
error::KInvalidInput - invalid item ( not a social report overlay item )
error::KConnectionRequired - no internet connection available
|
inlinenoexcept |
Get social reports overlay info.
|
inlinenoexcept |
Get data transfer statistics for this service.
|
default |
Default move assignment noexcept is deduced.
| [in] | social | The object to move |
|
inlinenoexcept |
Prepare reporting.
| [in] | coords | Report coordinates. |
| [in] | categId | Report category id, default = 0. If != 0, a dry run test is performed to check if the given category id can be reported |
error::KSuspended - report rate limit exceeded
error::KInvalidInput - categId id not a valid social report category id
error::KAccessDenied - social report overlay category doesn't allow custom coordinates reporting, call prepareReporting with sense::DataSourcePtr instead
error::KSuspended - report rate limit exceeded
value > 0 - the prepared operation id
|
inlinenoexcept |
Prepare reporting.
| [in] | positionSource | The sense::IDataSource ref from which the report position is set. Default is the current position service data source |
| [in] | categId | Report category id, default = 0. If != 0, a dry run test is performed to check if the given category id can be reported |
error::KSuspended - report rate limit exceeded
error::KInvalidInput - categId id not a valid social report category id
error::KNotFound - no valid data source position for reporting
error::KRequired - no valid data source type for reporting, must be EDataSourceType::Live
error::KSuspended - report rate limit exceeded
error::KNotFound - invalid data source position for reporting
value > 0 - the prepared operation id
|
inlinenoexcept |
Register the label overlay listener.
| [in] | listener | The label listener |
| [in] | labelCategoryId | The label category id for which teh listener is registered. -1 means default label category ( if only one label category exists ) |
|
inlinenoexcept |
| overlayItem | The overlay item |
| listener | The listener |
|
inlinenoexcept |
Register the given listener for the given report item.
| [in] | report | The report item |
| [in] | listener | The listener |
error::KInvalidInput if report doesn't belong to OID_SocialReports overlay
error::KExist if listener is already registered for the report
|
inlinenoexcept |
Report an social event.
| [in] | prepareId | Prepare operation id ( returned by a call to prepareReporting ) |
| [in] | categId | The report category id |
| [in] | description | The report description text ( optional ) |
| [in] | snapshot | The report snapshot ( optional ) |
| [in] | params | The report parameters ( optional ). They must follow the structure returned by SocialReportsOverlayCategory::getParameters().find<SearchableParameterList>( kKeyVals ) |
| [in] | listener | Operation progress listener |
error::KInvalidInput - categId is not a valid social report category id / params are ill-formed / snapshot is an invalid image
error::KSuspended - report rate limit exceeded
error::KExpired - prepared report id not found or is expired ( too old )
error::KNotFound - no accurate sense data source position to complete
error::KScheduled - operation will proceed later, when internet connection is available. Not an error
|
inlinenoexcept |
| overlayItem | The overlay item |
| listener | The listener |
|
inlinenoexcept |
Unregister the given listener for the given report item.
| [in] | report | The report item |
| [in] | listener | The listener |
error::KInvalidInput if report doesn't belong to OID_SocialReports overlay
error::KNotFound if report doesn't have the listener registered to it
|
inlinenoexcept |
Update an existing report parameters.
| [in] | item | The report overlay item |
| [in] | params | Report parameters ( optional ). They must follow the structure returned by SocialReportsOverlayCategory::getParameters().find<SearchableParameterList>( kKeyVals ) |
| [in] | listener | Operation progress listener |
error::KInvalidInput - invalid item ( not a social report overlay item ) / params are ill-formed
error::KScheduled - operation will proceed later, when internet connection is available. Not an error