equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-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 the License "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: This Class is observer for the Launching Application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32const.h> |
|
20 #include "testappobserver.h" |
|
21 |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CAppObserver::NewL |
|
25 // Returns the instance of CLauncherObserver. |
|
26 // ----------------------------------------------------------------------------- |
|
27 CAppObserver* CAppObserver::NewL(CActiveSchedulerWait * aWait) |
|
28 { |
|
29 CAppObserver* self = new( ELeave ) CAppObserver(aWait); |
|
30 return self; |
|
31 } |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // call back |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 void CAppObserver::AppNotifyCallbackL( TInt32 aReason, TInt32 aTransactionID ,TAppOperationEvent& aOperationEvent ) |
|
38 |
|
39 { |
|
40 iReason = aReason; |
|
41 iWait->AsyncStop(); |
|
42 } |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // consturctor |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 CAppObserver::CAppObserver(CActiveSchedulerWait * aWait ) |
|
52 { |
|
53 iWait = aWait; |
|
54 iReason = 10 ; //Reason of failure can be either 0 or some negative valuw which incater |
|
55 //error but it cant be greater than 0 |
|
56 } |