ginebra2/Application.h
changeset 12 afcd8e6d025b
parent 9 b39122337a00
child 16 3c88a81ff781
equal deleted inserted replaced
11:786160610b4d 12:afcd8e6d025b
    27 #define UI_FRAMEWORK "orbit_ui"
    27 #define UI_FRAMEWORK "orbit_ui"
    28 #else
    28 #else
    29 #define UI_FRAMEWORK ""
    29 #define UI_FRAMEWORK ""
    30 #endif // ORBIT_UI
    30 #endif // ORBIT_UI
    31 
    31 
       
    32 #ifdef QT_MOBILITY_SERVICE_FRAMEWORK
       
    33 #define MOBILITY_SERVICE_FRAMEWORK "mobility_service_framework"
       
    34 #else
       
    35 #define MOBILITY_SERVICE_FRAMEWORK "junk"
       
    36 #endif // QT_MOBILITY_SERVICE_FRAMEWORK
       
    37 
    32 class QCoreApplication;
    38 class QCoreApplication;
    33 
    39 
    34 namespace GVA {
    40 namespace GVA {
    35 
    41 
    36 /*! \ingroup JavascriptAPI
    42 /*! \ingroup JavascriptAPI
    49     ~GinebraApplication();
    55     ~GinebraApplication();
    50   public slots:
    56   public slots:
    51     void quit();
    57     void quit();
    52     void debug(const QString &msg);
    58     void debug(const QString &msg);
    53     QString ui() const { return UI_FRAMEWORK; }
    59     QString ui() const { return UI_FRAMEWORK; }
       
    60     QString layoutType() ;
       
    61     QString serviceFramework() const { return MOBILITY_SERVICE_FRAMEWORK; }
    54     void sendToBackground();
    62     void sendToBackground();
       
    63     /*
       
    64      * You can use this to breakpoint inside your javascript.  Here's how:
       
    65      * 1) put a breakpoint on this function
       
    66      * 2) to your javascript, add: app.breakpoint();
       
    67      * 3) when the breakpoint hits, you will be in the C++ stack at the point of that JS execution
       
    68      * It doesn't really help you step through javascript (unless you know the javascript core well), but helps you debug C++ and javascript interaction
       
    69      */
       
    70     void breakpoint() {}
    55   signals:
    71   signals:
    56     void aboutToQuit();
    72     void aboutToQuit();
    57   private:
    73   private:
    58     QCoreApplication * m_app;
    74     QCoreApplication * m_app;
    59 };
    75 };