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 <e32svr.h> |
|
19 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
20 |
#include <StifTestInterface.h> |
19 | 21 |
//#include <senduiconsts.h> |
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
22 |
#include <cmsvattachment.h> |
19 | 23 |
#include "messagingservice.h" |
24 |
#include "messageheader.h" |
|
25 |
||
26 |
||
27 |
#ifndef __ASYNC_H__ |
|
28 |
#define __ASYNC_H__ |
|
29 |
||
30 |
class CMsgCallbackHeader : public CMsgCallbackBase |
|
31 |
{ |
|
32 |
public: |
|
33 |
TMsvId messageid; |
|
34 |
static CMsgCallbackHeader* NewL(CActiveSchedulerWait* aWaitSchedular, CMessagingService*s); |
|
35 |
||
36 |
virtual ~CMsgCallbackHeader(){} |
|
37 |
||
38 |
virtual void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
39 |
||
40 |
private: |
|
41 |
||
42 |
CMsgCallbackHeader(CActiveSchedulerWait* aWaitSchedular, CMessagingService*s):iWaitSchedular(aWaitSchedular), iservice(s){ } |
|
43 |
||
44 |
CActiveSchedulerWait* iWaitSchedular; |
|
45 |
CMessagingService* iservice; |
|
46 |
}; |
|
47 |
||
48 |
class Cheader_test : public CActive |
|
49 |
{ |
|
50 |
public: |
|
51 |
TMsvId iMessageId; |
|
52 |
static Cheader_test* NewL(); |
|
53 |
~Cheader_test(); |
|
54 |
void Start(); |
|
55 |
TInt Result(); |
|
56 |
void CancelNotification() |
|
57 |
{ |
|
58 |
iMessagingService->CancelNotification(ENewMessage, NULL); |
|
59 |
iCallBack = NULL; |
|
60 |
} |
|
61 |
||
62 |
private: |
|
63 |
void ConstructL(); |
|
64 |
Cheader_test(); |
|
65 |
||
66 |
virtual void DoCancel(); |
|
67 |
virtual void RunL(); |
|
68 |
||
69 |
||
70 |
void TestFunc(); |
|
71 |
||
72 |
||
73 |
||
74 |
private: |
|
75 |
CActiveSchedulerWait* iWaitSchedular; |
|
76 |
CMessagingService* iMessagingService; |
|
77 |
CMsgCallbackHeader* iCallBack; |
|
78 |
TInt iResult; |
|
79 |
}; |
|
80 |
||
81 |
||
82 |
#endif |