epoc32/include/offop.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/offop.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/offop.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,135 @@
     1.4 -offop.inl
     1.5 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +inline void CImOffLineOperation::SetCopyToLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
    1.21 +    {
    1.22 +    SetOperation(EOffLineOpCopyToLocal, aMessageId, aTargetFolderId);
    1.23 +    }
    1.24 +
    1.25 +inline void CImOffLineOperation::SetCopyFromLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
    1.26 +    {
    1.27 +    SetOperation(EOffLineOpCopyFromLocal, aMessageId, aTargetFolderId);
    1.28 +    }
    1.29 +
    1.30 +inline void CImOffLineOperation::SetCopyWithinService(TMsvId aMessageId, TMsvId aTargetFolderId)
    1.31 +    {
    1.32 +    SetOperation(EOffLineOpCopyWithinService, aMessageId, aTargetFolderId);
    1.33 +    }
    1.34 +
    1.35 +inline void CImOffLineOperation::SetMoveToLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
    1.36 +    {
    1.37 +    SetOperation(EOffLineOpMoveToLocal, aMessageId, aTargetFolderId);
    1.38 +    }
    1.39 +
    1.40 +inline void CImOffLineOperation::SetMoveFromLocal(TMsvId aMessageId, TMsvId aTargetFolderId)
    1.41 +    {
    1.42 +    SetOperation(EOffLineOpMoveFromLocal, aMessageId, aTargetFolderId);
    1.43 +    }
    1.44 +
    1.45 +inline void CImOffLineOperation::SetMoveWithinService(TMsvId aMessageId, TMsvId aTargetFolderId)
    1.46 +    {
    1.47 +    SetOperation(EOffLineOpMoveWithinService, aMessageId, aTargetFolderId);
    1.48 +    }
    1.49 +
    1.50 +inline void CImOffLineOperation::SetDelete(TMsvId aMessageId)
    1.51 +    {
    1.52 +    SetOperation(EOffLineOpDelete, aMessageId, KMsvNullIndexEntryId);
    1.53 +    }
    1.54 +
    1.55 +inline void CImOffLineOperation::SetChange(TMsvId aMessageId)
    1.56 +    {
    1.57 +    SetOperation(EOffLineOpChange, aMessageId, KMsvNullIndexEntryId);
    1.58 +    }
    1.59 +
    1.60 +inline void CImOffLineOperation::SetCreate(TMsvId aMessageId)
    1.61 +    {
    1.62 +    SetOperation(EOffLineOpCreate, aMessageId, KMsvNullIndexEntryId);
    1.63 +    }
    1.64 +
    1.65 +inline TInt    CImOffLineOperation::MtmFunctionId() const
    1.66 +    {
    1.67 +    return iMtmFunctionId;
    1.68 +    }
    1.69 +
    1.70 +inline CImOffLineOperation::TOffLineOpType CImOffLineOperation::OpType() const 
    1.71 +    {
    1.72 +    return iOpType;
    1.73 +    }
    1.74 +
    1.75 +inline TMsvId  CImOffLineOperation::MessageId() const 
    1.76 +    {
    1.77 +    return iMessageId;
    1.78 +    }
    1.79 +
    1.80 +inline TMsvId  CImOffLineOperation::TargetMessageId() const 
    1.81 +    {
    1.82 +    return iTargetMessageId;
    1.83 +    }
    1.84 +
    1.85 +inline TPtrC8  CImOffLineOperation::MtmParameters() const 
    1.86 +    {
    1.87 +    __ASSERT_DEBUG(iMtmParameters != NULL, User::Panic(KImcmPanic, EOffOpNoMtmParameters));
    1.88 +    return iMtmParameters->Des();
    1.89 +    }
    1.90 +
    1.91 +inline CImOffLineArrayStore::CImOffLineArrayStore(MImOffLineOperationArray& aArray)
    1.92 +    {
    1.93 +    iArray = &aArray;
    1.94 +    iVersion = KCurrentOfflineOperationArrayVersion;
    1.95 +    }
    1.96 +
    1.97 +inline void CImOffLineArrayStore::SetVersion(TUint16 aVersion)
    1.98 +    {
    1.99 +    iVersion = aVersion;
   1.100 +    }
   1.101 +
   1.102 +inline TUint16 CImOffLineArrayStore::Version()
   1.103 +    {
   1.104 +    return iVersion;
   1.105 +    }
   1.106 +
   1.107 +
   1.108 +inline TQueuedOperation& CImOperationQueueList::operator[](TInt anIndex) 
   1.109 +//
   1.110 +// Access to array of queued operations.
   1.111 +//
   1.112 +	{
   1.113 +	return (*iQueuedList)[anIndex];
   1.114 +	}
   1.115 +
   1.116 +inline const TInt CImOperationQueueList::Count() const
   1.117 +//
   1.118 +// Current number of queued operations in list
   1.119 +//
   1.120 +	{
   1.121 +	return iQueuedList->CountOperations();
   1.122 +	}
   1.123 +
   1.124 +////////////////////////////////////////////////////////////////////////////////////
   1.125 +// CQueuedOperation accessors
   1.126 +inline TMsvId TQueuedOperation::FolderId() const 
   1.127 +	{ 
   1.128 +	return iFolderId; 
   1.129 +	}
   1.130 +
   1.131 +inline TInt   TQueuedOperation::OperationIndex() const 
   1.132 +	{ 
   1.133 +	return iOperationIndex; 
   1.134 +	}
   1.135 +
   1.136 +inline CImOffLineOperation& TQueuedOperation::Operation() 
   1.137 +	{
   1.138 +	return iStoredOperation;
   1.139 +	}