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