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) 2009 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <e32base.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
19 |
#include <badesca.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
20 |
#include<liwcommon.h> |
19 | 21 |
#include <f32file.h> |
22 |
||
23 |
class CLiwServiceHandler; |
|
24 |
||
25 |
/** |
|
26 |
* Callback class for asynchronous SAPI message header |
|
27 |
*/ |
|
28 |
class CCalCallbackGuid : public MLiwNotifyCallback |
|
29 |
{ |
|
30 |
public: |
|
31 |
||
32 |
static CCalCallbackGuid* NewL(CActiveSchedulerWait* aWaitSchedular, MLiwInterface* aInterface, TInt& aResult, TInt& aFlag); |
|
33 |
||
34 |
virtual ~CCalCallbackGuid(){} |
|
35 |
||
36 |
TInt HandleNotifyL(TInt aCmdId, |
|
37 |
TInt aEventId, |
|
38 |
CLiwGenericParamList& aEventParamList, |
|
39 |
const CLiwGenericParamList& aInParamList); |
|
40 |
||
41 |
private: |
|
42 |
||
43 |
CCalCallbackGuid(CActiveSchedulerWait* aWaitSchedular, MLiwInterface* aInterface, TInt& aResult, TInt& aFlag):iWaitSchedular(aWaitSchedular), iInterface(aInterface), iResult(aResult), iOption(aFlag){ } |
|
44 |
||
45 |
CActiveSchedulerWait* iWaitSchedular; |
|
46 |
MLiwInterface* iInterface ; |
|
47 |
TInt& iResult; |
|
48 |
TInt& iOption; |
|
49 |
}; |
|
50 |
||
51 |
||
52 |
class CTestAsyncGuid : public CActive |
|
53 |
{ |
|
54 |
public: |
|
55 |
static CTestAsyncGuid* NewL(); |
|
56 |
~CTestAsyncGuid(); |
|
57 |
int Start(int, TBool); |
|
58 |
void CancelNotification(); |
|
59 |
||
60 |
||
61 |
private: |
|
62 |
void ConstructL(); |
|
63 |
CTestAsyncGuid(); |
|
64 |
||
65 |
virtual void DoCancel(); |
|
66 |
virtual void RunL(); |
|
67 |
||
68 |
||
69 |
void TestFunc(); |
|
70 |
||
71 |
||
72 |
||
73 |
private: |
|
74 |
CLiwServiceHandler* iServiceHandler; |
|
75 |
CActiveSchedulerWait* iWaitSchedular; |
|
76 |
TInt iResult; |
|
77 |
MLiwInterface* interface ; |
|
78 |
CCalCallbackGuid* iCallback; |
|
79 |
TInt iError; |
|
80 |
TInt iFlag; |
|
81 |
TBool iAsync; |
|
82 |
}; |
|
83 |