|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This contains CTestMessEditEntry which edits the entry characterstics |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #if (!defined __TEST_MESS_EDIT_ENTRY_H__) |
|
20 #define __TEST_MESS_EDIT_ENTRY_H__ |
|
21 |
|
22 #include "TestMessProcessExistingMsg.h" |
|
23 |
|
24 /** |
|
25 This class edits the entry characteristics |
|
26 */ |
|
27 class CTestMessEditEntry : public CTestMessProcessExistingMsg |
|
28 { |
|
29 public: |
|
30 CTestMessEditEntry() { SetTestStepName(_L("EditEntry")); } |
|
31 |
|
32 virtual void ProcessMessageL(CBaseMtm& aBaseMtm, TMsvId aMsgId); |
|
33 |
|
34 //Move the message to different folder |
|
35 void MoveMessageL(TMsvId aMessageId,TMsvId aFolderId); |
|
36 |
|
37 /** |
|
38 This class is used for asynchronous operation for move |
|
39 message operation |
|
40 */ |
|
41 class CMoveOperation: public CActive |
|
42 { |
|
43 public: |
|
44 //Pure virtual implementation of CActive |
|
45 void RunL(); |
|
46 |
|
47 //Pure virtual implementation of CActive |
|
48 void DoCancel(); |
|
49 |
|
50 //Set the operation as active |
|
51 void SetOperation(); |
|
52 |
|
53 //Two phase construction |
|
54 static CMoveOperation* NewL(); |
|
55 private: |
|
56 //Second phase construction |
|
57 void ConstructL(); |
|
58 |
|
59 //Constructor |
|
60 CMoveOperation(); |
|
61 }; |
|
62 }; |
|
63 |
|
64 #endif /* __TEST_MESS_EDIT_ENTRY_H__ */ |