equal
deleted
inserted
replaced
39 class QLocalServer; |
39 class QLocalServer; |
40 class IRQAdvClient; |
40 class IRQAdvClient; |
41 class HbProgressDialog; |
41 class HbProgressDialog; |
42 class IRQSystemEventHandler; |
42 class IRQSystemEventHandler; |
43 class IRPlayList; |
43 class IRPlayList; |
44 class HbIconItem; |
44 #ifdef HS_WIDGET_ENABLED |
|
45 class IrMonitorService; |
|
46 class IrControlService; |
|
47 #endif |
45 class IRFileViewService; |
48 class IRFileViewService; |
|
49 class HbMessageBox; |
46 |
50 |
47 #ifdef LOCALIZATION |
51 #ifdef LOCALIZATION |
48 class QTranslator; |
52 class QTranslator; |
49 #endif |
53 #endif |
50 |
54 |
54 |
58 |
55 public: |
59 public: |
56 IRApplication(IRViewManager *aViewManager, IRQSystemEventHandler* aSystemEventHandler); |
60 IRApplication(IRViewManager *aViewManager, IRQSystemEventHandler* aSystemEventHandler); |
57 |
61 |
58 ~IRApplication(); |
62 ~IRApplication(); |
|
63 #ifdef SUBTITLE_STR_BY_LOCID |
|
64 bool verifyNetworkConnectivity(const QString &aConnectingText = hbTrId("txt_common_info_loading")); |
|
65 #else |
|
66 bool verifyNetworkConnectivity(const QString &aConnectingText = hbTrId("Loading")); |
|
67 #endif |
59 |
68 |
60 bool verifyNetworkConnectivity(const QString &aConnectingText = hbTrId("txt_common_info_loading")); |
69 void startLoadingAnimation(const QObject *aReceiver, const char *aFunc); |
61 |
|
62 void startLoadingAnimation(const QObject *aReceiver, const char *aFunc); |
|
63 void startLoadingAnimation(const QPointF& aPos); |
|
64 void stopLoadingAnimation(); |
70 void stopLoadingAnimation(); |
|
71 |
|
72 #ifdef HS_WIDGET_ENABLED |
|
73 bool startPlaying(); |
|
74 void cancelPlayerLoading(); |
|
75 #endif |
65 |
76 |
66 IRViewManager* getViewManager() const; |
77 IRViewManager* getViewManager() const; |
67 IRQNetworkController* getNetworkController(); |
78 IRQNetworkController* getNetworkController(); |
68 IRQIsdsClient* getIsdsClient(); |
79 IRQIsdsClient* getIsdsClient(); |
69 IRPlayController* getPlayController(); |
80 IRPlayController* getPlayController(); |
71 IRQFavoritesDB* getFavoritesDB(); |
82 IRQFavoritesDB* getFavoritesDB(); |
72 IRQSettings * getSettings(); |
83 IRQSettings * getSettings(); |
73 IRMediaKeyObserver* getMediaKeyObserver(); |
84 IRMediaKeyObserver* getMediaKeyObserver(); |
74 IRQAdvClient* getAdvClient(); |
85 IRQAdvClient* getAdvClient(); |
75 IRPlayList* getPlayList() const; |
86 IRPlayList* getPlayList() const; |
|
87 |
|
88 void setLaunchView(); |
|
89 void launchStartingView(TIRViewId aViewId); |
76 |
90 |
77 void launchStartingView(TIRViewId aViewId); |
91 bool isAppFullyStarted() const; |
78 |
92 |
79 #ifdef LOCALIZATION |
93 #ifdef LOCALIZATION |
80 /* |
94 /* |
81 * this function will take ownership of the translator |
95 * this function will take ownership of the translator |
82 */ |
96 */ |
109 |
123 |
110 private: |
124 private: |
111 void createComponents(); |
125 void createComponents(); |
112 void destroyComponents(); |
126 void destroyComponents(); |
113 void setupConnection(); |
127 void setupConnection(); |
114 void setLaunchView(); |
|
115 void startSystemEventMonitor(); |
128 void startSystemEventMonitor(); |
116 void initApp(); |
129 void initApp(); |
117 void setExitingView(); |
130 void setExitingView(); |
118 void getLoadingAnimation(); |
|
119 |
|
120 TIRHandleResult handleConnectionEstablished(); |
131 TIRHandleResult handleConnectionEstablished(); |
121 |
132 |
122 void startLocalServer(); |
133 void startLocalServer(); |
123 bool eventFilter(QObject *object, QEvent *event); |
134 bool eventFilter(QObject *object, QEvent *event); |
124 |
135 |
163 |
174 |
164 #ifdef LOCALIZATION |
175 #ifdef LOCALIZATION |
165 QTranslator *iTranslator; |
176 QTranslator *iTranslator; |
166 #endif |
177 #endif |
167 |
178 |
168 IRQSystemEventHandler *iSystemEventHandler; |
179 IRQSystemEventHandler *iSystemEventHandler; |
|
180 TIRUseNetworkReason iUseNetworkReason; |
169 |
181 |
170 HbIconItem *iLoadingAnimation; |
182 bool iAppFullyStarted; |
171 IRFileViewService *iFileViewService; |
183 |
|
184 #ifdef HS_WIDGET_ENABLED |
|
185 IrControlService *iControlService; |
|
186 IrMonitorService *iMonitorService; |
|
187 #endif |
|
188 |
|
189 IRFileViewService *iFileViewService; |
|
190 HbMessageBox *iMessageBox; |
172 }; |
191 }; |
173 |
192 |
174 #endif |
193 #endif |