Ignore:
Timestamp:
Apr 23, 2013 5:33:59 AM (11 years ago)
Author:
bennylp
Message:

Re #1655, #1657: modified pjsua BB10 due to change in pjsua app framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/bb10/src/applicationui.h

    r4473 r4485  
    55#include <QObject> 
    66 
     7#include "../../pjsua_app.h" 
     8 
    79namespace bb { namespace cascades { class Application; }} 
    8  
    9 class CliThread; 
    1010 
    1111/*! 
     
    2424    static ApplicationUI *instance(); 
    2525 
     26    /* Write msg to label (from different thread) */ 
     27    static void extDisplayMsg(const char *msg); 
     28 
     29    /* Restart request (from different thread) */ 
     30    void extRestartRequest(int argc, char **argv); 
     31 
    2632public slots: 
    2733    void aboutToQuit(); 
    2834 
     35    Q_INVOKABLE void restartPjsua(); 
    2936    Q_INVOKABLE void displayMsg(const QString &msg); 
    3037 
    3138private: 
    32     CliThread *cliThread; 
    3339    static ApplicationUI *instance_; 
     40    char **restartArgv; 
     41    int restartArgc; 
     42 
     43    /* pjsua main operations */ 
     44    void pjsuaStart(); 
     45    void pjsuaDestroy(); 
     46 
     47    /* pjsua app callbacks */ 
     48    static void         pjsuaOnStartedCb(pj_status_t status, const char* msg); 
     49    static pj_bool_t    pjsuaOnStoppedCb(pj_bool_t restart, int argc, char** argv); 
     50    static void         pjsuaOnAppConfigCb(pjsua_app_config *cfg); 
    3451}; 
    3552 
Note: See TracChangeset for help on using the changeset viewer.