| 196 | } |
| 197 | |
| 198 | BookmarkManager::SharingResult GetFileForSharing(BookmarkManager::KMLDataCollectionPtr collection, |
| 199 | KmlFileType kmlFileType) |
| 200 | { |
| 201 | if (collection->size() > 1) |
| 202 | return ExportMultipleFiles(collection); |
| 203 | switch (kmlFileType) |
| 204 | { |
| 205 | case KmlFileType::Text: return ExportSingleFileKml(collection->front()); |
| 206 | case KmlFileType::Gpx: return ExportSingleFileGpx(collection->front()); |
| 207 | default: |
| 208 | LOG(LERROR, ("Unexpected file type", kmlFileType)); |
| 209 | return {{collection->front().second->m_categoryData.m_id}, |
| 210 | BookmarkManager::SharingResult::Code::FileError, |
| 211 | "Unexpected file type"}; |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | std::string ToString(BookmarkManager::SortingType type) |
| 216 | { |
no test coverage detected