1 offop.inl |
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 inline void CImOffLineOperation::SetCopyToLocal(TMsvId aMessageId, TMsvId aTargetFolderId) |
|
17 { |
|
18 SetOperation(EOffLineOpCopyToLocal, aMessageId, aTargetFolderId); |
|
19 } |
|
20 |
|
21 inline void CImOffLineOperation::SetCopyFromLocal(TMsvId aMessageId, TMsvId aTargetFolderId) |
|
22 { |
|
23 SetOperation(EOffLineOpCopyFromLocal, aMessageId, aTargetFolderId); |
|
24 } |
|
25 |
|
26 inline void CImOffLineOperation::SetCopyWithinService(TMsvId aMessageId, TMsvId aTargetFolderId) |
|
27 { |
|
28 SetOperation(EOffLineOpCopyWithinService, aMessageId, aTargetFolderId); |
|
29 } |
|
30 |
|
31 inline void CImOffLineOperation::SetMoveToLocal(TMsvId aMessageId, TMsvId aTargetFolderId) |
|
32 { |
|
33 SetOperation(EOffLineOpMoveToLocal, aMessageId, aTargetFolderId); |
|
34 } |
|
35 |
|
36 inline void CImOffLineOperation::SetMoveFromLocal(TMsvId aMessageId, TMsvId aTargetFolderId) |
|
37 { |
|
38 SetOperation(EOffLineOpMoveFromLocal, aMessageId, aTargetFolderId); |
|
39 } |
|
40 |
|
41 inline void CImOffLineOperation::SetMoveWithinService(TMsvId aMessageId, TMsvId aTargetFolderId) |
|
42 { |
|
43 SetOperation(EOffLineOpMoveWithinService, aMessageId, aTargetFolderId); |
|
44 } |
|
45 |
|
46 inline void CImOffLineOperation::SetDelete(TMsvId aMessageId) |
|
47 { |
|
48 SetOperation(EOffLineOpDelete, aMessageId, KMsvNullIndexEntryId); |
|
49 } |
|
50 |
|
51 inline void CImOffLineOperation::SetChange(TMsvId aMessageId) |
|
52 { |
|
53 SetOperation(EOffLineOpChange, aMessageId, KMsvNullIndexEntryId); |
|
54 } |
|
55 |
|
56 inline void CImOffLineOperation::SetCreate(TMsvId aMessageId) |
|
57 { |
|
58 SetOperation(EOffLineOpCreate, aMessageId, KMsvNullIndexEntryId); |
|
59 } |
|
60 |
|
61 inline TInt CImOffLineOperation::MtmFunctionId() const |
|
62 { |
|
63 return iMtmFunctionId; |
|
64 } |
|
65 |
|
66 inline CImOffLineOperation::TOffLineOpType CImOffLineOperation::OpType() const |
|
67 { |
|
68 return iOpType; |
|
69 } |
|
70 |
|
71 inline TMsvId CImOffLineOperation::MessageId() const |
|
72 { |
|
73 return iMessageId; |
|
74 } |
|
75 |
|
76 inline TMsvId CImOffLineOperation::TargetMessageId() const |
|
77 { |
|
78 return iTargetMessageId; |
|
79 } |
|
80 |
|
81 inline TPtrC8 CImOffLineOperation::MtmParameters() const |
|
82 { |
|
83 __ASSERT_DEBUG(iMtmParameters != NULL, User::Panic(KImcmPanic, EOffOpNoMtmParameters)); |
|
84 return iMtmParameters->Des(); |
|
85 } |
|
86 |
|
87 inline CImOffLineArrayStore::CImOffLineArrayStore(MImOffLineOperationArray& aArray) |
|
88 { |
|
89 iArray = &aArray; |
|
90 iVersion = KCurrentOfflineOperationArrayVersion; |
|
91 } |
|
92 |
|
93 inline void CImOffLineArrayStore::SetVersion(TUint16 aVersion) |
|
94 { |
|
95 iVersion = aVersion; |
|
96 } |
|
97 |
|
98 inline TUint16 CImOffLineArrayStore::Version() |
|
99 { |
|
100 return iVersion; |
|
101 } |
|
102 |
|
103 |
|
104 inline TQueuedOperation& CImOperationQueueList::operator[](TInt anIndex) |
|
105 // |
|
106 // Access to array of queued operations. |
|
107 // |
|
108 { |
|
109 return (*iQueuedList)[anIndex]; |
|
110 } |
|
111 |
|
112 inline const TInt CImOperationQueueList::Count() const |
|
113 // |
|
114 // Current number of queued operations in list |
|
115 // |
|
116 { |
|
117 return iQueuedList->CountOperations(); |
|
118 } |
|
119 |
|
120 //////////////////////////////////////////////////////////////////////////////////// |
|
121 // CQueuedOperation accessors |
|
122 inline TMsvId TQueuedOperation::FolderId() const |
|
123 { |
|
124 return iFolderId; |
|
125 } |
|
126 |
|
127 inline TInt TQueuedOperation::OperationIndex() const |
|
128 { |
|
129 return iOperationIndex; |
|
130 } |
|
131 |
|
132 inline CImOffLineOperation& TQueuedOperation::Operation() |
|
133 { |
|
134 return iStoredOperation; |
|
135 } |