Dialer

Contents

librtcom-dialer-ui

These different sets of functions are exported by librtcom-dialer-ui for use by the dialer app. It specifically concentrates on non-UI stuff as that's what a dialer replacement would need. Types are implement via the glib type system (g_type_register_static_simple and friends)

cui_account_model

Implements type CuiAccountModel which is a UI widget derived from a GtkListStore

cui_account_selector

Implements type CuiAccountSelector which is a UI widget derived from a HildonTouchSelector

cui_audio_call_view

Implements type CuiAudioCallView which is a UI widget derived from a CuiCallView

cui_audio_policy

Implements type CuiAudioPolicy which is used to control audio policy settings

set mute

dbus method call to org.maemo.Playback.Manager /org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestMute one argument, boolean (true/false to set mute)

set speaker

dbus method call to org.maemo.Playback.Manager /org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestPrivacyOverride one argument, boolean (true/false to set mute)

set bluetooth override

dbus method call to org.maemo.Playback.Manager /org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestBluetoothOverride one argument, boolean (true/false to set mute)

mute signal

dbus signal fromorg.maemo.Playback.Manager /org/maemo/Playback/Manager Mute one argument, boolean (true/false to get mute)

speaker signal

dbus signal from org.maemo.Playback.Manager /org/maemo/Playback/Manager PrivacyOverride one argument, boolean (true/false to get speaker)

bluetooth override signal

dbus signal from org.maemo.Playback.Manager /org/maemo/Playback/Manager BluetoothOverride one argument, integer (unknown argument)

request hold

dbus method call to com.nokia.policy.telephony /com/nokia/policy/telephony com.nokia.policy.telephony.RequestHold arguments appear to be string, object_path, boolean (unknown arguments)

request accept

dbus method call to com.nokia.policy.telephony /com/nokia/policy/telephony com.nokia.policy.telephony.RequestAccept arguments appear to be, object_path (unknown arguments)

headset button pressed signal

Register callback via libhal_ctx_set_device_condition and listen for condition_name = "ButtonPressed" and condition_detail = "phone"

headset jack state signal

Register callback via libhal_ctx_set_device_property_modified and listen for udi = "/org/freedesktop/Hal/devices/platform_soc_audio_logicaldev_input" and key = "input.jack.type" Also call libhal_device_add_property_watch to watch for property "/org/freedesktop/Hal/devices/platform_soc_audio_logicaldev_input"

get headset jack type

call libhal_device_get_property_strlist udi = "/org/freedesktop/Hal/devices/platform_soc_audio_logicaldev_input" key = "input.jack.type". Code checks for type = "headphone"

cui_avatar_image

Implements type CuiAvatarImage which is a UI widget derived from OssoABookAvatarImage

cui_button_box

Implements type CuiButtonBox which is a UI widget derived from GtkBox

cui_call_banner

Implements type CuiCallBanner which is a UI widget derived from GtkFrame

cui_call_context

Implements type CuiCallContext which is used for call context. Details TBA.

cui_call_control

Implements type CuiCallControl which is a UI widget derived from GtkAlignment.

cui_call_store

Implements type CuiCallStore which is used for call store. Details TBA.

cui_call_view

Implements type CuiCallView which is a UI widget derived from GtkAlignment

cui_conf_call_context

Implements type CuiConfCallContext which is used for conference call context (derives from CuiCallContext). Details TBA.

cui_conf_call_view

Implements type CuiConfCallView which is a UI widget derived from CuiCallView

cui_credit_label

Implements type CuiCreditLabel which is a UI widget derived from GtkAlignment

cui_cs_proxy

Implements type CuiCsProxy which is used for call interface items

get emergency numbers

dbus method call to com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.GetEmergencyNumbers. No arguments, reply argument is array of strings.

get IMEI

dbus method call to com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.Security.get_imei. No arguments, reply argument is string.

modem state

dbus method call to com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.get_modem_state. No arguments, reply argument is string.

short code

compares against the string 0123456789*# with strspn. checks if its emergency number. dbus method call to com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status. No arguments, reply argument is unsigned int.

verify security code

dbus method call to com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.Security.verify_code. Arguments are unsigned int, string, string. Return argument is int.

emergency numbers changed signal

dbus signal from com.nokia.csd.Call /com/nokia/csd/call EmergencyNumbersChanged. Argument is array of strings.

modem state changed signal

dbus signal from com.nokia.phone.SSC /com/nokia/phone/SSC modem_state_changed_ind. Argument is string.

cui_dial_view

Implements type CuiDialView which is a UI widget derived from GtkAlignment

cui_dialog

Implements type CuiDialog which is a UI widget derived from GtkWindow

cui_dialpad

Implements type CuiDialpad which is a UI widget derived from GtkTable

cui_dtmf_dialog

Implements type CuiDtmfDialog which is a UI widget derived from CuiDialog

