From e740e2b232372946fc1aa3716faae9c8ff3edc9f Mon Sep 17 00:00:00 2001 From: Michal Skorupinski Date: Wed, 14 Oct 2015 18:10:24 +0200 Subject: [PATCH] [SAMPLE APP][DATA-CONTROL-PROVIDER] Data-control-provider documentation added Change-Id: I21330a5368bd8de331f017e78fca28d4e239d7a1 Signed-off-by: Michal Skorupinski --- .../html/mobile_n/data_control_consumer_sd_mn.htm | 4 +- .../html/mobile_n/data_control_provider_sd_mn.htm | 71 ++++++++++++++++++++++ .../html/mobile_n/sd_mn.htm | 4 ++ 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 org.tizen.sampledescriptions/html/mobile_n/data_control_provider_sd_mn.htm diff --git a/org.tizen.sampledescriptions/html/mobile_n/data_control_consumer_sd_mn.htm b/org.tizen.sampledescriptions/html/mobile_n/data_control_consumer_sd_mn.htm index 985747e..64e02f0 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/data_control_consumer_sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/data_control_consumer_sd_mn.htm @@ -368,7 +368,7 @@ int app_run(app_data *app, int argc, char **argv)

Map

Initialization:
-

In order to achieve communication with the provider app, the correct provider app ID must be set. The ID can be found in the provider's manifest. The data_control_map_response_cb must be filled with correct functions.

+

In order to achieve communication with the provider app, the correct provider app ID must be set. The ID can be found in the provider's manifest. The data_control_map_response_cb must be filled with correct functions.

 
@@ -464,7 +464,7 @@ The sql consumer's initialization is similar to the map consumer's initializatio
 data_control_sql_create(&s_info.provider);
 
-

A valid provider_id and data_id have to to be set.

+

A valid provider_id and data_id have to to be set.

 data_control_sql_set_provider_id(s_info.provider, provider_id);
 data_control_sql_set_data_id(s_info.provider, data_id);
diff --git a/org.tizen.sampledescriptions/html/mobile_n/data_control_provider_sd_mn.htm b/org.tizen.sampledescriptions/html/mobile_n/data_control_provider_sd_mn.htm
new file mode 100644
index 0000000..6a216cb
--- /dev/null
+++ b/org.tizen.sampledescriptions/html/mobile_n/data_control_provider_sd_mn.htm
@@ -0,0 +1,71 @@
+
+
+
+	
+	
+	
+	
+	
+	
+	
+	
+	
+	Data-Control-Consumer Sample Overview
+
+
+
+
+
+ +
+
+

Mobile native

+
+ + +

Data-Control-Provider Sample Overview

+ +

The sample demonstrates how to exchange data between a consumer application and a provider service. There are two methods of data exchange:

+
    +
  • Map method - using key value pairs;
  • +
  • Sql method - using sql queries.
  • +
+

No user interface is provided as this is a service application that runs in the background. The documentation for the consumer app can be found here.

+ +

Prerequisites

+

To ensure proper application execution, the http://tizen.org/privilege/datasharing privilege must be set and the following data-control entries must be enabled: + +

+
    +
  • http://data-control-provider.com/datacontrol/provider/data-control-provider with sql type and ReadWrite access rights;
  • +
  • http://data-control-provider.com/datacontrol/provider/data-control-providers with map type and ReadWrite access rights.
  • +
+ + + + + + + +
+ +Go to top + + + + + + + + diff --git a/org.tizen.sampledescriptions/html/mobile_n/sd_mn.htm b/org.tizen.sampledescriptions/html/mobile_n/sd_mn.htm index bc0dac6..bd176d2 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/sd_mn.htm @@ -78,6 +78,10 @@ Data-Control-Consumer Demonstrates how to implement Data-Control-Consumer application using both sql and map methods. + + Data-Control-Provider + Demonstrates how to implement Data-Control-Provider service using both sql and map methods. + EvasGLCube Demonstrates how you can implement a cube that can be rotated on the screen through Evas_GL. -- 2.7.4