author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 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 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
25 |
#include <liwcommon.h> |
19 | 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 CProviderObserver : public CBase, public MLiwNotifyCallback |
|
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 |
||
53 |
||
54 |
virtual TInt HandleNotifyL( |
|
55 |
TInt aCmdId, |
|
56 |
TInt aEventId, |
|
57 |
CLiwGenericParamList& aEventParamList, |
|
58 |
const CLiwGenericParamList& aInParamList); |
|
59 |
||
60 |
||
61 |
/** |
|
62 |
* Destructor. |
|
63 |
*/ |
|
64 |
virtual ~CProviderObserver() {} |
|
65 |
||
66 |
/** |
|
67 |
* NewL function . |
|
68 |
*/ |
|
69 |
||
70 |
static CProviderObserver* NewL(); |
|
71 |
void SetWait(CActiveSchedulerWait* aWait); |
|
72 |
||
73 |
||
74 |
TInt32 iReason; |
|
75 |
||
76 |
TInt32 iErrorReturn; |
|
77 |
||
78 |
TBool needtoleave; |
|
79 |
||
80 |
TBool iCancel; |
|
81 |
CActiveSchedulerWait *iWait; |
|
82 |
private: |
|
83 |
||
84 |
CProviderObserver(); |
|
85 |
||
86 |
||
87 |
||
88 |
||
89 |
||
90 |
}; |
|
91 |