#include <liberipc/eripc.h>
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS void | ipc_set_services (void) |
Setup IPC connection and register API functions. | |
void | ipc_unset_services (void) |
Unregister API functions. | |
void | ipc_sys_startup_complete (void) |
Report "application started" to sysd. | |
gboolean | ipc_menu_add_menu (const char *name, const char *group1, const char *group2, const char *group3) |
Send message addMenu to popup menu. | |
gboolean | ipc_menu_add_group (const char *name, const char *parent, const char *image) |
Send message addGroup to popup menu. | |
gboolean | ipc_menu_add_item (const char *name, const char *parent, const char *image) |
Send message addGroup to popup menu. | |
gboolean | ipc_menu_set_menu_label (const char *name, const char *label) |
Send message setMenuLabel to popup menu. | |
gboolean | ipc_menu_set_group_label (const char *name, const char *label) |
Send message setGroupLabel to popup menu. | |
gboolean | ipc_menu_set_item_label (const char *name, const char *parent, const char *label) |
Send message setItemLabel to popup menu. | |
gboolean | ipc_menu_show_menu (const char *name) |
Send message showMenu to popup menu. | |
gboolean | ipc_remove_menu (const char *name) |
Remove menu from popup menu. | |
gboolean | ipc_menu_set_group_state (const char *name, const char *state) |
Send message setItemState to popup menu. | |
gboolean | ipc_menu_set_item_state (const char *name, const char *parent, const char *state) |
Send message setItemState to popup menu. |
gboolean ipc_menu_add_group | ( | const char * | name, | |
const char * | parent, | |||
const char * | image | |||
) |
Send message addGroup to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_add_group
[in] | name | - name (mnemonic) of menu group |
[in] | parent | - name (mnemonic) of the group this group belongs to, or NULL when this group is at the highest level |
[in] | image | - icon bitmap file |
--------------------------------------------------------------------------
Definition at line 242 of file ctb/src/ipc.c.
References DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_add_group(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00245 { 00246 return eripc_menu_add_group(eripcClient, name, parent, image); 00247 }
gboolean ipc_menu_add_item | ( | const char * | name, | |
const char * | parent, | |||
const char * | image | |||
) |
Send message addGroup to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_add_item
[in] | name | - name (mnemonic) of menu item |
[in] | parent | - name (mnemomic) of the menu group this item belongs to |
[in] | image | - icon bitmap file |
--------------------------------------------------------------------------
Definition at line 250 of file ctb/src/ipc.c.
References DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_add_item(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00253 { 00254 return eripc_menu_add_item(eripcClient, name, parent, image); 00255 }
gboolean ipc_menu_add_menu | ( | const char * | name, | |
const char * | group1, | |||
const char * | group2, | |||
const char * | group3 | |||
) |
Send message addMenu to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_add_menu
[in] | name | - name (mnemonic) of the menu |
[in] | group1 | .. group3 - name (mnemonic) of the menu groups |
--------------------------------------------------------------------------
Definition at line 233 of file ctb/src/ipc.c.
References DBUS_SERVICE, DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_add_menu(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00237 { 00238 return eripc_menu_add_menu(eripcClient, name, group1, group2, group3, ""); 00239 }
gboolean ipc_menu_set_group_label | ( | const char * | name, | |
const char * | label | |||
) |
Send message setGroupLabel to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_set_group_label
[in] | name | - name (mnemonic) of menu group |
[in] | label | - on-screen text at the top of the menu group |
--------------------------------------------------------------------------
Definition at line 265 of file ctb/src/ipc.c.
References DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_set_group_label(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00267 { 00268 return eripc_menu_set_group_label(eripcClient, name, label); 00269 }
gboolean ipc_menu_set_group_state | ( | const char * | name, | |
const char * | state | |||
) |
Send message setItemState to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_set_group_state
[in] | name | - name (mnemonic) of menu group to be set |
[in] | state | - new state ("normal", "disabled") |
--------------------------------------------------------------------------
Definition at line 286 of file ctb/src/ipc.c.
References DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_set_group_state(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00288 { 00289 return eripc_menu_set_group_state(eripcClient, name, state); 00290 }
gboolean ipc_menu_set_item_label | ( | const char * | name, | |
const char * | parent, | |||
const char * | label | |||
) |
Send message setItemLabel to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_set_item_label
[in] | name | - name (mnemonic) of menu item |
[in] | parent | - name (mnemomic) of the menu group this item belongs to |
[in] | label | - on-screen text below icon |
--------------------------------------------------------------------------
Definition at line 272 of file ctb/src/ipc.c.
References DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_set_item_label(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00275 { 00276 return eripc_menu_set_item_label(eripcClient, name, parent, label); 00277 }
gboolean ipc_menu_set_item_state | ( | const char * | name, | |
const char * | parent, | |||
const char * | state | |||
) |
Send message setItemState to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_set_item_state
[in] | name | - name (mnemonic) of menu item to be set |
[in] | parent | - name (mnemomic) of the menu group this item belongs to |
[in] | state | - new state ("normal", "selected", "disabled") |
--------------------------------------------------------------------------
Definition at line 293 of file ctb/src/ipc.c.
00296 { 00297 return eripc_menu_set_item_state(eripcClient, name, parent, state); 00298 }
gboolean ipc_menu_set_menu_label | ( | const char * | name, | |
const char * | label | |||
) |
Send message setMenuLabel to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_set_menu_label
[in] | name | - name (mnemonic) of the menu |
[in] | label | - on-screen text at the top of the menu |
--------------------------------------------------------------------------
Definition at line 258 of file ctb/src/ipc.c.
References DBUS_SERVICE_POPUP_MENU, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_menu_set_menu_label(), eripc_send_varargs(), ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, and LOGPRINTF.
00260 { 00261 return eripc_menu_set_menu_label(eripcClient, name, label); 00262 }
gboolean ipc_menu_show_menu | ( | const char * | name | ) |
Send message showMenu to popup menu.
---------------------------------------------------------------------------
Name : ipc_menu_show_menu
[in] | name | - name (mnemonic) of menu to be displayed |
--------------------------------------------------------------------------
Definition at line 280 of file ctb/src/ipc.c.
00281 { 00282 return eripc_menu_show_menu(eripcClient, name); 00283 }
gboolean ipc_remove_menu | ( | const char * | name | ) |
Remove menu from popup menu.
---------------------------------------------------------------------------
Name : ipc_remove_menu
[in] | name | - name (mnemonic) of menu to be removed |
--------------------------------------------------------------------------
Definition at line 320 of file erbrowser/src/ipc.c.
00321 { 00322 LOGPRINTF("entry"); 00323 return eripc_menu_remove_menu(eripcClient, name); 00324 }
G_BEGIN_DECLS void ipc_set_services | ( | void | ) |
Setup IPC connection and register API functions.
File Name : ipc.h
Description: The dbus-based eripc functions Copyright (C) 2009 iRex Technologies B.V. All rights reserved.---------------------------------------------------------------------------
Name : ipc_set_services
-- |
--------------------------------------------------------------------------
File Name : index_ipc.h
Description: The dbus-based eripc functions Copyright (C) 2009 IREX Technologies B.V. All rights reserved.---------------------------------------------------------------------------
Name : ipc_set_services
None |
--------------------------------------------------------------------------
Definition at line 95 of file index_ipc.c.
00096 { 00097 eripcClient = eripc_client_context_new( 00098 DBUS_APPL_NAME, 00099 "1.0", 00100 DBUS_SERVICE, 00101 DBUS_PATH, 00102 DBUS_INTERFACE, 00103 service_functions); 00104 }
void ipc_sys_startup_complete | ( | void | ) |
Report "application started" to sysd.
---------------------------------------------------------------------------
Name : ipc_sys_startup_complete
-- |
--------------------------------------------------------------------------
Report "application started" to sysd.
Report "settings started" to sysd.
Report "application started" to system daemon.
---------------------------------------------------------------------------
Name : ipc_sys_startup_complete
-- |
--------------------------------------------------------------------------
Definition at line 168 of file ctb/src/ipc.c.
References DBUS_APPL_NAME, DBUS_PATH, DBUS_SERVICE, DBUS_SERVICE_SYSTEM_CONTROL, ERIPC_BUS_SESSION, ERIPC_ERROR_SUCCESS, eripc_send_signal_varargs(), eripc_sysd_startup_complete(), ERIPC_TYPE_BOOL, ERIPC_TYPE_INT, ERIPC_TYPE_INVALID, ERIPC_TYPE_STRING, ERRORPRINTF, fileview_get_xid(), g_main_window, and LOGPRINTF.
00169 { 00170 eripc_sysd_startup_complete( eripcClient, getpid(), FALSE, fileview_get_xid()); 00171 }
void ipc_unset_services | ( | void | ) |
Unregister API functions.
---------------------------------------------------------------------------
Name : ipc_unset_services
-- |
--------------------------------------------------------------------------
Definition at line 108 of file index_ipc.c.
00109 { 00110 eripc_client_context_free(eripcClient, service_functions); 00111 }