New APIs for Tizen 3.x 66/82466/1
authorchanywa <cbible.kim@samsung.com>
Thu, 28 Jul 2016 09:44:15 +0000 (18:44 +0900)
committerchanywa <cbible.kim@samsung.com>
Wed, 3 Aug 2016 11:22:02 +0000 (20:22 +0900)
1) Enabling to set departure time when searching route

Change-Id: Ib86f415c014c3391526bc729f0cbe466f1e5a0e7

17 files changed:
inc/engine/common/HereMaps_global.h
inc/engine/routes/GeoRouteQuery.h
lib/aarch64/libheremaps-engine.so.1
lib/aarch64/libheremaps-engine.so.1.0.6_14 [deleted file]
lib/aarch64/libheremaps-engine.so.1.0.6_16 [new file with mode: 0755]
lib/arm/libheremaps-engine.so.1
lib/arm/libheremaps-engine.so.1.0.6_14 [deleted file]
lib/arm/libheremaps-engine.so.1.0.6_16 [new file with mode: 0755]
lib/i586/libheremaps-engine.so.1
lib/i586/libheremaps-engine.so.1.0.6_14 [deleted file]
lib/i586/libheremaps-engine.so.1.0.6_16 [new file with mode: 0755]
lib/x86_64/libheremaps-engine.so.1
lib/x86_64/libheremaps-engine.so.1.0.6_14 [deleted file]
lib/x86_64/libheremaps-engine.so.1.0.6_16 [new file with mode: 0755]
maps-plugin-here.changes
packaging/maps-plugin-here.spec
src/here_route.cpp

index 3b5b6987ab76332ab78be34e2daabc52ea8d0021..cfe8530df81a830035c25fc2460eea2c17a203fa 100755 (executable)
@@ -134,4 +134,7 @@ extern void Stopwatch_Show(int aIndex);
 extern void Stopwatch_Reset(int aIndex);
 HERE_MAPS_END_NAMESPACE
 
+#undef VERSION
+#define VERSION(a, b, c)       (((a) << 16) + ((b) << 8) + (c))
+
 #endif // HEREMAPS_GLOBAL_H
index eb3480dbc2d1e41b02d9975bf3268d8609b95af9..6507c1e5dfc2dae400a379bc440dbc57ee011204 100755 (executable)
@@ -19,6 +19,7 @@
 #define GEOROUTEQUERY_H
 
 #include <map>
+#include <time.h>
 
 #include "common/HereMaps_global.h"
 #include "common/BaseQuery.h"
@@ -371,6 +372,34 @@ public:
      * @return An integer indicating the realtime traffic status.
      */
     size_t GetRealtimeTraffic(void) const;