cui_duration_dialog

Implements type CuiDurationDialog which is a UI widget derived from CuiDialog

cui_errors_disconnect_reason_to_string

error string match
0 = voip_ib_undefined_error
1 = voip_fi_call_summary_identifier_no_answer
2 = voip_fi_call_summary_identifier_not_found
3 = call_fi_call_summary_identifier_incorrect_number
4 = voip_fi_call_summary_identifier_call_rejected
5 = voip_fi_call_summary_identifier_busy
6 = voip_fi_call_summary_identifier_not_authorized
7 = voip_ib_error_in_contact
8 = voip_ib_call_not_supported
9 = voip_ib_not_enough_memory
10 = voip_fi_call_summary_identifier_disconnected
11 = voip_fi_call_summary_identifier_disconnected
12 = call_ib_not_allowed
13 = call_ib_cost_limit_reached"
14 = call_ib_cellular_connection_error
15 = call_ib_fdn_active
16 = call_ib_number_not_in_use
17 = conn_ni_no_sim_card_in
18 = conn_ni_sim_not_accepted
19 = conn_ni_sim_lock
20 = call_ib_cellular_network_busy
21 = conn_ni_no_pin_for_sim
22 = call_ib_als_wrong_line
23 = conn_ni_no_cell_network
24 = call_ib_w_not_supported
25 = pres_ib_must_be_online
26 = addr_ib_contact_is_offline
27 = call_ib_request_rejected
28 = pres_ib_must_be_network_connected
29 = skype_fi_credit_is_low
30 = skype_fi_not_enough_credits
31 = skype_fi_call_old_voicemail_removed
32 = skype_fi_too_short_pstn_number
33 = voip_ni_unable_to_negotiate_codec

cui_errors_ssc_state_to_error

Checks for ssc states "online", "simless", "sim_mode_als2", "blocked_sim", "tablet_state", "sim_locked"

cui_errors_tp_reason_to_disconnect_reason

Details TBA.

cui_ic_dialog

Implements type CuiICDialog which is a UI widget derived from CuiDialog.

cui_icon_cache

Used to store icons for reuse. Uses ,code>gtk_icon_theme_get_default</code> and gtk_icon_theme_load_icon.

cui_idle_view

Implements type CuiIdleView which is a UI widget derived from GtkWidget.

cui_marshal

Calls g_value_xxx functions to move data around

cui_mce_proxy

Implements type CuiMceProxy which is an interface to various MCE signals/calls

prevent blanking

dbus method call MCE_PREVENT_BLANK_REQ as documented in mce-dev

activate display

dbus method call MCE_DISPLAY_ON_REQ as documented in mce-dev

accelerometer disable

dbus method call MCE_ACCELEROMETER_DISABLE_REQ as documented in mce-dev

device lock state

dbus method call MCE_DEVLOCK_MODE_GET as documented in mce-dev

accelerometer enable

dbus method call MCE_ACCELEROMETER_ENABLE_REQ as documented in mce-dev

get device orientation

dbus method call MCE_DEVICE_ORIENTATION_GET as documented in mce-dev

silent unlock

dbus method call MCE_TKLOCK_MODE_CHANGE_REQ as documented in mce-dev

device lock mode signal

dbus signal MCE_DEVLOCK_MODE_SIG as documented in mce-dev

cui_member

Implements type CuiMember which is used for unknown use. Details TBA.

cui_oc_dialog

Implements type CuiOCDialog which is a UI widget derived from CuiDialog.

cui_rotatable

Implements type CuiRotatable which is a UI interface for things that rotate. Key file (setup via g_key_file_new) is stored in <home dir>/.osso/call-ui.ini

cui_settings

Implements type CuiSettings used for storing call ui settings

home gesture disabled

set gconf path /apps/osso/hildon-desktop/disable_phone_gesture

orientation setting

stored in key file group_name rotation key orientation. Also file call-portrait-override is related to this.

ssc enabled

stored in key file <home-dir>/.osso/call-ui.ini group_name [supplementary] key ssc=1|0. See starhash-enabler.

keyboard slide open

gconf location = /system/osso/af/slide-open gconf notify used to watch that location

cui_ss_dialog

UI code for supplementary services dialog

cui_ss_proxy

Implements type CuiSSProxy used for supplementary services proxy. Details TBA.

cui_timer_label

Implements type CuiTimerLabel which is a UI widget derived from GtkAlignment

cui_tones_ringing_start

calls com.nokia.HildonSVNotificationDaemon /com/nokia/HildonSVNotificationDaemon com.nokia.HildonSVNotificationDaemon.PlayEvent to play a ring-tone. Specs for this are in hd-sv-notification-daemon.xml in hildon-home source.

cui_tones_ringing_stop

