Changeset 1821
- Timestamp:
- 04/24/07 16:54:40 (6 years ago)
- Location:
- trunk/src/target/OM-2007/applications/openmoko-dialer/src
- Files:
-
- 2 deleted
- 5 edited
-
Makefile.am (modified) (1 diff)
-
dialergsm.c (deleted)
-
dialergsm.h (deleted)
-
openmoko-dialer-main.c (modified) (3 diffs)
-
openmoko-dialer-window-incoming.c (modified) (3 diffs)
-
openmoko-dialer-window-outgoing.c (modified) (4 diffs)
-
openmoko-dialer-window-talking.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007/applications/openmoko-dialer/src/Makefile.am
r1162 r1821 15 15 contacts.c\ 16 16 common.c\ 17 dialergsm.c\18 17 openmoko-dialer-window-history.c\ 19 18 openmoko-dialer-window-dialer.c\ -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-main.c
r1819 r1821 37 37 #include "history.h" 38 38 #include "error.h" 39 #include " dialergsm.h"39 #include "errno.h" 40 40 #include "openmoko-dialer-main.h" 41 41 #include "openmoko-dialer-window-dialer.h" … … 167 167 168 168 MOKO_DIALER_APP_DATA *appdata = moko_get_app_data (); 169 gsm_hangup (); 169 /* TODO: MokoGsmdConnection->hangup 170 * gsm_hangup (); 171 */ 172 170 173 if (appdata->window_talking) 171 174 gtk_widget_hide (appdata->window_talking); … … 338 341 } 339 342 340 //from now on we will not use multithreads. 341 gsm_lgsm_start (mainloop); 342 343 //for debug only>> 344 //gsm_incoming_call("13917209523"); 345 //<<for debug only 346 347 g_main_loop_run (mainloop); 343 gtk_main (); 348 344 349 345 -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-incoming.c
r1820 r1821 37 37 #include "openmoko-dialer-window-talking.h" 38 38 #include "openmoko-dialer-window-history.h" 39 #include "dialergsm.h"40 39 #include "history.h" 41 40 … … 44 43 MOKO_DIALER_APP_DATA * appdata) 45 44 { 46 47 DBG_ENTER (); 48 49 50 appdata->g_state.callstate = STATE_TALKING; 51 52 gsm_answer (); 53 54 55 gtk_widget_hide (appdata->window_incoming); 56 57 58 59 //transfer the contact info 60 window_talking_prepare (appdata); 61 62 63 64 gtk_widget_show (appdata->window_talking); 65 66 67 DBG_LEAVE (); 68 45 DBG_ENTER (); 46 appdata->g_state.callstate = STATE_TALKING; 47 /* TODO: MokoGsmdConnection->answer 48 * gsm_answer (); 49 */ 50 51 gtk_widget_hide (appdata->window_incoming); 52 53 //transfer the contact info 54 window_talking_prepare (appdata); 55 gtk_widget_show (appdata->window_talking); 56 57 58 DBG_LEAVE (); 69 59 } 70 60 71 void 72 61 void 73 62 cb_ignore_button_clicked (GtkButton * button, 74 63 MOKO_DIALER_APP_DATA * appdata) … … 90 79 MOKO_DIALER_APP_DATA * appdata) 91 80 { 92 93 DBG_ENTER (); 94 95 gsm_hangup (); 96 97 appdata->g_state.callstate = STATE_REJECTED; 98 99 gtk_widget_hide (appdata->window_incoming); 100 101 DBG_LEAVE (); 102 103 } 104 105 void 106 81 DBG_ENTER (); 82 /* TODO: MokoGsmdConnection->hangup 83 * gsm_hangup (); 84 */ 85 appdata->g_state.callstate = STATE_REJECTED; 86 gtk_widget_hide (appdata->window_incoming); 87 DBG_LEAVE (); 88 } 89 90 void 107 91 window_incoming_prepare (MOKO_DIALER_APP_DATA * appdata) 108 92 { -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-outgoing.c
r1820 r1821 37 37 #include "openmoko-dialer-window-history.h" 38 38 #include "openmoko-dialer-window-talking.h" 39 #include "dialergsm.h"40 39 41 40 /* function declerations */ … … 81 80 appdata->g_state.callstate = STATE_CALLING; 82 81 appdata->g_state.historytype = OUTGOING; 83 gsm_dial (appdata->g_peer_info.number); 82 /* TOOD: MokoGsmdConnection->dial 83 * gsm_dial (appdata->g_peer_info.number); 84 */ 84 85 85 86 DBG_LEAVE (); … … 90 91 { 91 92 DBG_ENTER (); 92 gsm_hangup (); 93 /* TODO: MokoGsmdConnection->hangup 94 * gsm_hangup (); 95 */ 93 96 appdata->g_state.callstate = STATE_FAILED; 94 97 DBG_TRACE (); … … 240 243 appdata->g_state.historytype = OUTGOING; 241 244 //DBG_TRACE (); 242 int retv = gsm_dial (appdata->g_peer_info.number); 243 DBG_MESSAGE ("GSM_DIAL returns %d", retv); 245 /* TODO: MokoGsmdConnection->dial 246 * int retv = gsm_dial (appdata->g_peer_info.number); 247 * DBG_MESSAGE ("GSM_DIAL returns %d", retv); 248 */ 244 249 //DBG_LEAVE (); 245 250 } -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-talking.c
r1820 r1821 37 37 #include "openmoko-dialer-window-talking.h" 38 38 #include "openmoko-dialer-window-history.h" 39 #include "dialergsm.h"40 39 41 40 void … … 113 112 MOKO_DIALER_APP_DATA * appdata) 114 113 { 115 gsm_hangup (); 114 /* TODO: MokoGsmdConnection->hangup 115 * gsm_hangup (); 116 */ 116 117 gtk_widget_hide (appdata->window_talking); 117 118 … … 133 134 134 135 135 gsm_dtmf_send (input[0]); 136 /* TODO: MokoGsmdConnection->dtmf_send 137 * gsm_dtmf_send (input[0]); 138 */ 136 139 //lgsm_voice_dtmf(lgsmh, buf[1]); 137 140
Note: See TracChangeset
for help on using the changeset viewer.