+
+    /**
+     * This method sets a value that indicates the departure time.
+     *
+     * @param time An value indicating the departure time.
+     */
+    void SetDepartureTime(time_t time);
+
+    /**
+     * This method retrieves a value that indicates the departure time.
+     *
+     * @return An value indicating the departure time.
+     */
+    time_t GetDepartureTime(void) const;
+
+    /**
+     * This method sets a value that indicates the arrival time.
+     *
+     * @param time An intevalueger indicating the arrival time.
+     */
+    void SetArrivalTime(time_t time);
+
+    /**
+     * This method retrieves a value that indicates the arrival time.
+     *
+     * @return An value indicating the arrival time.
+     */
+    time_t GetArrivalTime(void) const;
 #endif
 
     /**
index 83e84d5355c517cd2eb39c90ae1a0af0d952f259..19cd54e03067c20f113650ca4e987419ff1aa529 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_14
\ No newline at end of file
+libheremaps-engine.so.1.0.6_16
\ No newline at end of file
diff --git a/lib/aarch64/libheremaps-engine.so.1.0.6_14 b/lib/aarch64/libheremaps-engine.so.1.0.6_14
deleted file mode 100755 (executable)
index aeec0c3..0000000
Binary files a/lib/aarch64/libheremaps-engine.so.1.0.6_14 and /dev/null differ
diff --git a/lib/aarch64/libheremaps-engine.so.1.0.6_16 b/lib/aarch64/libheremaps-engine.so.1.0.6_16
new file mode 100755 (executable)
index 0000000..3c972d8
Binary files /dev/null and b/lib/aarch64/libheremaps-engine.so.1.0.6_16 differ
index 83e84d5355c517cd2eb39c90ae1a0af0d952f259..19cd54e03067c20f113650ca4e987419ff1aa529 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_14
\ No newline at end of file
+libheremaps-engine.so.1.0.6_16
\ No newline at end of file
diff --git a/lib/arm/libheremaps-engine.so.1.0.6_14 b/lib/arm/libheremaps-engine.so.1.0.6_14
deleted file mode 100755 (executable)
index 231635d..0000000
Binary files a/lib/arm/libheremaps-engine.so.1.0.6_14 and /dev/null differ
diff --git a/lib/arm/libheremaps-engine.so.1.0.6_16 b/lib/arm/libheremaps-engine.so.1.0.6_16
new file mode 100755 (executable)
index 0000000..86f90ec
Binary files /dev/null and b/lib/arm/libheremaps-engine.so.1.0.6_16 differ
index 83e84d5355c517cd2eb39c90ae1a0af0d952f259..19cd54e03067c20f113650ca4e987419ff1aa529 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_14
\ No newline at end of file
+libheremaps-engine.so.1.0.6_16
\ No newline at end of file
diff --git a/lib/i586/libheremaps-engine.so.1.0.6_14 b/lib/i586/libheremaps-engine.so.1.0.6_14
deleted file mode 100755 (executable)
index dc3d14d..0000000
Binary files a/lib/i586/libheremaps-engine.so.1.0.6_14 and /dev/null differ
diff --git a/lib/i586/libheremaps-engine.so.1.0.6_16 b/lib/i586/libheremaps-engine.so.1.0.6_16
new file mode 100755 (executable)
index 0000000..cd6222c
Binary files /dev/null and b/lib/i586/libheremaps-engine.so.1.0.6_16 differ
index 83e84d5355c517cd2eb39c90ae1a0af0d952f259..19cd54e03067c20f113650ca4e987419ff1aa529 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_14
\ No newline at end of file
+libheremaps-engine.so.1.0.6_16
\ No newline at end of file
diff --git a/lib/x86_64/libheremaps-engine.so.1.0.6_14 b/lib/x86_64/libheremaps-engine.so.1.0.6_14
deleted file mode 100755 (executable)
index e7aa9a2..0000000
Binary files a/lib/x86_64/libheremaps-engine.so.1.0.6_14 and /dev/null differ
diff --git a/lib/x86_64/libheremaps-engine.so.1.0.6_16 b/lib/x86_64/libheremaps-engine.so.1.0.6_16
new file mode 100755 (executable)
index 0000000..793960d
Binary files /dev/null and b/lib/x86_64/libheremaps-engine.so.1.0.6_16 differ
index 16d4ea68f5822f42497d1bfeee34ccedac1efd12..5fcc2c7432a62a96bc1bac303d14ceb597ae25a5 100644 (file)
@@ -1,3 +1,8 @@
+[Version]   maps-plugin-here_0.3.3
+[Date]      28 July 2016
+[Title]     Support to set departure time for routing
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
 [Version]   maps-plugin-here_0.3.2
 [Date]      07 June 2016
 [Title]     modified internal APIs for maps-service
index 442dc7b484c2cf562631415941817493be78a706..a8d67f4383b4751f3499604bdc5c334a84096c88 100644 (file)
@@ -1,6 +1,6 @@
 Name:       maps-plugin-here
 Summary:    Tizen HERE Maps Plug-in Library
-Version:    0.3.2
+Version:    0.3.3
 Release:    1
 Group:      Location/Libraries
 License:    Apache-2.0 and HERE
index b3f2228fe0030b2b13c633537edad61dd212ade0..c7f8186b0f46d59cf79a8aebb690636e7e91bfcf 100644 (file)
@@ -193,6 +193,10 @@ here_error_e HereRoute::PreparePreference(maps_preference_h hPref)
                g_free(szRealtimeTraffic);
        }
 
+       time_t timeVal = 0;
+       if (maps_preference_get_route_departure_time(hPref, &timeVal) == MAPS_ERROR_NONE)
+               m_pQuery->SetDepartureTime(timeVal);
+
        return HERE_ERROR_NONE;
 }