epoc32/include/test/datawrapper.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* 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
* which accompanies this distribution, and is available
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* @file
* This contains inline methods of CDataWrapper
*
*/


/**
 @prototype
 @test
*/

#ifndef __DATA_WRAPPER_INL_
#define __DATA_WRAPPER_INL_

/**
 * Get the operation to cleanup the object returned by GetObject
 *
 * @see		TCleanupOperation
 *
 * @return	The cleanup operation. NULL if there is not one defined for the object.
 */
inline TCleanupOperation CDataWrapper::CleanupOperation()	{ return NULL; }

/**
 * Set the object that the wrapper contains
 *
 * @param	aObject - the object that the wrapper contains.
 *
 * @leave	KErrNotSupported if this operation is not supported
 */
inline void	 CDataWrapper::SetObjectL(TAny* /*aObject*/)	{ User::Leave(KErrNotSupported); }

/**
 * Removes the object that the wrapper contains. A subsequent call to
 * GetObject should return NULL until SetObject is called.
 *
 * @param	aObject - the object that the wrapper contains.
 *
 * @leave	KErrNotSupported if this operation is not supported
 */
inline void	 CDataWrapper::DisownObjectL()			{ User::Leave(KErrNotSupported); }

/**
 * Increment the number of outstanding async calls that are active
 */
inline void	 CDataWrapper::IncOutstanding()			{ iOutstanding++; }

/**
 * Decrement the number of outstanding async calls that are active
 */
inline void  CDataWrapper::DecOutstanding()			{ iOutstanding--; }

/**
 * Query if there are any outstanding async calls that are active.
 *
 * @return	ETrue if there are any oustnading active async calls.
 */
inline TBool CDataWrapper::Outstanding()			{ return iOutstanding>0; }

/**
 * Initialse the wrapper
 *
 * @leave	system wide error
 */
inline void  CDataWrapper::InitialiseL()			{}

#endif // ___DATA_WRAPPER_INL_