/**
* @defgroup SHORTCUT Add to home (shortcut)
* @author Sung-jae Park <nicesj.park@samsung.com>
+ * @author Youngjoo Park <yjoo93.park@samsung.com>
* @version 0.1
* @brief To enhance the Add to home feature. Two types of API set are supported.
* One for the homescreen developers.
*/
typedef int (*result_cb_t)(int ret, int pid, void *data);
+/**
+ * @brief After send a request to create a icon snapshot image, this callback will be called with its result.
+ * @param[in] handle Handle of requestor
+ * @param[in] ret status of request
+ * @param[in] data Callback data
+ * @return int result state of callback call
+ * @retval 0 If it is successfully completed
+ * @see shortcut_icon_request_send()
+ * @pre None
+ * @post None
+ * @remarks None
+ */
typedef int (*icon_request_cb_t)(struct shortcut_icon *handle, int ret, void *data);
/**
* LAUNCH_BY_PACKAGE is used for adding a package itself as a shortcut
* LAUNCH_BY_URI is used for adding a shortcut for "uri" data.
*/
+//! [Enumeration values for type of shortcuts]
enum shortcut_type {
/*!< Deprecated type */
- SHORTCUT_PACKAGE = 0x00000000, /**< Launch the package using given pakcage name. */
- SHORTCUT_DATA = 0x00000001, /**< Launch the related package with given data(content_info). */
- SHORTCUT_FILE = 0x00000002, /**< Launch the related package with given filename(content_info). */
+ SHORTCUT_PACKAGE = 0x00000000, /*!< Launch the package using given pakcage name. */
+ SHORTCUT_DATA = 0x00000001, /*!< Launch the related package with given data(content_info). */
+ SHORTCUT_FILE = 0x00000002, /*!< Launch the related package with given filename(content_info). */
/*!< Use these */
- LAUNCH_BY_PACKAGE = 0x00000000, /*!< Launch the package using given pakcage name. */
- LAUNCH_BY_URI = 0x00000001, /*!< Launch the related package with given data(URI). */
-
- SHORTCUT_REMOVE = 0x40000000, /*!< Remove a shortcut */
- LIVEBOX_REMOVE = 0x80000000, /*!< Remove a livebox */
-
- LIVEBOX_TYPE_DEFAULT = 0x10000000,
- LIVEBOX_TYPE_EASY_DEFAULT = 0x30000000,
- LIVEBOX_TYPE_1x1 = 0x10010000,
- LIVEBOX_TYPE_2x1 = 0x10020000,
- LIVEBOX_TYPE_2x2 = 0x10040000,
- LIVEBOX_TYPE_4x1 = 0x10080000,
- LIVEBOX_TYPE_4x2 = 0x10100000,
- LIVEBOX_TYPE_4x3 = 0x10200000,
- LIVEBOX_TYPE_4x4 = 0x10400000,
- LIVEBOX_TYPE_4x5 = 0x11000000,
- LIVEBOX_TYPE_4x6 = 0x12000000,
- LIVEBOX_TYPE_EASY_1x1 = 0x30010000,
- LIVEBOX_TYPE_EASY_3x1 = 0x30020000,
- LIVEBOX_TYPE_EASY_3x3 = 0x30040000,
- LIVEBOX_TYPE_UNKNOWN = 0x1FFF0000
+ LAUNCH_BY_PACKAGE = 0x00000000, /*!< Launch the package using given pakcage name. */
+ LAUNCH_BY_URI = 0x00000001, /*!< Launch the related package with given data(URI). */
+
+ SHORTCUT_REMOVE = 0x40000000, /*!< Remove a shortcut */
+ LIVEBOX_REMOVE = 0x80000000, /*!< Remove a livebox */
+
+ LIVEBOX_TYPE_DEFAULT = 0x10000000, /*!< Type mask for default livebox */
+ LIVEBOX_TYPE_EASY_DEFAULT = 0x30000000, /*!< Type mask for easy mode livebox */
+ LIVEBOX_TYPE_1x1 = 0x10010000, /*!< 1x1 */
+ LIVEBOX_TYPE_2x1 = 0x10020000, /*!< 2x1 */
+ LIVEBOX_TYPE_2x2 = 0x10040000, /*!< 2x2 */
+ LIVEBOX_TYPE_4x1 = 0x10080000, /*!< 4x1 */
+ LIVEBOX_TYPE_4x2 = 0x10100000, /*!< 4x2 */
+ LIVEBOX_TYPE_4x3 = 0x10200000, /*!< 4x3 */
+ LIVEBOX_TYPE_4x4 = 0x10400000, /*!< 4x4 */
+ LIVEBOX_TYPE_4x5 = 0x11000000, /*!< 4x5 */
+ LIVEBOX_TYPE_4x6 = 0x12000000, /*!< 4x6 */
+ LIVEBOX_TYPE_EASY_1x1 = 0x30010000, /*!< Easy mode 1x1 */
+ LIVEBOX_TYPE_EASY_3x1 = 0x30020000, /*!< Easy mode 3x2 */
+ LIVEBOX_TYPE_EASY_3x3 = 0x30040000, /*!< Easy mode 3x3 */
+ LIVEBOX_TYPE_UNKNOWN = 0x1FFF0000 /*!< Error */
};
+//! [Enumeration values for type of shortcuts]
enum shortcut_response {
- SHORTCUT_SUCCESS = 0x00000000, /*!< Successfully handled */
- SHORTCUT_ERROR = 0x80000000, /*!< MSB(1). Check this using SHORTCUT_STATUS_IS_ERROR macro */
- SHORTCUT_ERROR_NO_SPACE = SHORTCUT_ERROR | 0x0001, /*!< There is no space to add new shortcut */
- SHORTCUT_ERROR_EXIST = SHORTCUT_ERROR | 0x0002, /*!< Shortcut is already added */
- SHORTCUT_ERROR_FAULT = SHORTCUT_ERROR | 0x0004, /*!< Failed to add a shortcut. Unrecoverable error */
- SHORTCUT_ERROR_UNSUPPORTED = SHORTCUT_ERROR | 0x0008, /*!< Unsupported shortcut */
- SHORTCUT_ERROR_BUSY = SHORTCUT_ERROR | 0x0010, /*!< Receiver is busy, try again later */
- SHORTCUT_ERROR_INVALID = SHORTCUT_ERROR | 0x0020, /*!< Shortcut request is not valid, invalid parameter or invalid argument value */
- SHORTCUT_ERROR_COMM = SHORTCUT_ERROR | 0x0040, /*!< Connection is not estabilished. or there is a problem of communication */
- SHORTCUT_ERROR_MEMORY = SHORTCUT_ERROR | 0x0080, /*!< Memory is not enough to handle new request */
- SHORTCUT_ERROR_IO = SHORTCUT_ERROR | 0x0100, /*!< Unable to access file or DB. Check your resource files */
- SHORTCUT_ERROR_PERMISSION = SHORTCUT_ERROR | 0x0200, /*!< Has no permission to add a shortcut */
-
- SHORTCUT_STATUS_CARED = 0x08000000 /*!< Shortcut status is already cared. check this using SHORTCUT_STATUS_IS_CARED macro */
+ SHORTCUT_SUCCESS = 0x00000000, /*!< Successfully handled */
+ SHORTCUT_ERROR = 0x80000000, /*!< MSB(1). Check this using SHORTCUT_STATUS_IS_ERROR macro */
+ SHORTCUT_ERROR_NO_SPACE = SHORTCUT_ERROR | 0x0001, /*!< There is no space to add new shortcut */
+ SHORTCUT_ERROR_EXIST = SHORTCUT_ERROR | 0x0002, /*!< Shortcut is already added */
+ SHORTCUT_ERROR_FAULT = SHORTCUT_ERROR | 0x0004, /*!< Failed to add a shortcut. Unrecoverable error */
+ SHORTCUT_ERROR_UNSUPPORTED = SHORTCUT_ERROR | 0x0008, /*!< Unsupported shortcut */
+ SHORTCUT_ERROR_BUSY = SHORTCUT_ERROR | 0x0010, /*!< Receiver is busy, try again later */
+ SHORTCUT_ERROR_INVALID = SHORTCUT_ERROR | 0x0020, /*!< Shortcut request is not valid, invalid parameter or invalid argument value */
+ SHORTCUT_ERROR_COMM = SHORTCUT_ERROR | 0x0040, /*!< Connection is not estabilished. or there is a problem of communication */
+ SHORTCUT_ERROR_MEMORY = SHORTCUT_ERROR | 0x0080, /*!< Memory is not enough to handle new request */
+ SHORTCUT_ERROR_IO = SHORTCUT_ERROR | 0x0100, /*!< Unable to access file or DB. Check your resource files */
+ SHORTCUT_ERROR_PERMISSION = SHORTCUT_ERROR | 0x0200, /*!< Has no permission to add a shortcut */
+
+ SHORTCUT_STATUS_CARED = 0x08000000 /*!< Shortcut status is already cared. check this using SHORTCUT_STATUS_IS_CARED macro */
};
+/*!
+ * \brief Macro function for checking the type
+ * \param[in] type Type of box
+ * \return bool
+ * \retval true(1) If it is a livebox
+ * \retval false(0) if it is not a livebox
+ * \see shortcut_type
+ * \pre None
+ * \post None
+ * \remarks None
+ */
#define ADD_TO_HOME_IS_LIVEBOX(type) (!!((type) & 0x10000000))
-#define ADD_TO_HOME_IS_REMOVE_REQUEST(type) (!!((type) & SHORTCUT_REMOVE))
+/*!
+ * \brief Macro function for checking the request type
+ * \param[in] type Request type
+ * \return bool
+ * \retval true(1) Shortcut remove request
+ * \retval false(0) Not a remove request
+ * \see shortcut_type
+ * \pre None
+ * \post None
+ * \remarks None
+ */
+#define ADD_TO_HOME_IS_REMOVE_SHORTCUT(type) (!!((type) & SHORTCUT_REMOVE))
+
+/*!
+ * \brief Macro function for checking the request type
+ * \param[in] type Request type
+ * \return bool
+ * \retval true(1) Livebox remove request
+ * \retval false(0) Not a remove request
+ * \see shortcut_type
+ * \pre None
+ * \post None
+ * \remarks None
+ */
+#define ADD_TO_HOME_IS_REMOVE_LIVEBOX(type) (!!((type) & LIVEBOX_REMOVE))
+
+/*!
+ * \brief Macro function for checking the status of request
+ * \param[in] type Status
+ * \return bool
+ * \retval true(1) Error
+ * \retval false(0) Not an error
+ * \see shortcut_response
+ * \pre None
+ * \post None
+ * \remarks None
+ */
#define SHORTCUT_STATUS_IS_ERROR(type) (!!((type) & SHORTCUT_ERROR))
+
+/*!
+ * \brief Macro function for checking the status of request
+ * \param[in] type Status
+ * \return bool
+ * \retval true(1) Shortcut request is already handled by requestee (homescreen, viewer, ...)
+ * \retval false(0) Request result should be cared by requestor
+ * \see shortcut_response
+ * \pre None
+ * \post None
+ * \remarks None
+ */
#define SHORTCUT_STATUS_IS_CARED(type) (!!((type) & SHORTCUT_STATUS_CARED))
-#define SHORTCUT_ERROR_CODE(type) (type & ~SHORTCUT_STATUS_CARED)
+
+/*!
+ * \brief Filtering the pure error code from given status
+ * \param[in] status status
+ * \return status code (error)
+ * \see shortcut_response
+ * \pre None
+ * \post None
+ * \remarks None
+ *
+ */
+#define SHORTCUT_ERROR_CODE(status) (type & ~SHORTCUT_STATUS_CARED)
/**
* @fn int shortcut_set_request_cb(request_cb_t request_cb, void *data)
extern int shortcut_set_request_cb(request_cb_t request_cb, void *data);
/**
- * @fn int add_to_home_shortcut(const char *appid, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data)
+ * \fn add_to_home_shortcut(const char *appid, const char *name, int type, const char *content_info, const char *icon, int allow_duplicate, result_cb_t result_cb, void *data)
*
* @brief The application, which supporting the add_to_home feature, should invoke this.
*
* This is an asynchronous API.
*
* @par Important Notes:
- * - Application should check the return value of this function.
- * - Application should check the return status from the callback function
+ * - Application must check the return value of this function.
+ * - Application must check the return status from the callback function
* - Application should set the callback function to get the result of this request.
*
* @param[in] appid Package name of owner of this shortcut.
* @param[in] name Name for created shortcut icon.
- * @param[in] type 3 kinds of types are defined.
- * @param[in] content_info Specific information for delivering to the creating shortcut.
+ * @param[in] type Type of shortcuts (livebox or shortcut, and its size if it is for the livebox)
+ * @param[in] content_info Specific information for delivering to the viewer for creating a shortcut.
* @param[in] icon Absolute path of an icon file
* @param[in] allow_duplicate set 1 If accept the duplicated shortcut or 0
- * @param[in] result_cb Callback function pointer which will be invoked after add_to_home request.
- * @param[in] data Callback data to deliver to the callback function.
+ * @param[in] result_cb Address of callback function which will be called when the result comes back from the viewer.
+ * @param[in] data Callback data which will be used in callback function
*
* @return Return Type (int)
- * - 0 - Succeed to send the request
- * - <0 - Failed to send the request
+ * \retval 0 Succeed to send the request
+ * \retval SHORTCUT_ERROR_FAULT Unrecoverable error
+ * \retval SHORTCUT_ERROR_INVALID Shortcut request is not valid, invalid parameter or invalid argument value
+ * \retval SHORTCUT_ERROR_COMM Connection is not estabilished. or there is a problem of communication
+ * \retval SHORTCUT_ERROR_MEMORY Memory is not enough to handle new request
+ * \retval SHORTCUT_ERROR_IO Unable to access file or DB. Check your resource files
+ * \retval SHORTCUT_ERROR_PERMISSION Has no permission to add a shortcut
*
* @see result_cb_t
*
- * @pre - You have to prepare the callback function
+ * @pre You have to prepare the callback function
*
- * @post - You have to check the return status from callback function which is passed by argument.
+ * @post You have to check the return status from callback function which is passed by argument.
*
* @remarks - If a homescreen does not support this feature, you will get proper error code.
*
* static int app_create(void *data)
* {
* add_to_home_shortcut("com.samsung.gallery", "With friends",
- * SHORTCUT_DATA, "gallery:0000-0000",
+ * LAUNCH_BY_URI, "gallery:0000-0000",
* "/opt/media/Pictures/Friends.jpg", 0, result_cb, NULL);
* return 0;
* }
*
* @endcode
*/
-extern int shortcut_get_list(const char *appid, int (*cb)(const char *appid, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *data), void *data);
-
extern int add_to_home_shortcut(const char *appid, const char *name, int type, const char *content_info, const char *icon, int allow_duplicate, result_cb_t result_cb, void *data);
+extern int shortcut_get_list(const char *appid, int (*cb)(const char *appid, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *data), void *data);
+
extern int add_to_home_livebox(const char *appid, const char *name, int type, const char *content, const char *icon, double period, int allow_duplicate, result_cb_t result_cb, void *data);
extern int add_to_home_remove_shortcut(const char *appid, const char *name, const char *content_info, result_cb_t result_cb, void *data);
*/
/**
- * @ingroup SLP_PG
- * @defgroup SHORTCUT_PG Add to home (shortcut)
- * @{
+ * @ingroup SLP_PG
+ * @defgroup SHORTCUT_PG Add to home (shortcut)
+ * @{
+<H1>1. Shortcut</H1>
+Tizen is supporting the "add shortcut or add to home" for various applications.
+Developers may use the shortcut library (libshortcut) to implement features sending (applications) and receiving (possibly home screen) shortcuts.
+If home screen implements the shortcut service using the library, the applications are good to go for adding their shortcuts to the home screen(, and vice versa.)
- <h1 class="pg">Introduction</h1>
- Shortcut is a communication interfaces for homescreen and applications. To enable the add_to_home feature. Shortcut(libshortcut) uses socket for IPC.
+<H1>2. How to add a new shortcut to the home screen</H1>
+<H2>2.1 Add to home (From the app to home)</H2>
- @image html SLP_Shortcut_PG_image01.png
+The followings are two separate APIs to support "add to home" feature.
+
+\code
+typedef int (*result_cb_t)(int ret, int pid, void *data)
- <h2 class="pg">Properties</h2>
-- Types of shortcut
-- Header File : shortcut.h
+extern int add_to_home_shortcut(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data)
+
+extern int add_to_home_livebox(const char *pkgname, const char *name, int type, const char *content, const char *icon, double period, result_cb_t result_cb, void *data)
+\endcode
-<h1 class="pg">Programming Guide</h1>
+Currently, our home screen can contain two different types of contents (that are pure shortcuts and liveboxes).
-<h2 class="pg">Types of shortcut</h1>
-Shortcut defines 3 kinds of types.
+To add a pure shortcut i.e., simply for launching an app, developers can use "add_to_home_shortcut" API to deliver their shortcuts to a home screen.
-<h3 class="pg">1. SHORTCUT_PACKAGE</h1>
-We can use this for adding a package shortcut with additional information. <br/>
-@code
-@endcode
+If your application supports our livebox service and implments livebox type shortcut, then you can use "add_to_home_livebox" API to have a home screen add the livebox on its screen.
-<h3 class="pg">2. SHORTCUT_DATA</h1>
-@code
-@endcode
+<TABLE>
+<TR><TH>Parameters</TH><TH>Comment</TH></TR>
+<TR><TD>pkgname</TD><TD>Package name</TD></TR>
+<TR><TD>name</TD><TD>Application name wich will be displayed on the screen</TD></TR>
+<TR><TD>type</TD><TD>Basically it describes launching options whether to use a package name or URI. LAUNCH_BY_PACKAGE or LAUNCH_BY_URI</TD></TR>
+<TR><TD>content</TD><TD>
+Application data used for creating a pure shortcut or creating a livebox
-<h3 class="pg">3. SHORTCUT_FILE</h1>
-@code
-@endcode
+ Shortcut
-<h2 class="pg">Error code</h1>
-<h3 class="pg">1. -EINVAL</h1>
-<h3 class="pg">1. -EFAULT</h1>
-@code
-@endcode
-*/
+1. if the type is Launch by package: None
-/**
-@}
+2. if the type is Launch by URI: put the URI in the content
+
+ Livebox: any data necessary to create a livebox. Basically, it will passed to the livebox plug-in's create function.
+</TD></TR>
+<TR><TD>icon</TD><TD>Absolute path to the icon file, If you set this "NULL", the home screen will use the deafult icon file (but it is depends on the homescreen implementations)</TD></TR>
+<TR><TD>period</TD><TD><Only for livebox> Update period. The period must be greater than 0.0f</TD></TR>
+<TR><TD>result_cb</TD><TD>Result callback. The callback will be called after a shortcut or livebox has been added. Don't forget to check the return value.</TD></TR>
+<TR><TD>data</TD><TD>Callback data</TD></TR>
+</TABLE>
+
+<H3>2.1.1 Supported types</H3>
+\snippet lib/include/shortcut.h Enumeration values for type of shortcuts
+
+<H2>2.2 Add shortcut (Home screen retrieves shortcuts from app)</H2>
+"Add shortcut " service enables home screen to retrieve all shortcuts that applications promised to support and request an app to send their shortcuts to home directly, as opposed to "add to home".
+
+It is initiated by home screen as opposed to "add to home" which is initiated by an application."Add shortcut " service enables home screen to retrieve all shortcuts that applications promised to support and request an app to send their shortcuts to home directly, as opposed to "add to home".
+
+It is initiated by home screen as opposed to "add to home" which is initiated by an application.
+
+<H3>2.2.1 Build the shortcut list DB</H3>
+\image html BuildShortcutList.png
+
+To recognize how many and what kinds of shortcuts have been registerred, each application who wants to support "add shortcut" service needs to install the XML file that defines "shortcut" information.
+The following table describes the format and information necessary to define the shortcuts application can support.
+Then, the information will be shown and used in home screen when a user selects "add shortcut" service.
+
+<TABLE>
+<TH><TD>Syntax of the shortcut manifest file</TD></TH>
+<TR><TD>
+\code
+<manifest xmlns="http://tizen.org/ns/packages" package="com.samsung.APP_PKGNAME">
+...
+ <shortcut-list>
+ <shortcut appid="com.samsung.myapp" extra_key="key_string" extra_data="data_string_for_key">
+ <icon>/opt/share/icons/default/small/com.samsung.myapp-shortcut.png</icon>
+ <label>Default name</label>
+ <label xml:lang="en-us">Name en</label>
+ <label xml:lang="nl-nl">Name nl</label>
+ <label xml:lang="de-de">Name de</label>
+ <label xml:lang="zh-hk">Name hk</label>
+ <label xml:lang="zh-cn">Name cn</label>
+ <label xml:lang="ru-ru">Name ru</label>
+ <label xml:lang="zh-tw">Name tw</label>
+ <label xml:lang="ja-jp">Name jp</label>
+ <label xml:lang="es-es">Name es</label>
+ <label xml:lang="el-gr">Name gr</label>
+ <label xml:lang="it-it">Name it</label>
+ <label xml:lang="tr-tr">Name tr</label>
+ <label xml:lang="pt-pt">Name pt</label>
+ <label xml:lang="fr-fr">Name fr</label>
+ <label xml:lang="ko-kr">Name kr</label>
+ </shortcut>
+ <shortcut appid="com.samsung.myapp" extra_key="key_string" extra_data="data_string_for_key">
+ <label>Default name</label>
+ </shortcut>
+ ...
+ <shortcut appid="com.samsung.myapp" extra_key="key_string" extra_data="data_string_for_key">
+ <label>Default name</label>
+ <icon>/opt/share/icons/default/small/com.samsung.myapp2.png</icon>
+ </shortcut>
+ </shortcut-list>
+...
+</manifest>
+\endcode
+</TD></TR>
+</TABLE>
+
+Install this XML file to /opt/share/packages/YOUR_PKGNAME.xml (Note: After manifest has been applied to the binary, simply copy the content to your manifest file.)
+Shortcut listing application will list up these items on its screen and each item will be displayed using the string in label field.
+When selected, it will launch the selected app using app service with "appid" and a bundle holding data in the pair of extra_key and extra-data fields.
+Obviously, icon will be used to display visual information for given shortcut type.(that said the icon could be other than the application's default icon)
+
+<H3>2.2.2 Jump to the APP</H3>
+\image html JumpToApp.png
+
+Shortcut listing application will launch your application using app-svc with package name and param attributes.
+It will use the pkgname and param attrbute to launch your application.
+Shortcut list view will launch your "[App] Shortcut list" using followed code.
+
+<TABLE>
+<TH><TD>Launch your app from shortcut list viewer</TD></TH>
+<TR><TD>
+\code
+service_h service;
+service_create(&service);
+service_set_package(service, APPID); /* <shortcut appid="APPID" ...> */
+service_add_extra_data(service, EXTRA_KEY, EXTRA_DATA); /* <shortcut extra_key="EXTRA_KEY" extra_data="EXTRA_DATA" ...> */
+ret = service_send_launch_request(service, NULL, NULL);
+if (ret ...) { }
+service_destroy(service);
+\endcode
+</TD></TR>
+</TABLE>
+When your app is launched, the app should send a selected item as a shortcut or livebox to the home screen using "add_to_home" series functions mentioned above.
+
+<H3>2.2.3 What each app has to do</H3>
+You can implement your shortcut list view using App or UG.
+
+Who is going to handle the shortcut
+
+<UL>
+<LI>Handled by App
+ <LI>App should prepare a shortcut-add view as guided</LI>
+</LI>
+<LI>Handeld by UG
+ <LI>UG should be launched as an app and provide the shortcut-add view</LI>
+</LI>
+</UL>
+
+In your shortcut list view, you just call the "add_to_home_shortcut" or "add_to_home_livebox" which are described in the section 2.1
+
+<H4>2.2.3.1 Handled by App</H4>
+\image html ShortcutApp.png
+When your application is launched by the shortcut list application (displayed on the left most of above figure).
+Your application should go back to the normal view when you receive the PAUSE event.
+If you didn't change the view of your application, the user will see this shortcut list view again even if the user
+launches your application from the app-tray(or homescreen).
+So you have to change the view from the shortcut list to the normal(or previous) view when you get the PAUSE event.
+
+<H4>2.2.3.2 Handled by UG</H4>
+\image html ShortcutUG.png
+In this case, the Shortcut List application will launch your UG as a process.
+When you receive PAUSE event, or need to change to other view (not in the same UG), you should destroy current UG.
+If you didn't destroy it, it will be reside on the process list. and it will not be destroyed automatically.
+
+Currently, UG container process only supporting the multiple instance for a process.
+So if the user tries to add a new shortcut again from the shortcut list application, your UG will be launched again if you didn't
+terminate previous UG process (when you got PAUSE event).
+
+<H1>3. What the home screen should do</H1>
+\code
+typedef int (*request_cb_t)(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, int pid, double period, void *data)
+extern int shortcut_set_request_cb(request_cb_t request_cb, void *data)
+\endcode
+
+<TABLE>
+<TR><TH>Parameter</TH><TH>Comment</TH></TR>
+<TR><TD>pkgname</TD><TD>Package name to be added</TD></TR>
+<TR><TD>name</TD><TD>Application name to be displayed on the screen</TD></TR>
+<TR><TD>type</TD><TD>LAUNCH_BY_PACKAGE or LAUNCH_BY_URI</TD></TR>
+<TR><TD>content_info</TD><TD>Used for the livebox, or homescreen by itself if it required.</TD></TR>
+<TR><TD>icon</TD><TD>Absolute path of the icon file. (If it is not exists, the homescreen can use the deafult icon file)</TD></TR>
+<TR><TD>pid</TD><TD>Reuquestor's Process ID</TD></TR>
+<TR><TD>period</TD><TD>Update period only for the livebox</TD></TR>
+<TR><TD>data</TD><TD>Callback data</TD></TR>
+</TABLE>
+
+<H1>4. To list up shortcuts registred in the device</H1>
+<TABLE>
+<TR><TH>shortcut-list viewer will launch your app by this way</TH></TR>
+<TR><TD>
+\code
+int shortcut_get_list(const char *pkgname, int (*cb)(const char *pkgname, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *data), void *data)
+\endcode
+</TD></TR>
+</TABLE>
+
+If you specified the "pkgname", this API will only gathering the given Package's shortcut list.
+If you set is to NULL, this API will gathering all shortcuts.
+Every shortcut item will be passed via "cb" callback function. so it will be invoked N times if the number of registered shortcut item is N.
+pkgname and name and param is described in the XML file of each application package.
+It will returns the number of shortcut items, or return <0 as an error value.
+
+-EIO : failed to access shortcut list DB
+> 0 : Number of shortcut items (count of callback function calling)
+ *
+ * @}
*/