diff -r 000000000000 -r dfb7c4ff071f commsfwsupport/commselements/ResponseMsg/inc/responsemsgaccessor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commsfwsupport/commselements/ResponseMsg/inc/responsemsgaccessor.h Thu Dec 17 09:22:25 2009 +0200 @@ -0,0 +1,58 @@ +// 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 + +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(iResponseMsg); + } + +private: + RResponseMsg& iResponseMsg; + }; + +} // namespace Elements + +#endif // RESPONSEMSGACCESSOR_H + +