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