author | Brendan Donegan <brendand@symbian.org> |
Tue, 14 Sep 2010 14:51:16 +0100 | |
branch | Symbian3 |
changeset 67 | b8dc29e53c09 |
parent 6 | c108117318cb |
permissions | -rw-r--r-- |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2 |
// All rights reserved. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
6 | 4 |
// under the terms of the License "Eclipse Public License v1.0" |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
6 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
7 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
10 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
11 |
// Contributors: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
12 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
13 |
// Description: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
14 |
// This contains CTestMessEditEntry which edits the entry characterstics |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
15 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
16 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
17 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
18 |
#include "TestMessEditEntry.h" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
19 |
#include "TestMessEditEntryUtil.h" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
20 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
21 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
22 |
* @name Constant Literals used. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
23 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
24 |
/*@{*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
25 |
_LIT(KPtSaveToOutbox, "SaveToOutbox"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
26 |
/*@}*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
27 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
28 |
/// Default value for depth of the count |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
29 |
#define KDefaultDepthCount 1 |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
30 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
31 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
32 |
* Override of base class pure virtual |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
33 |
* @param None |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
34 |
* @return TVerdict - return TVerdict codes |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
35 |
* @panic None |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
36 |
* @leave KErrNoMemory |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
37 |
* |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
38 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
39 |
void CTestMessEditEntry::ProcessMessageL(CBaseMtm& /*aBaseMtm*/, TMsvId /*aMsgId*/) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
40 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
41 |
// Printing to the console and log file |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
42 |
INFO_PRINTF1(_L("Edit Entry")); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
43 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
44 |
if ( TestStepResult() == EPass ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
45 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
46 |
CTestMessEditEntryUtil* editUtil=new (ELeave) CTestMessEditEntryUtil(*this, EFalse, EFalse, RMobilePhone::TMobileAddress()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
47 |
CleanupStack::PushL(editUtil); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
48 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
49 |
editUtil->ProcessEntryL(EntryL().EntryId()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
50 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
51 |
//Read whether the message is saved in outbox |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
52 |
TBool saveOutbox; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
53 |
if( ! GetBoolFromConfig(ConfigSection(), KPtSaveToOutbox, saveOutbox)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
54 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
55 |
saveOutbox = EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
56 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
57 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
58 |
INFO_PRINTF2(_L("The message saved in outbox flag is : %S"), &saveOutbox); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
59 |
if(saveOutbox) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
60 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
61 |
//Move the message to outbox |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
62 |
MoveMessageL(EntryL().EntryId(), KMsvGlobalOutBoxIndexEntryId); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
63 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
64 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
65 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
66 |
INFO_PRINTF1(_L("Entry is not moved")); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
67 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
68 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
69 |
CleanupStack::PopAndDestroy(editUtil); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
70 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
71 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
72 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
73 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
74 |
Move the message the destination folder |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
75 |
@param aMessageId - TMsvId of the message |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
76 |
@param aFolderId - TMsvId of the destination folder |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
77 |
@leave KErrNoMemory |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
78 |
@leave KErrNotFound |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
79 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
80 |
void CTestMessEditEntry::MoveMessageL(TMsvId aMessageId,TMsvId aFolderId) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
81 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
82 |
// Get CMsvEntry object and the TMsvEntry of the message |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
83 |
CMsvEntry* msgvEntry = iSession->GetEntryL(aMessageId); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
84 |
CleanupStack::PushL(msgvEntry); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
85 |
TMsvEntry entry= msgvEntry->Entry(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
86 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
87 |
// Get the parent folder Id of the messaage and create the CMsvEntry |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
88 |
TMsvId parentId = entry.Parent(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
89 |
CMsvEntry* msvEntry = iSession->GetEntryL(parentId); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
90 |
CleanupStack::PushL(msvEntry); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
91 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
92 |
// Create the active object for handling asynchronous request |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
93 |
CMoveOperation* activeOperation = CMoveOperation::NewL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
94 |
CleanupStack::PushL(activeOperation); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
95 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
96 |
// Move the selected message to given target folder |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
97 |
CMsvOperation* op = msvEntry->MoveL(aMessageId, aFolderId, activeOperation->iStatus); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
98 |
CleanupStack::PushL(op); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
99 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
100 |
// Start the Active scheduler |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
101 |
activeOperation->SetOperation(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
102 |
CActiveScheduler::Start(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
103 |
TInt error = activeOperation->iStatus.Int(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
104 |
if(error == KErrNone) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
105 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
106 |
INFO_PRINTF1(_L("message moved successfully")); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
107 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
108 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
109 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
110 |
INFO_PRINTF2(_L("message failed to be moved. Error : %d"),error); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
111 |
SetTestStepResult(EFail); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
112 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
113 |
//Destroy the object |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
114 |
CleanupStack::PopAndDestroy(4, msgvEntry); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
115 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
116 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
117 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
118 |
Constructor for CMoveOperation |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
119 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
120 |
CTestMessEditEntry::CMoveOperation::CMoveOperation() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
121 |
: CActive(CActive::EPriorityStandard) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
122 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
123 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
124 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
125 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
126 |
Two phase constructor |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
127 |
@return CTestMessEditEntry::CMoveOperation* - pointer of CTestMessEditEntry::CMoveOperation |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
128 |
@leave - KErrNoMemory |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
129 |
@leave - System wide error codes |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
130 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
131 |
CTestMessEditEntry::CMoveOperation* CTestMessEditEntry::CMoveOperation::NewL() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
132 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
133 |
CMoveOperation* self = new (ELeave) CMoveOperation(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
134 |
CleanupStack::PushL(self); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
135 |
self->ConstructL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
136 |
CleanupStack::Pop(self); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
137 |
return self; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
138 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
139 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
140 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
141 |
Second phase construction |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
142 |
@leave - sytem wide error codes |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
143 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
144 |
void CTestMessEditEntry::CMoveOperation::ConstructL() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
145 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
146 |
CActiveScheduler::Add(this); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
147 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
148 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
149 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
150 |
Sets the operation as active |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
151 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
152 |
void CTestMessEditEntry::CMoveOperation::SetOperation() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
153 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
154 |
SetActive(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
155 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
156 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
157 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
158 |
Operation completed event handler. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
159 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
160 |
void CTestMessEditEntry::CMoveOperation::RunL() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
161 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
162 |
CActiveScheduler::Stop(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
163 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
164 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
165 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
166 |
Cancels the active operation |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
167 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
168 |
void CTestMessEditEntry::CMoveOperation::DoCancel() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
169 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
170 |
} |