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 CCalCallback : public MLiwNotifyCallback |
|
30 |
{ |
|
31 |
public: |
|
32 |
||
33 |
static CCalCallback* NewL(CActiveSchedulerWait* aWaitSchedular, TInt32& aResult ); |
|
34 |
||
35 |
virtual ~CCalCallback(){} |
|
36 |
||
37 |
TInt HandleNotifyL(TInt aCmdId, |
|
38 |
TInt aEventId, |
|
39 |
CLiwGenericParamList& aEventParamList, |
|
40 |
const CLiwGenericParamList& aInParamList); |
|
41 |
TInt iChangeType; |
|
42 |
TUint iLocalUid; |
|
43 |
TBool iCheckLocalUid; |
|
44 |
||
45 |
private: |
|
46 |
||
47 |
CCalCallback(CActiveSchedulerWait* aWaitSchedular, TInt32& aResult ):iWaitSchedular(aWaitSchedular), iResult(aResult){ } |
|
48 |
||
49 |
CActiveSchedulerWait* iWaitSchedular; |
|
50 |
TInt32& iResult; |
|
51 |
||
52 |
||
53 |
}; |
|
54 |
||
55 |
||
56 |
class CTestAsync : public CActive |
|
57 |
{ |
|
58 |
enum TTestState |
|
59 |
{ |
|
60 |
ETestIssueRequest, |
|
61 |
ETestProcessRequest, |
|
62 |
ETestCompleted |
|
63 |
}; |
|
64 |
public: |
|
65 |
static CTestAsync* NewL(); |
|
66 |
~CTestAsync(); |
|
67 |
void Start(TInt aChangeType, TBool aLocalUid); |
|
68 |
void CancelNotification(); |
|
69 |
||
70 |
TInt32 Result(); |
|
71 |
||
72 |
private: |
|
73 |
void ConstructL(); |
|
74 |
CTestAsync(); |
|
75 |
||
76 |
virtual void DoCancel(); |
|
77 |
virtual void RunL(); |
|
78 |
||
79 |
||
80 |
void TestFunc(); |
|
81 |
||
82 |
void DoAddChange(); |
|
83 |
void DoDeleteChange(); |
|
84 |
void DoUpdateChange(); |
|
85 |
void DoExpUpdate(); |
|
86 |
||
87 |
||
88 |
||
89 |
private: |
|
90 |
CLiwServiceHandler* iServiceHandler; |
|
91 |
CActiveSchedulerWait* iWaitSchedular; |
|
92 |
TInt32 iResult; |
|
93 |
TUint iLocalUid; |
|
94 |
TInt iChangeType; |
|
95 |
CCalCallback* iCallback; |
|
96 |
MLiwInterface* interface; |
|
97 |
TInt32 iTransactionId; |
|
98 |
TBool iCheckLocalUid; |
|
99 |
||
100 |
TTestState iTestState; |
|
101 |
}; |