messagingfw/msgsrvnstore/server/inc/MSVROPS.INL
author hgs
Wed, 03 Nov 2010 22:41:46 +0530
changeset 62 db3f5fa34ec7
permissions -rw-r--r--
201044_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
62
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     1
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     2
// All rights reserved.
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     7
//
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     8
// Initial Contributors:
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    10
//
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    11
// Contributors:
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    12
//
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    13
// Description:
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    14
// CMsvMtmOperation
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    15
// 
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    16
//
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    17
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    18
inline void CMsvMtmOperation::CopyToLocal(CMsvEntrySelection* aSelection, TMsvId aDestination)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    19
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    20
	StoreParameters(EMtmOpCopyToLocal ,aSelection ,aDestination, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    21
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    22
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    23
inline void CMsvMtmOperation::CopyFromLocal(CMsvEntrySelection* aSelection, TMsvId aDestination)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    24
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    25
	StoreParameters(EMtmOpCopyFromLocal ,aSelection ,aDestination, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    26
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    27
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    28
inline void CMsvMtmOperation::CopyWithinService(CMsvEntrySelection* aSelection, TMsvId aDestination)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    29
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    30
	StoreParameters(EMtmOpCopyWithinService ,aSelection ,aDestination, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    31
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    32
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    33
inline void CMsvMtmOperation::MoveToLocal(CMsvEntrySelection* aSelection, TMsvId aDestination)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    34
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    35
	StoreParameters(EMtmOpMoveToLocal ,aSelection ,aDestination, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    36
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    37
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    38
inline void CMsvMtmOperation::MoveFromLocal(CMsvEntrySelection* aSelection, TMsvId aDestination)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    39
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    40
	StoreParameters(EMtmOpMoveFromLocal ,aSelection ,aDestination, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    41
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    42
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    43
inline void CMsvMtmOperation::MoveWithinService(CMsvEntrySelection* aSelection, TMsvId aDestination)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    44
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    45
	StoreParameters(EMtmOpMoveWithinService ,aSelection ,aDestination, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    46
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    47
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    48
inline void CMsvMtmOperation::DeleteAll(CMsvEntrySelection* aSelection)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    49
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    50
	StoreParameters(EMtmOpDeleteAll ,aSelection ,0, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    51
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    52
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    53
inline void CMsvMtmOperation::CreateL(const TMsvEntry& aNewEntry)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    54
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    55
	StoreParametersL(EMtmOpCreate, aNewEntry);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    56
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    57
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    58
inline void CMsvMtmOperation::ChangeL(const TMsvEntry& aNewEntry)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    59
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    60
	StoreParametersL(EMtmOpChange, aNewEntry);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    61
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    62
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    63
inline void CMsvMtmOperation::ChangeEntriesL(CMsvEntrySelection* aSelection, TInt aMark)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    64
    {
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    65
    StoreParameters(EMtmOpChangeEntries, aSelection ,aMark, NULL);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    66
    }
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    67
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    68
inline void CMsvMtmOperation::StartCommand(CMsvEntrySelection* aSelection, TInt aCommand, HBufC8* aParameter)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    69
	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    70
	StoreParameters(EMtmOpCommand ,aSelection ,aCommand, aParameter);
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    71
	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    72
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    73
#if (defined SYMBIAN_USER_PROMPT_SERVICE)	
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    74
inline void CMsvMtmOperation::SetThreadId(TThreadId aThreadId)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    75
 	{
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    76
 	iThreadId = aThreadId;
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    77
 	}
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    78
inline void CMsvMtmOperation::SetCapability(TBool aCap)
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    79
    {
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    80
    iHasCapability = aCap;
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    81
    }
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    82
inline TBool CMsvMtmOperation::Capability()
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    83
    {
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    84
    return iHasCapability;
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    85
    }
db3f5fa34ec7 201044_02
hgs
parents:
diff changeset
    86
#endif