Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-11-13 19:53:37 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:46:53 +0300
commita459bc474a64d2184f557ec5233f6f421df5779a (patch)
tree99596c856c005045faca220559b815e3e2ca85de
parent8bd5e4920bdadebbd364b288dc92c5014824232e (diff)
Compilations fixes.
-rw-r--r--android/src/com/mapswithme/maps/location/LocationService.java5
-rw-r--r--platform/location.hpp6
2 files changed, 7 insertions, 4 deletions
diff --git a/android/src/com/mapswithme/maps/location/LocationService.java b/android/src/com/mapswithme/maps/location/LocationService.java
index d1cd60ffe3..2c2c5812b2 100644
--- a/android/src/com/mapswithme/maps/location/LocationService.java
+++ b/android/src/com/mapswithme/maps/location/LocationService.java
@@ -28,8 +28,9 @@ public class LocationService implements LocationListener, SensorEventListener, W
/// These constants should correspond to values defined in platform/location.hpp
/// Leave 0-value as no any error.
- public static final int ERROR_DENIED = 1;
- public static final int ERROR_GPS_OFF = 2;
+ public static final int ERROR_NOT_SUPPORTED = 1;
+ public static final int ERROR_DENIED = 2;
+ public static final int ERROR_GPS_OFF = 3;
public interface Listener
{
diff --git a/platform/location.hpp b/platform/location.hpp
index bd742e333a..cbfbc82475 100644
--- a/platform/location.hpp
+++ b/platform/location.hpp
@@ -6,11 +6,13 @@
namespace location
{
+ /// @note Do not change values of this constants.
enum TLocationError
{
ENoError = 0,
- EDenied = 1,
- EGPSIsOff = 2
+ ENotSupported,
+ EDenied,
+ EGPSIsOff
};
enum TLocationSource