os/mm/mmtestenv/mmtestfw/include/TestFrameworkIpc.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Extensions to mmfipc. for testframework - support Des16's as well as Des8's
    15 // 
    16 //
    17 
    18 #ifndef __TESTFRAMEWORKIPC_H__
    19 #define __TESTFRAMEWORKIPC_H__
    20 
    21 #include <mmf/common/mmfipc.h>
    22 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #include <mmf/common/mmfipcserver.h>
    24 #endif
    25 /**
    26  * Add additional SendReceive() call to RMmfSessionBase.
    27  * This class adds a TDesC16 call to the standard set.
    28  *
    29  * @internalTechnology
    30  */
    31  
    32 class RMmfSessionBaseX : public RMmfSessionBase
    33 	{
    34 protected:
    35 	// following replaces "using RMmfSessionBase::SendReceive;" since does not work on gcc
    36 	TInt SendReceive(TInt aFunction) const;
    37 	void SendReceive(TInt aFunction, TRequestStatus& aStatus) const;
    38 	TInt SendReceive(TInt aFunction, TInt aParam0) const;
    39 	TInt SendReceive(TInt aFunction, TInt aParam0, TInt aParam1) const;
    40 	void SendReceive(TInt aFunction, TInt aParam0, TRequestStatus& aStatus) const;
    41 	void SendReceive(TInt aFunction, TInt aParam0, TInt aParam1, TRequestStatus& aStatus) const;
    42 	TInt SendReceive(TInt aFunction, const TDesC8& aParam0) const;
    43 	TInt SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1) const;
    44 	TInt SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1, const TDesC8& aParam2) const;
    45 	void SendReceive(TInt aFunction, const TDesC8& aParam0, TRequestStatus& aStatus) const;
    46 	void SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1, TRequestStatus& aStatus) const;
    47 	void SendReceive(TInt aFunction, const TDesC8& aParam0, const TDesC8& aParam1, const TDesC8& aParam2, TRequestStatus& aStatus) const;
    48 
    49 	// additional call
    50 	TInt SendReceive(TInt aFunction, const TDesC& aParam0, TInt aParam1) const;
    51 	};
    52 
    53 /**
    54  * Add additional calls to MmfMessageUtil.
    55  * This class adds TDes(C)16 calls to the basic set.
    56  * 
    57  * @internalTechnology
    58  */
    59 
    60 class MmfMessageUtilX : public MmfMessageUtil
    61 	{
    62 public:
    63 	// import existing API
    64 	// the following replaces "using MmfMessageUtil::..." since that does not on gcc
    65 	static TInt Read(const RMmfIpcMessage& aMessage, TInt aParam, TDes8& aResult);
    66 	static TInt Write(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC8& aValue);
    67 	static void ReadL(const RMmfIpcMessage& aMessage, TInt aParam, TDes8& aResult);
    68 	static void WriteL(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC8& aValue);
    69 
    70 	// new 16-bit descriptor variants
    71 	static TInt Read(const RMmfIpcMessage& aMessage, TInt aParam, TDes16& aResult);
    72 	static TInt Write(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC16& aValue);
    73 	static void ReadL(const RMmfIpcMessage& aMessage, TInt aParam, TDes16& aResult);
    74 	static void WriteL(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC16& aValue);
    75 	};
    76 
    77 #include <testframeworkipc.inl>
    78 
    79 #endif // __TESTFRAMEWORKIPC_H__