equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 |
|
19 #ifndef GLOBALMSGOBSERVER_H |
|
20 #define GLOBALMSGOBSERVER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32def.h> |
|
24 |
|
25 namespace java |
|
26 { |
|
27 namespace runtimeui |
|
28 { |
|
29 |
|
30 class GlobalMsgObserver : |
|
31 public CActive |
|
32 { |
|
33 public: |
|
34 IMPORT_C static GlobalMsgObserver* NewL(); |
|
35 IMPORT_C static GlobalMsgObserver* NewLC(); |
|
36 IMPORT_C int getAnswer(); |
|
37 virtual ~GlobalMsgObserver(); |
|
38 |
|
39 private: |
|
40 inline GlobalMsgObserver() : CActive(CActive::EPriorityStandard) {}; |
|
41 void ConstructL(); |
|
42 // From CActive |
|
43 void DoCancel(); |
|
44 void RunL(); |
|
45 void Complete(); |
|
46 CActiveScheduler* iActiveScheduler; |
|
47 CActiveSchedulerWait* iActiveSchedulerWait; |
|
48 }; |
|
49 |
|
50 } //end namespace runtimeui |
|
51 } //end namespace java |
|
52 |
|
53 #endif // GLOBALMSGOBSERVER_H |