44
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: ?Description
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef GLXAPPLICATION_H_
|
|
19 |
#define GLXAPPLICATION_H_
|
|
20 |
|
|
21 |
#include <hbApplication.h>
|
|
22 |
|
|
23 |
class QSymbianEvent;
|
|
24 |
|
58
|
25 |
/**
|
|
26 |
* Class Description
|
|
27 |
* Custom Glx appliaction class to monitor the low memory situation
|
|
28 |
*/
|
|
29 |
|
44
|
30 |
class GlxApplication: public HbApplication
|
|
31 |
{
|
58
|
32 |
Q_OBJECT
|
44
|
33 |
public:
|
|
34 |
|
58
|
35 |
/**
|
|
36 |
* Constructor
|
|
37 |
*/
|
44
|
38 |
GlxApplication( int &argc, char *argv[],
|
|
39 |
Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags );
|
|
40 |
|
58
|
41 |
/**
|
|
42 |
* Constructor
|
|
43 |
*/
|
44
|
44 |
GlxApplication( QApplication::QS60MainApplicationFactory factory,
|
|
45 |
int &argc,
|
|
46 |
char *argv[],
|
|
47 |
Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags );
|
|
48 |
|
58
|
49 |
/**
|
|
50 |
* symbianEventFilter()
|
|
51 |
* /// From HbApplication
|
|
52 |
*/
|
44
|
53 |
bool symbianEventFilter( const QSymbianEvent *aQSEvent );
|
|
54 |
|
58
|
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 |
|
44
|
73 |
private :
|
58
|
74 |
/**
|
|
75 |
* cleanUpCache() - To clear the cache in the low memory situation.
|
|
76 |
*/
|
44
|
77 |
void cleanUpCache();
|
|
78 |
|
|
79 |
};
|
|
80 |
|
|
81 |
#endif // GLXAPPLICATION_H_
|