Changeset 4491 for pjproject/trunk/pjsip-apps/src/pjsua/bb10
- Timestamp:
- Apr 23, 2013 8:31:30 AM (12 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/pjsua/bb10
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/bb10/PjsuaBB.pro
r4485 r4491 6 6 7 7 SOURCES += ../../pjsua_app.c \ 8 ../../pjsua_ cli.c \9 ../../pjsua_ common.c \10 ../../pjsua_ config.c \11 ../../pjsua_ legacy.c8 ../../pjsua_app_cli.c \ 9 ../../pjsua_app_common.c \ 10 ../../pjsua_app_config.c \ 11 ../../pjsua_app_legacy.c 12 12 13 13 device { -
pjproject/trunk/pjsip-apps/src/pjsua/bb10/src/applicationui.cpp
r4485 r4491 41 41 42 42 43 pj_bool_tApplicationUI::pjsuaOnStoppedCb(pj_bool_t restart,44 43 void ApplicationUI::pjsuaOnStoppedCb(pj_bool_t restart, 44 int argc, char** argv) 45 45 { 46 46 PJ_LOG(3,("ipjsua", "CLI %s request", (restart? "restart" : "shutdown"))); … … 57 57 app->quit(); 58 58 } 59 60 return PJ_TRUE;61 59 } 62 60 … … 66 64 PJ_UNUSED_ARG(cfg); 67 65 } 66 68 67 69 68 void ApplicationUI::extRestartRequest(int argc, char **argv) … … 75 74 } 76 75 76 77 77 void ApplicationUI::pjsuaStart() 78 78 { … … 80 80 const char **argv = pjsua_app_def_argv; 81 81 int argc = PJ_ARRAY_SIZE(pjsua_app_def_argv) -1; 82 app_cfg_t app_cfg;82 pjsua_app_cfg_t app_cfg; 83 83 pj_status_t status; 84 84 … … 98 98 app_cfg.on_config_init = &pjsuaOnAppConfigCb; 99 99 100 status = app_init(&app_cfg);100 status = pjsua_app_init(&app_cfg); 101 101 if (status != PJ_SUCCESS) { 102 102 char errmsg[PJ_ERR_MSG_SIZE]; 103 103 pj_strerror(status, errmsg, sizeof(errmsg)); 104 104 displayMsg(QString("Init error:") + errmsg); 105 app_destroy();105 pjsua_app_destroy(); 106 106 return; 107 107 } 108 108 109 status = app_run(PJ_FALSE);109 status = pjsua_app_run(PJ_FALSE); 110 110 if (status != PJ_SUCCESS) { 111 111 char errmsg[PJ_ERR_MSG_SIZE]; 112 112 pj_strerror(status, errmsg, sizeof(errmsg)); 113 113 displayMsg(QString("Error:") + errmsg); 114 app_destroy();114 pjsua_app_destroy(); 115 115 } 116 116 … … 121 121 void ApplicationUI::pjsuaDestroy() 122 122 { 123 app_destroy();123 pjsua_app_destroy(); 124 124 } 125 125 126 126 127 ApplicationUI::ApplicationUI(bb::cascades::Application *app) … … 139 140 } 140 141 142 141 143 ApplicationUI::~ApplicationUI() 142 144 { … … 144 146 } 145 147 148 146 149 ApplicationUI* ApplicationUI::instance() 147 150 { 148 151 return instance_; 149 152 } 153 150 154 151 155 void ApplicationUI::aboutToQuit() … … 158 162 } 159 163 164 160 165 void ApplicationUI::displayMsg(const QString &msg) 161 166 { … … 167 172 } 168 173 174 169 175 void ApplicationUI::restartPjsua() 170 176 { -
pjproject/trunk/pjsip-apps/src/pjsua/bb10/src/applicationui.h
r4485 r4491 46 46 47 47 /* pjsua app callbacks */ 48 static void 49 static pj_bool_tpjsuaOnStoppedCb(pj_bool_t restart, int argc, char** argv);50 static void 48 static void pjsuaOnStartedCb(pj_status_t status, const char* msg); 49 static void pjsuaOnStoppedCb(pj_bool_t restart, int argc, char** argv); 50 static void pjsuaOnAppConfigCb(pjsua_app_config *cfg); 51 51 }; 52 52
Note: See TracChangeset
for help on using the changeset viewer.