equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 #ifndef IRAPPLICATION_H |
17 #ifndef IRAPPLICATION_H |
18 #define IRAPPLICATION_H |
18 #define IRAPPLICATION_H |
19 |
19 |
|
20 #include <QObject> |
20 #include <QEvent> |
21 #include <QEvent> |
21 #include <hbglobal.h> |
22 #include <hbglobal.h> |
22 #include <xqserviceprovider.h> |
|
23 #include <qpoint.h> |
23 #include <qpoint.h> |
24 |
24 |
25 #include "irqevent.h" |
25 #include "irqevent.h" |
26 #include "irviewdefinitions.h" |
26 #include "irviewdefinitions.h" |
27 |
27 |
38 class IRQDiskSpaceWatcher; |
38 class IRQDiskSpaceWatcher; |
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 XQSharableFile; |
|
44 class IRPlayList; |
43 class IRPlayList; |
45 class HbIconItem; |
44 class HbIconItem; |
|
45 class IRFileViewService; |
46 |
46 |
47 #ifdef LOCALIZATION |
47 #ifdef LOCALIZATION |
48 class QTranslator; |
48 class QTranslator; |
49 #endif |
49 #endif |
50 |
50 |
51 class IRApplication : public XQServiceProvider |
51 class IRApplication : public QObject |
52 { |
52 { |
53 Q_OBJECT |
53 Q_OBJECT |
54 |
54 |
55 public: |
55 public: |
56 IRApplication(IRViewManager *aViewManager, IRQSystemEventHandler* aSystemEventHandler); |
56 IRApplication(IRViewManager *aViewManager, IRQSystemEventHandler* aSystemEventHandler); |
72 IRQSettings * getSettings(); |
72 IRQSettings * getSettings(); |
73 IRMediaKeyObserver* getMediaKeyObserver(); |
73 IRMediaKeyObserver* getMediaKeyObserver(); |
74 IRQAdvClient* getAdvClient(); |
74 IRQAdvClient* getAdvClient(); |
75 IRPlayList* getPlayList() const; |
75 IRPlayList* getPlayList() const; |
76 |
76 |
|
77 void launchStartingView(TIRViewId aViewId); |
|
78 |
77 #ifdef LOCALIZATION |
79 #ifdef LOCALIZATION |
78 /* |
80 /* |
79 * this function will take ownership of the translator |
81 * this function will take ownership of the translator |
80 */ |
82 */ |
81 void setTranslator(QTranslator* aTranslator); |
83 void setTranslator(QTranslator* aTranslator); |
86 |
88 |
87 #ifdef _DEBUG |
89 #ifdef _DEBUG |
88 public: |
90 public: |
89 bool iTestPreferredBitrate; |
91 bool iTestPreferredBitrate; |
90 #endif |
92 #endif |
91 |
|
92 public slots: |
|
93 void view(const QString &aFileName); |
|
94 void view(const XQSharableFile &aSharableFile); |
|
95 |
93 |
96 signals: |
94 signals: |
97 void quit(); |
95 void quit(); |
98 |
96 |
99 private slots: |
97 private slots: |
112 private: |
110 private: |
113 void createComponents(); |
111 void createComponents(); |
114 void destroyComponents(); |
112 void destroyComponents(); |
115 void setupConnection(); |
113 void setupConnection(); |
116 void setLaunchView(); |
114 void setLaunchView(); |
117 void launchStartingView(TIRViewId aViewId); |
|
118 void startSystemEventMonitor(); |
115 void startSystemEventMonitor(); |
119 void initApp(); |
116 void initApp(); |
120 void setExitingView(); |
117 void setExitingView(); |
121 void getLoadingAnimation(); |
118 void getLoadingAnimation(); |
122 |
119 |
168 QTranslator *iTranslator; |
165 QTranslator *iTranslator; |
169 #endif |
166 #endif |
170 |
167 |
171 IRQSystemEventHandler *iSystemEventHandler; |
168 IRQSystemEventHandler *iSystemEventHandler; |
172 |
169 |
173 IRPlayList *iPlayList; |
|
174 HbIconItem *iLoadingAnimation; |
170 HbIconItem *iLoadingAnimation; |
|
171 IRFileViewService *iFileViewService; |
175 }; |
172 }; |
176 |
173 |
177 #endif |
174 #endif |