commsfwsupport/commselements/ResponseMsg/inc/responsemsgaccessor.h
author William Roberts <williamr@symbian.org>
Fri, 18 Jun 2010 14:58:25 +0100
branchGCC_SURGE
changeset 56 54dfd2134ef2
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Mark more TMeta vtable and typeinfor exports as ABSENT - Bug 3024

// 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 "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @internalTechnology
*/


#if !defined(RESPONSEMSGACCESSOR_H)
#define RESPONSEMSGACCESSOR_H

#include <elements/responsemsg.h>

namespace Elements
{

/**
	The RResponseMsg class provides a controlled wrapper around an IPC
	client-provided RMessage2.

	@internalTechnology
	@released
*/
class TResponseMsgAccessor
	{
public:
	explicit TResponseMsgAccessor(RResponseMsg& aResponseMsg)
	:	iResponseMsg(aResponseMsg)
		{
		}

	RMessage2& Message()
		{
		return static_cast<RMessage2&>(iResponseMsg);
		}

private:
	RResponseMsg& iResponseMsg;
	};

} // namespace Elements

#endif	// RESPONSEMSGACCESSOR_H