|
Maps SDK for C++ 1.0.0
|
Manages a directory with recorded logs. More...


Public Member Functions | |
| RecorderBookmarks (RecorderBookmarks &&recorderBookmarks)=default | |
| Default move constructor noexcept is deduced. | |
| RecorderBookmarks & | operator= (RecorderBookmarks &&recorderBookmarks)=default |
| Default move assignment noexcept is deduced. | |
| StrongPointer< LogMetadata > | getMetadata (const String &logFile) const |
| Retrieves the metadata for a specified log file. | |
| StringList | getProtectedLogsList () |
| Gets a list of all the protected logs. | |
| StringList | getLogsList (EFileSortOrder fileSortOrder=EFileSortOrder::orderAsc, EFileSortType fileSortType=EFileSortType::sortDate) |
| Gets a list of all logs sorted based on the provided sort order and sort type. | |
| int | markLogProtected (const String &logFile) |
| Marks a log as protected. | |
| int | markLogUploaded (const String &logFile) |
| Marks a log as uploaded. | |
| int | deleteLog (const String &logFile) |
| Deletes the specified log file. | |
| virtual LargeUnsignedInteger | getLogDurationInSeconds (const String &logFile) const |
| Retrieves the duration of a log file. | |
| int | exportLog (const String &logFile, const String &albumName, CompletionCallback callback) |
| Exports a log to public storage. | |
| int | exportLog (const String &logPath, EFileType type, const String &exportedFileName={}, double positionDistance=0.0) |
| Exports a log file in a different format. | |
| int | importLog (const String &logPath, const String &importedFileName={}) |
| Import a log file in GM format. | |
Static Public Member Functions | |
| static StrongPointer< RecorderBookmarks > | produce (String path) |
| Creates a RecorderBookmarks object for managing bookmarks within the specified directory. | |
Manages a directory with recorded logs.
|
default |
Default move constructor noexcept is deduced.
| recorderBookmarks | The object to move |
|
inline |
Deletes the specified log file.
| [in] | logFile | The file to be deleted. |
|
inline |
Exports a log to public storage.
| [in] | logFile | The file path to be exported. |
| [in] | albumName | Name of the album where the video files will be placed. |
| [in] | callback | A callback function to notify the completion of the export operation. The callback takes 2 parameters:
|
This method exports the specified log file to public storage, placing it in the given album. The callback function is called when the operation completes, providing the path of the exported file and an error code indicating the result of the export process.
|
inline |
Exports a log file in a different format.
If the name of the exported file is not specified, the log name will be used.
| [in] | logPath | The file to be exported. |
| [in] | type | The type of the exported file. |
| [in] | exportedFileName | The name of the exported file. |
| [in] | positionDistance | The distance between two consecutive GPS positions. To retain the exact positions from the original log, set this distance to 0. |
|
inlinevirtual |
Retrieves the duration of a log file.
| [in] | logFile | The log file path. |
|
inline |
Gets a list of all logs sorted based on the provided sort order and sort type.
| [in] | fileSortOrder | Specifies the sorting order of the logs (ascending or descending). |
| [in] | fileSortType | Specifies the sorting type for the logs (e.g., by date, name, or size). |
|
inline |
Retrieves the metadata for a specified log file.
| [in] | logFile | The path to the log file for which metadata is to be retrieved. |
|
inline |
Gets a list of all the protected logs.
This method retrieves all the logs that are marked as protected, meaning they cannot be deleted automatically by the system.
|
inline |
Import a log file in GM format.
Supported file formats include: GPX, NMEA, KML, fit, tcx. If the name of the exported file is not specified, the log name will be used.
| [in] | logPath | The path to the log file to be imported. |
| [in] | importedFileName | The name to be used for the imported file. If not specified, the log file's name will be used. |
|
inline |
Marks a log as protected.
| [in] | logFile | The file to be marked as protected. |
This method prevents the specified log from being deleted automatically when the system reaches its maximum disk space or the configured retention time is met.
|
inline |
Marks a log as uploaded.
| [in] | logFile | The file to be marked as uploaded. |
This method marks a log as uploaded, which signifies that the log has been successfully transferred to the server.
|
default |
Default move assignment noexcept is deduced.
| recorderBookmarks | The object to move |
|
inlinestatic |
Creates a RecorderBookmarks object for managing bookmarks within the specified directory.
| [in] | path | The directory path where the logs are stored. |