/* * Call the relevant command handler based on the first character of the * line (the command). */ static void ui_handle_command(char *line) { /* Find out what one-letter command was sent. */ switch (line[0]) { case 'c': ui_connect(line); break; case 'C': ui_config(line); break; case 'd': ui_delete(line); break; case 'D': ui_debug(line); break; case 'M': ui_setmode(line); break; case 'p': ui_packetlog(line); break; case 'Q': ui_shutdown_daemon(line); break; case 'R': reinit(); break; case 'S': ui_report_sa(line); break; case 'r': ui_report(line); break; case 't': ui_teardown(line); break; case 'T': ui_teardown_all(line); break; default: log_print("ui_handle_messages: unrecognized command: '%c'", line[0]); } }
void AaAppsViewImpl::onUninstalledApp(gkHashedString& pckName) // 卸载完成的回调 { AppUnit* pApp = NULL; vector<AppUnit*>::iterator it=getAppsList()->begin(); for (int i = 0;i<m_pDataBase->getAppsNum();i++,it++) { if(pckName == (*getAppsList())[i]->getPackageName()) { pApp = (*getAppsList())[i]; getAppsList()->erase(it); ui_delete(pApp); break; } } return ; }
void run(UI *self) { while(1) { ui_printMenu(); int cmd = readInteger("Give a command: "); switch(cmd) { case 0: return ; break; case 1: ui_add(self); break; case 2: ui_showAll(self); break; case 3: ui_delete(self); break; case 4: ui_update(self); break; /* case 5: ui_filter(self); break; case 6: ui_filterByQuantity(self); break; h*/ case 7: ui_undo(self); break; case 8: ui_redo(self); break; default: printf("You entered a wrong command"); } } }
ViewNode::~ViewNode() { if(m_pObj&&m_pObj->isClone()) ui_delete(m_pObj); }
void ViewNode::setViewNodeBldAnm(BlenderAnimation* pAnm,int showStart /* = 0 */,int showEnd /* = 0 */,int hideStart /* = 0 */,int hideEnd /* = 0 */,BlenderAnmInterface* pInterface /* = NULL */) { ui_delete(m_pNodeAnm); m_pNodeAnm = new sViewNodeAnm(pAnm,showStart,showEnd,hideStart,hideEnd,pInterface); }
TitleBlock::~TitleBlock() { ui_delete(m_pAllApp); }
AaResidentViewImpl::~AaResidentViewImpl() { ui_delete(m_pResidentView); m_pSortImpl = NULL; }
SetBackgroundLogic::~SetBackgroundLogic() { ui_delete(mWallpaperView); }
AaViewImpl::~AaViewImpl() { ui_delete(m_pAaView); }
SortordViewImpl::~SortordViewImpl() { ui_delete(m_pSortView); m_pBgImpl = NULL; }
AaAppsViewImpl::~AaAppsViewImpl() { ui_delete(pAppTextureUnit); }