[SAMPLE APP][DATA-CONTROL-PROVIDER] Data-control-provider documentation added
authorMichal Skorupinski <m.skorupinsk@samsung.com>
Wed, 14 Oct 2015 16:10:24 +0000 (18:10 +0200)
committerMichal Skorupinski <m.skorupinsk@samsung.com>
Fri, 16 Oct 2015 15:39:52 +0000 (17:39 +0200)
Change-Id: I21330a5368bd8de331f017e78fca28d4e239d7a1
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/data_control_consumer_sd_mn.htm
org.tizen.sampledescriptions/html/mobile_n/data_control_provider_sd_mn.htm [new file with mode: 0644]
org.tizen.sampledescriptions/html/mobile_n/sd_mn.htm

index 985747e..64e02f0 100644 (file)
@@ -368,7 +368,7 @@ int app_run(app_data *app, int argc, char **argv)
 <h4>Map</h4>
 <h5>Initialization:</h5>
 
-<p>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 <span style="font-family: Courier New,Courier,monospace">data_control_map_response_cb</span> must be filled with correct functions.</p>
+<p>In order to achieve communication with the provider app, the correct provider app <a href = "data_control_provider_sd_mn.htm#provider-map-id">ID</a> must be set. The ID can be found in the provider's manifest. The <span style="font-family: Courier New,Courier,monospace">data_control_map_response_cb</span> must be filled with correct functions.</p>
 
 <pre class="prettyprint">
 
@@ -464,7 +464,7 @@ The sql consumer's initialization is similar to the map consumer's initializatio
 data_control_sql_create(&s_info.provider);
 </pre>
 
-<p>A valid provider_id and data_id have to to be set.</p>
+<p>A valid <a href = "data_control_provider_sd_mn.htm#provider-sql-id">provider_id</a> and data_id have to to be set.</p>
 <pre class="prettyprint">
 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 (file)
index 0000000..6a216cb
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+       <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+       <meta http-equiv="X-UA-Compatible" content="IE=9" />
+       <link rel="stylesheet" type="text/css" href="../css/styles.css" />
+       <link rel="stylesheet" type="text/css" href="../css/snippet.css" />
+       <script type="text/javascript" src="../scripts/snippet.js"></script>
+       <script type="text/javascript" src="../scripts/jquery.util.js" charset="utf-8"></script>
+       <script type="text/javascript" src="../scripts/common.js" charset="utf-8"></script>
+       <script type="text/javascript" src="../scripts/core.js" charset="utf-8"></script>
+       <script type="text/javascript" src="../scripts/search.js" charset="utf-8"></script>
+       <title>Data-Control-Consumer Sample Overview</title>
+</head>
+
+<body class="no-toc" onload="prettyPrint()" style="overflow: auto;">
+
+<div id="toc-navigation"></div>
+
+<div id="container"><div id="contents"><div class="content">
+       <div id="profile">
+               <p><img alt="Mobile native" src="../images/mn_icon.png"/></p>
+       </div>
+
+<!-- ********************************************************************************** -->
+<h1>Data-Control-Provider Sample Overview</h1>
+
+<p>The sample demonstrates how to exchange data between a consumer application and a provider service. There are two methods of data exchange:</p>
+<ul>
+       <li>Map method - using key value pairs;</li>
+       <li>Sql method - using sql queries.</li>
+</ul>
+<p>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 <a href = "data_control_consumer_sd_mn.htm">here</a>.</p>
+
+<h2>Prerequisites</h2>
+<p>To ensure proper application execution, the <span style="font-family: Courier New,Courier,monospace">http://tizen.org/privilege/datasharing</span> privilege must be set and the following data-control entries must be enabled:
+
+</p>
+<ul>
+       <li><span id = "provider-map-id" style="font-family: Courier New,Courier,monospace">http://data-control-provider.com/datacontrol/provider/data-control-provider</span> with sql type and <span style="font-family: Courier New,Courier,monospace">ReadWrite</span> access rights;</li>
+       <li><span id = "provider-sql-id" style="font-family: Courier New,Courier,monospace">http://data-control-provider.com/datacontrol/provider/data-control-providers</span> with map type and <span style="font-family: Courier New,Courier,monospace">ReadWrite</span> access rights.</li>
+</ul>
+
+
+
+<!-- ********************************************************************************** -->
+
+<script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
+<script type="text/javascript" src="../scripts/showhide.js"></script>
+</div></div></div>
+
+<a class="top sms" href="#"><img src="../images/btn_top.gif" alt="Go to top" /></a>
+
+<div id="footer">
+<p class="footer">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br/>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</p>
+</div>
+
+<script type="text/javascript">
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-25976949-1']);
+_gaq.push(['_trackPageview']);
+(function() {
+var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+})();
+</script>
+
+
+</body>
+</html>
index bc0dac6..bd176d2 100644 (file)
      <td><a href="data_control_consumer_sd_mn.htm">Data-Control-Consumer</a></td>
      <td>Demonstrates how to implement Data-Control-Consumer application using both sql and map methods.</td>
     </tr>
+    <tr>
+     <td><a href="data_control_provider_sd_mn.htm">Data-Control-Provider</a></td>
+     <td>Demonstrates how to implement Data-Control-Provider service using both sql and map methods.</td>
+    </tr>
        <tr> 
      <td><a href="evas_gl_sd_mn.htm">EvasGLCube</a></td> 
      <td>Demonstrates how you can implement a cube that can be rotated on the screen through Evas_GL.</td>