equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SGAPPLICATION_H |
|
19 #define SGAPPLICATION_H |
|
20 |
|
21 #include <e32keys.h> |
|
22 #include <w32std.h> |
|
23 |
|
24 #include <hbapplication.h> |
|
25 class EngineWrapper; |
|
26 |
|
27 class SGApplication : public HbApplication |
|
28 { |
|
29 public: |
|
30 SGApplication(int argc, char *argv[]);//, EngineWrapper &engine); |
|
31 ~SGApplication(); |
|
32 #if defined(Q_WS_S60) |
|
33 |
|
34 #if defined(HB_QT_S60_EVENT_FILTER) |
|
35 virtual bool s60EventFilter(TWsEvent *aEvent); |
|
36 #else |
|
37 virtual bool symbianEventFilter(const QSymbianEvent *event); |
|
38 #endif // (HB_QT_S60_EVENT_FILTER) |
|
39 #endif//(Q_WS_S60) |
|
40 inline void SetEngineWrapper(EngineWrapper *aEngine){iEngine = aEngine;} |
|
41 private: |
|
42 RWsSession iWsSession_a; |
|
43 RWindowGroup iRootWin_a; |
|
44 |
|
45 |
|
46 EngineWrapper *iEngine; |
|
47 }; |
|
48 |
|
49 #endif // SGAPPLICATION_H |