Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 1998-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" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 inline void CImOffLineOperation::SetCopyToLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
18 SetOperation(EOffLineOpCopyToLocal, aMessageId, aTargetFolderId);
21 inline void CImOffLineOperation::SetCopyFromLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
23 SetOperation(EOffLineOpCopyFromLocal, aMessageId, aTargetFolderId);
26 inline void CImOffLineOperation::SetCopyWithinService(TMsvId aMessageId, TMsvId aTargetFolderId)
28 SetOperation(EOffLineOpCopyWithinService, aMessageId, aTargetFolderId);
31 inline void CImOffLineOperation::SetMoveToLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
33 SetOperation(EOffLineOpMoveToLocal, aMessageId, aTargetFolderId);
36 inline void CImOffLineOperation::SetMoveFromLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
38 SetOperation(EOffLineOpMoveFromLocal, aMessageId, aTargetFolderId);
41 inline void CImOffLineOperation::SetMoveWithinService(TMsvId aMessageId, TMsvId aTargetFolderId)
43 SetOperation(EOffLineOpMoveWithinService, aMessageId, aTargetFolderId);
46 inline void CImOffLineOperation::SetDelete(TMsvId aMessageId)
48 SetOperation(EOffLineOpDelete, aMessageId, KMsvNullIndexEntryId);
51 inline void CImOffLineOperation::SetChange(TMsvId aMessageId)
53 SetOperation(EOffLineOpChange, aMessageId, KMsvNullIndexEntryId);
56 inline void CImOffLineOperation::SetCreate(TMsvId aMessageId)
58 SetOperation(EOffLineOpCreate, aMessageId, KMsvNullIndexEntryId);
61 inline TInt CImOffLineOperation::MtmFunctionId() const
63 return iMtmFunctionId;
66 inline CImOffLineOperation::TOffLineOpType CImOffLineOperation::OpType() const
71 inline TMsvId CImOffLineOperation::MessageId() const
76 inline TMsvId CImOffLineOperation::TargetMessageId() const
78 return iTargetMessageId;
81 inline TPtrC8 CImOffLineOperation::MtmParameters() const
83 __ASSERT_DEBUG(iMtmParameters != NULL, User::Panic(KImcmPanic, EOffOpNoMtmParameters));
84 return iMtmParameters->Des();
87 inline CImOffLineArrayStore::CImOffLineArrayStore(MImOffLineOperationArray& aArray)
90 iVersion = KCurrentOfflineOperationArrayVersion;
93 inline void CImOffLineArrayStore::SetVersion(TUint16 aVersion)
98 inline TUint16 CImOffLineArrayStore::Version()
104 inline TQueuedOperation& CImOperationQueueList::operator[](TInt anIndex)
106 // Access to array of queued operations.
109 return (*iQueuedList)[anIndex];
112 inline const TInt CImOperationQueueList::Count() const
114 // Current number of queued operations in list
117 return iQueuedList->CountOperations();
120 ////////////////////////////////////////////////////////////////////////////////////
121 // CQueuedOperation accessors
122 inline TMsvId TQueuedOperation::FolderId() const
127 inline TInt TQueuedOperation::OperationIndex() const
129 return iOperationIndex;
132 inline CImOffLineOperation& TQueuedOperation::Operation()
134 return iStoredOperation;