equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009-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 * CGlobalWaitNoteObserver class implementation. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #include "bootstrapglobalwaitnoteobserver.h" |
|
22 #include "bootstrapappui.h" |
|
23 |
|
24 CGlobalWaitNoteObserver::CGlobalWaitNoteObserver(CBootstrapAppUi* aBsAppUiObj) : |
|
25 CActive(CActive::EPriorityStandard), |
|
26 iBsAppUiObj(aBsAppUiObj) |
|
27 { |
|
28 CActiveScheduler::Add(this); |
|
29 } |
|
30 |
|
31 CGlobalWaitNoteObserver::~CGlobalWaitNoteObserver() |
|
32 { |
|
33 Cancel(); |
|
34 } |
|
35 |
|
36 void CGlobalWaitNoteObserver::RunL() |
|
37 { |
|
38 // Invoke the handler function for cancel |
|
39 iBsAppUiObj->HandleGlobalWaitNoteCancel(iStatus.Int()); |
|
40 } |
|
41 |
|
42 TInt CGlobalWaitNoteObserver::RunError(TInt /*aError*/) |
|
43 { |
|
44 iBsAppUiObj->ExitWithError(R_INSTALLATION_FAILURE_ERR); |
|
45 return KErrNone; |
|
46 } |
|
47 |
|
48 void CGlobalWaitNoteObserver::DoCancel() |
|
49 { |
|
50 } |
|
51 |
|
52 void CGlobalWaitNoteObserver::Start() |
|
53 { |
|
54 SetActive(); |
|
55 } |