ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/services/mgui_ilixi/src/ui/GPSIcon.cpp b/marvell/services/mgui_ilixi/src/ui/GPSIcon.cpp
new file mode 100644
index 0000000..4252c9e
--- /dev/null
+++ b/marvell/services/mgui_ilixi/src/ui/GPSIcon.cpp
@@ -0,0 +1,46 @@
+#include "GPSIcon.h"
+
+namespace MGUI
+{
+
+GPSIcon::GPSIcon(ilixi::Widget* parent)
+        : SimpleIcon(parent),
+          _gpsState(GpsSearching)
+{
+    setGpsState(GpsOff);
+}
+
+GPSIcon::~GPSIcon()
+{
+}
+
+GpsState
+GPSIcon::getGpsState() const
+{
+    return _gpsState;
+}
+
+void
+GPSIcon::setGpsState(GpsState gpsState)
+{
+    if (_gpsState != gpsState)
+    {
+        _gpsState = gpsState;
+        switch (_gpsState)
+        {
+            case GpsOff:
+                setImage("gps_off");
+                break;
+            case GpsSearching:
+                setImage("gps_on");
+                break;
+            case GpsConnected:
+                setImage("gps_fixed");
+                break;
+            default:
+                break;
+        }
+    }
+}
+
+} /* namespace MGUI */