upload tizen1.0 source
[framework/web/wrt-installer.git] / src / wrt-installer / wrt_installer_api.h
index fe5ca85..bf43a1a 100755 (executable)
@@ -325,6 +325,51 @@ int wrt_installer_init_for_tests(void *userdata,
  */
 void wrt_installer_shutdown_for_tests();
 
+/**
+ * @fn void wrt_install_widget_from_web(const char *url,
+ *                      const char* icon,
+ *                      void *userdata,
+ *                      WrtInstallerStatusCallback status_callback,
+ *                      WrtProgressCallback progress_callback,
+ *                      wrt_widget_update_mode_t update_mode);
+ *
+ * @brief Installs widget from given url
+ *
+ * This method is used to install widget from a given url.
+ *
+ * @param [in]  url                 Widget url
+ * @param [in]  icon                Icon url
+ * @param [in]  userdata            User parameters to be passed to the callback
+ * @param [in]  status_cb           Call to this one will be done at the end of
+ *                                  operation
+ *                                  The callback is called in the context of the
+ *                                  application's
+ * @param [in]  progress_cb         Callback function to get data of install
+ *                                  progress
+ *                                  If you don't want to get progress data, this
+ *                                  should be NULL
+ * @param [in]  install_mode        Installation mode
+ * @return                          Nothing (status returned in callback).
+ *
+ * Sample code:
+ * @code
+ *   wrt_install_widget(url.c_str(),
+ *                      icon.c_str(),
+ *                      NULL,
+ *                      install_cb,
+ *                      progress_cb,
+ *                      WRT_WIM_POLICY_WAC);
+ * @endcode
+ *
+ * @see wrt_installer_uninstall_widget
+ */
+void wrt_install_widget_from_browser(const char *url,
+                                 const char* icon,
+                                 void* userdata,
+                                 WrtInstallerStatusCallback status_cb,
+                                 WrtProgressCallback progress_cb,
+                                 wrt_widget_update_mode_t update_mode);
+
 WrtErrStatus wrt_get_widget_by_pkgname(const std::string pkgname,
         int *widget_handle);