sl@0: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Extensions to mmfipc. for testframework - support Des16's as well as Des8's sl@0: // sl@0: // sl@0: sl@0: #ifndef __TESTFRAMEWORKIPC_H__ sl@0: #define __TESTFRAMEWORKIPC_H__ sl@0: sl@0: #include sl@0: #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS sl@0: #include sl@0: #endif sl@0: /** sl@0: * Add additional SendReceive() call to RMmfSessionBase. sl@0: * This class adds a TDesC16 call to the standard set. sl@0: * sl@0: * @internalTechnology sl@0: */ sl@0: sl@0: class RMmfSessionBaseX : public RMmfSessionBase sl@0: { sl@0: protected: sl@0: // following replaces "using RMmfSessionBase::SendReceive;" since does not work on gcc sl@0: TInt SendReceive(TInt aFunction) const; sl@0: void SendReceive(TInt aFunction, TRequestStatus& aStatus) const; sl@0: TInt SendReceive(TInt aFunction, TInt aParam0) const; sl@0: TInt SendReceive(TInt aFunction, TInt aParam0, TInt aParam1) const; sl@0: void SendReceive(TInt aFunction, TInt aParam0, TRequestStatus& aStatus) const; sl@0: void SendReceive(TInt aFunction, TInt aParam0, TInt aParam1, TRequestStatus& aStatus) const; sl@0: TInt SendReceive(TInt aFunction, const TDesC8& aParam0) const; sl@0: TInt SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1) const; sl@0: TInt SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1, const TDesC8& aParam2) const; sl@0: void SendReceive(TInt aFunction, const TDesC8& aParam0, TRequestStatus& aStatus) const; sl@0: void SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1, TRequestStatus& aStatus) const; sl@0: void SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1, const TDesC8& aParam2, TRequestStatus& aStatus) const; sl@0: sl@0: // additional call sl@0: TInt SendReceive(TInt aFunction, const TDesC& aParam0, TInt aParam1) const; sl@0: }; sl@0: sl@0: /** sl@0: * Add additional calls to MmfMessageUtil. sl@0: * This class adds TDes(C)16 calls to the basic set. sl@0: * sl@0: * @internalTechnology sl@0: */ sl@0: sl@0: class MmfMessageUtilX : public MmfMessageUtil sl@0: { sl@0: public: sl@0: // import existing API sl@0: // the following replaces "using MmfMessageUtil::..." since that does not on gcc sl@0: static TInt Read(const RMmfIpcMessage& aMessage, TInt aParam, TDes8& aResult); sl@0: static TInt Write(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC8& aValue); sl@0: static void ReadL(const RMmfIpcMessage& aMessage, TInt aParam, TDes8& aResult); sl@0: static void WriteL(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC8& aValue); sl@0: sl@0: // new 16-bit descriptor variants sl@0: static TInt Read(const RMmfIpcMessage& aMessage, TInt aParam, TDes16& aResult); sl@0: static TInt Write(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC16& aValue); sl@0: static void ReadL(const RMmfIpcMessage& aMessage, TInt aParam, TDes16& aResult); sl@0: static void WriteL(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC16& aValue); sl@0: }; sl@0: sl@0: #include sl@0: sl@0: #endif // __TESTFRAMEWORKIPC_H__