The Component Information API contains functions for obtaining information about installed components.
Required Header
#include <component_manager.h>
Overview
Functions |
int | component_info_create (const char *component_id, component_info_h *handle) |
| Creates a component handle.
|
int | component_info_destroy (component_info_h handle) |
| Destroys the component handle.
|
int | component_info_get_app_id (component_info_h handle, char **app_id) |
| Gets the application ID of the component.
|
int | component_info_get_component_id (component_info_h handle, char **component_id) |
| Gets the component ID.
|
int | component_info_get_component_type (component_info_h handle, component_info_component_type_e *type) |
| Gets the type of component.
|
int | component_info_is_icon_display (component_info_h handle, bool *icon_display) |
| Gets whether the icon of the component is displayed on the home screen or not.
|
int | component_info_is_managed_by_task_manager (component_info_h handle, bool *managed) |
| Checks whether the component should be managed by task-manager or not.
|
int | component_info_get_icon (component_info_h handle, char **path) |
| Gets the icon path of the component.
|
int | component_info_get_label (component_info_h handle, char **label) |
| Gets the label of the component.
|
int | component_info_get_localized_label (component_info_h handle, const char *locale, char **label) |
| Gets the localized label of the component.
|
int | component_info_clone (component_info_h *clone, component_info_h handle) |
| Clones the component information handle.
|
Typedefs |
typedef void * | component_info_h |
| The component handle having own properties such name, path, and icons.
|
Typedef Documentation
The component handle having own properties such name, path, and icons.
- Since :
- 5.5
Enumeration Type Documentation
Enumeration for component type.
- Since :
- 5.5
- See also:
- component_info_get_component_type()
- Enumerator:
COMPONENT_INFO_COMPONENT_TYPE_FRAME |
Frame component
|
COMPONENT_INFO_COMPONENT_TYPE_SERVICE |
Service component
|
Function Documentation
Clones the component information handle.
- Since :
- 5.5
- Parameters:
-
[out] | clone | A newly created component information handle, if successfully cloned |
[in] | handle | The component information |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Creates a component handle.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/packagemanager.info
- Parameters:
-
[in] | component_id | The component ID |
[out] | handle | The component information handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Destroys the component handle.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the application ID of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | app_id | The application ID |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the component ID.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | component_id | The component ID |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the type of component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | type | The component type |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- component_info_component_type_e
Gets the icon path of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | path | The icon path of the component |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the label of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | label | The label of the component |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the localized label of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[in] | locale | The locale information |
[out] | label | The localized label of the component |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets whether the icon of the component is displayed on the home screen or not.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | icon_display | true if the icon should be displayed,
otherwise false |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Checks whether the component should be managed by task-manager or not.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component information handle |
[out] | managed | if the component should be managed by task-manager,
otherwise false |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-