equal
deleted
inserted
replaced
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 }; |