19. NAME CONVENTIONS
• NS/UI Pre
fi
x: Core Frameworks/UIkits
• Class: Capital
• variable: Low-case letters, but are internally
capitalized wherever a new word appears:
• method: choosing a method name based on how it
will look in actual use.
Cocoa strongly encourages expressive,
clear, non-ambiguious names.
22. FEATURES
• Dual mode
• Pro
fi
le manager
• Radio Setting
• PIN/PUK function
• SMS manager
• Address book
• Status bar
• Noti
fi
cation center
• Automatic updater
• ...
28. MAIN FLOW
postflight
Script
LoginItem
create login item
BRLauncher
launch BRDial as service
BRDialer
eject CD then
load MainWindow
Installation OSX Startup
reboot
awakeFromNib
DoUpdateInfo
getDeviceStatus
br_Create_rx_thread
br_rx_atproxy_thread
sequential
check/set ports
•Check the serial port and PIN status
•Check the manufacture and model name
•Check the network registration status
•.......
29. DUAL MODE
int br_modem_revision_atcmd (br_bandluxe_t *bl, char *revision,
int revision_len)
{
int ret = -1;
br_at_result_t *atresult = &bl->br_at_result;
if (bl->atcmdID > -1)
{
switch (bl->chipName) {
case Icera:
ret = br_comgt (bl, COMGT_AT_IFWR);
break;
case MTK:
break;
case Qualcomm:
ret = br_comgt (bl, COMGT_AT_CGMR);
break;
}
}
br_action_atcmd.c