usb_moded 0.86.0+mer64
usb_moded-dbus.h
Go to the documentation of this file.
1
31
32#ifndef USB_MODED_DBUS_H_
33# define USB_MODED_DBUS_H_
34
35/* ========================================================================= *
36 * Constants
37 * ========================================================================= */
38
42# define USB_MODE_SERVICE "com.meego.usb_moded"
43# define USB_MODE_INTERFACE "com.meego.usb_moded"
44# define USB_MODE_OBJECT "/com/meego/usb_moded"
45
52# define USB_MODE_SIGNAL_NAME "sig_usb_state_ind"
53# define USB_MODE_CURRENT_STATE_SIGNAL_NAME "sig_usb_current_state_ind"
54# define USB_MODE_TARGET_STATE_SIGNAL_NAME "sig_usb_target_state_ind"
55# define USB_MODE_EVENT_SIGNAL_NAME "sig_usb_event_ind"
56# define USB_MODE_CONFIG_SIGNAL_NAME "sig_usb_config_ind"
57# define USB_MODE_ERROR_SIGNAL_NAME "sig_usb_state_error_ind"
58# define USB_MODE_SUPPORTED_MODES_SIGNAL_NAME "sig_usb_supported_modes_ind"
59# define USB_MODE_HIDDEN_MODES_SIGNAL_NAME "sig_usb_hidden_modes_ind"
60# define USB_MODE_WHITELISTED_MODES_SIGNAL_NAME "sig_usb_whitelisted_modes_ind"
61# define USB_MODE_AVAILABLE_MODES_SIGNAL_NAME "sig_usb_available_modes_ind"
62# define USB_MODE_TARGET_CONFIG_SIGNAL_NAME "sig_usb_taget_mode_config_ind"
63
64/* supported methods */
65# define USB_MODE_STATE_REQUEST "mode_request" /* returns the current mode */
66# define USB_MODE_TARGET_STATE_GET "get_target_state" /* returns the target mode */
67# define USB_MODE_RESCUE_OFF "rescue_off" /* turns rescue mode off so normal mode selection is restored */
68# define USB_MODE_CONFIG_GET "get_config" /* returns the mode set in the config */
69# define USB_MODE_LIST "get_modes" /* returns a comma-separated list of supported modes for ui's */
70# define USB_MODE_HIDE "hide_mode" /* hide a mode */
71# define USB_MODE_UNHIDE "unhide_mode" /* unhide a mode */
72# define USB_MODE_HIDDEN_GET "get_hidden" /* return the hidden modes */
73# define USB_MODE_STATE_SET "set_mode" /* set a mode (only works when connected) */
74# define USB_MODE_CONFIG_SET "set_config" /* set the mode that needs to be activated in the config file */
75# define USB_MODE_NETWORK_SET "net_config" /* set the network config in the config file */
76# define USB_MODE_NETWORK_GET "get_net_config" /* get the network config from the config file */
77# define USB_MODE_WHITELISTED_MODES_GET "get_whitelisted_modes" /* get the list of whitelisted modes */
78# define USB_MODE_WHITELISTED_MODES_SET "set_whitelisted_modes" /* set the list of whitelisted modes */
79# define USB_MODE_WHITELISTED_SET "set_whitelisted" /* sets whether an specific mode is in the whitelist */
80# define USB_MODE_AVAILABLE_MODES_GET "get_available_modes" /* returns a comma separated list of modes which are currently available for selection */
81# define USB_MODE_AVAILABLE_MODES_FOR_USER "get_available_modes_for_user" /* returns a comma separated list of modes which are currently available and permitted for user to select */
82# define USB_MODE_TARGET_CONFIG_GET "get_target_mode_config" /* returns current target mode configuration */
83# define USB_MODE_USER_CONFIG_CLEAR "clear_config" /* clear config for a user */
84
89# define USB_CONNECTED "USB connected"
90# define USB_DISCONNECTED "USB disconnected"
91# define USB_REALLY_DISCONNECT "USB mode change in progress"
92# define DATA_IN_USE "data_in_use"
93# define USB_CONNECTED_DIALOG_SHOW "mode_requested_show_dialog"
94# define USB_PRE_UNMOUNT "pre-unmount"
95# define RE_MOUNT_FAILED "mount_failed"
96# define CHARGER_CONNECTED "charger_connected"
97# define CHARGER_DISCONNECTED "charger_disconnected"
98# define MODE_SETTING_FAILED "mode_setting_failed"
99
100/* errors */
101# define UMOUNT_ERROR "Unmounting filesystem failed. Exporting impossible"
102/* qtn_usb_filessystem_inuse is the NOKIA/Meego error string */
103
104/* ========================================================================= *
105 * Prototypes
106 * ========================================================================= */
107
108// (in usb_moded-dbus-private.h)
109
110#endif /* USB_MODED_DBUS_H_ */