calls com.nokia.HildonSVNotificationDaemon /com/nokia/HildonSVNotificationDaemon com.nokia.HildonSVNotificationDaemon.StopEvent to stop the playing ring-tone. Specs for this are in hd-sv-notification-daemon.xml in hildon-home source.

cui_tones_tone_start

calls com.Nokia.Telephony.Tones /com/Nokia/Telephony/Tones com.Nokia.Telephony.Tones.StartEventTone to play tones. Arguments are unsigned int event, int volume, unsigned int duration.

cui_tones_tone_stop

calls com.Nokia.Telephony.Tones /com/Nokia/Telephony/Tones com.Nokia.Telephony.Tones.StopTone to stop the playing tones. No arguments.

cui_utils_account_get_vcard_field

calls mc_account_compat_get_profile to get a profile from a McAccount. Calls mc_profile_lookup to get a McProfile from the profile. Calls mc_profile_get_vcard_field to get the vcard field from the McProfile.

cui_utils_account_is_ring

Compares the manager_name field of the McAccount structure with "ring"

cui_utils_account_is_tel

Compares the protocol_name field of the McAccount structure with "tel"

cui_utils_avatar_button_new

UI widget for an avatar button involving a GtkButton.

cui_utils_button_new

UI widget for a button.

cui_utils_button_set_height_hint

Sets height of a button UI widget.

cui_utils_get_current_time

calls clock_gettime to obtain the current time

cui_utils_get_elapsed_time

calls clock_gettime to obtain the time and does some math on it

cui_utils_get_formatted_time

calls time_format to get a formatted time

cui_utils_get_formatted_time_lz

calls time_format to get a formatted time

cui_utils_get_icon_from_account

calls mc_account_compat_get_profile to get a profile from a McAccount. Calls mc_profile_lookup to get a McProfile from the profile. Calls mc_profile_get_icon_name to get the icon name from the McProfile.

cui_utils_get_timespec_diff

Gets the difference between 2 times.

cui_utils_key_event_to_dtmf_digit

Takes a GdkEventKey *, converts it to DTMF tone via gdk_keymap_get_default then gdk_keymap_lookup_key then does something to convert it to a DTMF value

cui_utils_normalize_number

Does some stuff to a phone number (removing - and ( and ) and space and etc)

cui_utils_parse_uri

Parses a URI

cui_utils_validate_number

Validates a number

cui_utils_vcard_find_attribute

Finds a vcard attribute

cui_utils_widget_modify_font_size

Changes the font size of a widget. Uses the font Nokia Sans.

cui_utils_window_request_orientation

Uses _HILDON_PORTRAIT_MODE_REQUEST to request orientation of a window

cui_utils_window_set_orientation

Uses _HILDON_PORTRAIT_MODE_REQUEST to set orientation of a window

cui_utils_window_set_supports_portrait

Uses _HILDON_PORTRAIT_MODE_SUPPORT to set portrait support for a window

cui_video_frame

Implements type CuiVideoFrame which is a UI widget derived from GtkFrame.

cui_video_window_get_type

Implements type CuiVideoWindow which is a UI widget derived from GtkSocket.

rtcom_tp_cli_channel_interface_conference

Functions for conference calls. Details TBA.

rtcom_tp_cli_channel_interface_dial_strings

Functions for dial strings. Details TBA.

rtcom_tp_cli_channel_interface_emergency

Functions for emergency calls. Details TBA.

rtcom_tp_cli_channel_interface_mute

Functions related to mute. Details TBA.

rtcom_tp_cli_channel_interface_privacy

Functions related to privacy. Details TBA.

rtcom_tp_cli_channel_interface_skype

Functions related to skype. Details TBA.

rtcom_tp_cli_channel_interface_tp_conference

Functions related to conference channels. Details TBA.

rtcom_tp_cli_channel_type_contact_search

Functions related to contact search. Details TBA.

rtcom_tp_cli_connection_interface_contact_info

Functions related to contact info. Details TBA.

rtcom_tp_cli_connection_interface_emergency

Functions related to emergency. Details TBA.

rtcom_tp_cli_connection_interface_forwarding

Functions related to forwarding. Details TBA.

rtcom_tp_cli_connection_interface_privacy

Functions related to privacy. Details TBA.

rtcom_tp_cli_connection_interface_skype

Functions related to skype. Details TBA.

rtcom_tp_cli_connection_interface_stored_messages

Functions related to stored messages. Details TBA.

rtcom_tp_cli_init

Initialize call UI rtcom stuff

rtcom_tp_cli_stream_engine

Functions related to stream engine. Details TBA.

rtcom_tp_cli_streamhandler_interface_video_control

Functions related to video control. Details TBA.

rtcom_tp_iface_quark

Obtains quarks for various static strings


rtcom_tp_stream_engine

Creates object of type RTComTpStreamEngine and hooks up to dbus interface org.maemo.Telepathy.StreamEngine

rtcom_tp_type

Marshal functions for dbus stuff