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: Operation Observer is for observing operation events of the appservice class. |
|
15 * Client application gets notified when asynchronous operations |
|
16 * are completed. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #include "appobserver.h" |
|
26 #include "e32base.h" |
|
27 |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * App Observer is for observing operation events of the appservice class. |
|
33 * Client application gets notified when asynchronous operations |
|
34 * are completed. |
|
35 * |
|
36 * |
|
37 * @since Series60 v3.2 |
|
38 */ |
|
39 |
|
40 class CAppObserver : public CBase, public MAppObserver |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Abstract method to get AppServiceclass events. This method is |
|
47 * called when an event is received. |
|
48 * @since Series60 v3.2 |
|
49 * @param aReason indicates error code or sucess of asynch event |
|
50 * @return void |
|
51 */ |
|
52 virtual void AppNotifyCallbackL(TInt32 aReason, TInt32 aTransactionID ,TAppOperationEvent& aOperationEvent); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CAppObserver() {} |
|
58 |
|
59 /** |
|
60 * NewL function . |
|
61 */ |
|
62 |
|
63 static CAppObserver* NewL(CActiveSchedulerWait * aWait); |
|
64 |
|
65 |
|
66 TInt32 iReason; |
|
67 |
|
68 private: |
|
69 |
|
70 CAppObserver(CActiveSchedulerWait*); |
|
71 |
|
72 CActiveSchedulerWait* iWait; |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 }; |
|
79 |