/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_DEFAULT "slp.appsvc.operation.DEFAULT"
+#define APPSVC_OPERATION_DEFAULT "http://tizen.org/appcontrol/operation/default"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_EDIT "slp.appsvc.operation.EDIT"
+#define APPSVC_OPERATION_EDIT "http://tizen.org/appcontrol/operation/edit"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_VIEW "slp.appsvc.operation.VIEW"
+#define APPSVC_OPERATION_VIEW "http://tizen.org/appcontrol/operation/view"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_PICK "slp.appsvc.operation.PICK"
+#define APPSVC_OPERATION_PICK "http://tizen.org/appcontrol/operation/pick"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_CREATE_CONTENT "slp.appsvc.operation.CREATE_CONTENT"
+#define APPSVC_OPERATION_CREATE_CONTENT "http://tizen.org/appcontrol/operation/create_content"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_CALL "slp.appsvc.operation.CALL"
+#define APPSVC_OPERATION_CALL "http://tizen.org/appcontrol/operation/call"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_SEND "slp.appsvc.operation.SEND"
+#define APPSVC_OPERATION_SEND "http://tizen.org/appcontrol/operation/send"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_SEND_TEXT "slp.appsvc.operation.SEND_TEXT"
+#define APPSVC_OPERATION_SEND_TEXT "http://tizen.org/appcontrol/operation/send_text"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_DIAL "slp.appsvc.operation.DIAL"
+#define APPSVC_OPERATION_DIAL "http://tizen.org/appcontrol/operation/dial"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_SEARCH "slp.appsvc.operation.SEARCH"
+#define APPSVC_OPERATION_SEARCH "http://tizen.org/appcontrol/operation/search"
/** APP_SVC OPERATION TYPE*/
-#define APPSVC_OPERATION_DOWNLOAD "slp.appsvc.operation.DOWNLOAD"
+#define APPSVC_OPERATION_DOWNLOAD "http://tizen.org/appcontrol/operation/download"
/** APP_SVC DATA SUBJECT*/
-#define APPSVC_DATA_SUBJECT "slp.appsvc.data.SUBJECT"
+#define APPSVC_DATA_SUBJECT "http://tizen.org/appcontrol/data/subject"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_TO "slp.appsvc.data.TO"
+#define APPSVC_DATA_TO "http://tizen.org/appcontrol/data/to"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_CC "slp.appsvc.data.CC"
+#define APPSVC_DATA_CC "http://tizen.org/appcontrol/data/cc"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_BCC "slp.appsvc.data.BCC"
+#define APPSVC_DATA_BCC "http://tizen.org/appcontrol/data/bcc"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_TEXT "slp.appsvc.data.TEXT"
+#define APPSVC_DATA_TEXT "http://tizen.org/appcontrol/data/text"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_TITLE "slp.appsvc.data.TITLE"
+#define APPSVC_DATA_TITLE "http://tizen.org/appcontrol/data/title"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_SELECTED "slp.appsvc.data.SELECTED"
+#define APPSVC_DATA_SELECTED "http://tizen.org/appcontrol/data/selected"
/** APP_SVC DATA TYPE*/
-#define APPSVC_DATA_KEYWORD "slp.appsvc.data.KEYWORD"
+#define APPSVC_DATA_KEYWORD "http://tizen.org/appcontrol/data/keyword"
+
+/** APP SVC internal private key */
+#define APP_SVC_K_URI_R_INFO "__APP_SVC_URI_R_INFO__"
+
+/** APP SVC internal private value */
+#define APP_SVC_V_SCHEME_AND_HOST "__SCHEME_AND_HOST__"
+/** APP SVC internal private value */
+#define APP_SVC_V_SCHEME "__SCHEME__"
/**
*/
typedef int (*appsvc_info_iter_fn)(const char *pkg_name, void *data);
+typedef int (*appsvc_host_res_fn)(void *data);
/**
* @par Description:
*/
int appsvc_set_pkgname(bundle *b, const char *pkg_name);
+
+/**
+ * @par Description:
+ * This function sets a appid to launch application based on appsvc.
+ *
+ * @param[in] b bundle object
+ * @param[in] appid application id for explict launch
+ *
+ * @return 0 if success, negative value(<0) if fail
+ * @retval APPSVC_RET_OK - success
+ * @retval APPSVC_RET_ERROR - general error
+ * @retval APPSVC_RET_EINVAL - invalid argument(content)
+ *
+ * @pre None.
+ * @post None.
+ * @see None.
+ * @remarks None.
+ *
+ * @par Sample code:
+ * @code
+#include <appsvc.h>
+
+...
+{
+ bundle *b = NULL;
+
+ b = bundle_create();
+
+ appsvc_set_operation(b, APPSVC_OPERATION_PICK);
+ appsvc_set_mime(b,"image/jpg");
+ appsvc_set_appid(b, "org.tizen.mygallery");
+}
+ * @endcode
+ *
+ */
+int appsvc_set_appid(bundle *b, const char *appid);
+
+
/**
* @par Description:
* This API launch application based on appsvc.
/**
* @par Description:
+ * This function gets a application id from bundle.
+ *
+ * @param[in] b bundle object
+ *
+ * @return Pointer for application id string if success, NULL if fail
+ *
+ * @pre None.
+ * @post None.
+ * @see None.
+ * @remarks None.
+ *
+ * @par Sample code:
+ * @code
+#include <appsvc.h>
+
+...
+{
+ char *val;
+ val = appsvc_get_appid(b);
+}
+ * @endcode
+ *
+ */
+const char *appsvc_get_appid(bundle *b);
+
+/**
+ * @par Description:
* This function gets value from key.
*
* @param[in] b bundle object
* @endcode
*
*/
-int appsvc_set_defapp(const char *op,const char *mime_type,const char *scheme,const char *defapp);
+int appsvc_set_defapp(const char *op, const char *mime_type, const char *uri,
+ const char *defapp);
/**
* @par Description: