20 |
20 |
21 #include <hbApplication.h> |
21 #include <hbApplication.h> |
22 |
22 |
23 class QSymbianEvent; |
23 class QSymbianEvent; |
24 |
24 |
|
25 /** |
|
26 * Class Description |
|
27 * Custom Glx appliaction class to monitor the low memory situation |
|
28 */ |
|
29 |
25 class GlxApplication: public HbApplication |
30 class GlxApplication: public HbApplication |
26 { |
31 { |
27 |
32 Q_OBJECT |
28 public: |
33 public: |
29 |
34 |
|
35 /** |
|
36 * Constructor |
|
37 */ |
30 GlxApplication( int &argc, char *argv[], |
38 GlxApplication( int &argc, char *argv[], |
31 Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags ); |
39 Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags ); |
32 |
40 |
|
41 /** |
|
42 * Constructor |
|
43 */ |
33 GlxApplication( QApplication::QS60MainApplicationFactory factory, |
44 GlxApplication( QApplication::QS60MainApplicationFactory factory, |
34 int &argc, |
45 int &argc, |
35 char *argv[], |
46 char *argv[], |
36 Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags ); |
47 Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags ); |
37 |
48 |
|
49 /** |
|
50 * symbianEventFilter() |
|
51 * /// From HbApplication |
|
52 */ |
38 bool symbianEventFilter( const QSymbianEvent *aQSEvent ); |
53 bool symbianEventFilter( const QSymbianEvent *aQSEvent ); |
39 |
54 |
|
55 /** |
|
56 * initMattiAutomation() - To monitor the application ready event for matti tool. |
|
57 */ |
|
58 void initMattiAutomation(); |
|
59 |
|
60 signals : |
|
61 /** |
|
62 * applicationReady() - To emit the application ready signal for matti tool. |
|
63 */ |
|
64 void applicationReady(); |
|
65 |
|
66 public slots: |
|
67 /** |
|
68 * handleAppReady() - Call back function to get the notification of application ready. |
|
69 * It is also used for matti tool. |
|
70 */ |
|
71 void handleAppReady(); |
|
72 |
40 private : |
73 private : |
|
74 /** |
|
75 * cleanUpCache() - To clear the cache in the low memory situation. |
|
76 */ |
41 void cleanUpCache(); |
77 void cleanUpCache(); |
42 |
78 |
43 }; |
79 }; |
44 |
80 |
45 #endif // GLXAPPLICATION_H_ |
81 #endif // GLXAPPLICATION_H_ |