void LocationManager::namedLocationDataReceived(const QJsonObject& data) { if (data.isEmpty()) { return; } if (data.contains("status") && data["status"].toString() == "success") { emit creationCompleted(QString()); } else { emit creationCompleted(UNKNOWN_ERROR_MESSAGE); } }
void LocationManager::namedLocationDataReceived(const QJsonObject& data) { if (data.isEmpty()) { return; } if (data.contains("status") && data["status"].toString() == "success") { emit creationCompleted(LocationManager::Created); } else { emit creationCompleted(LocationManager::AlreadyExists); } }
void LocationManager::errorDataReceived(QNetworkReply::NetworkError error, const QString& message) { emit creationCompleted(LocationManager::SystemError); }