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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Extensions to mmfipc. for testframework - support Des16's as well as Des8's
18 #ifndef __TESTFRAMEWORKIPC_H__
19 #define __TESTFRAMEWORKIPC_H__
21 #include <mmf/common/mmfipc.h>
22 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
23 #include <mmf/common/mmfipcserver.h>
26 * Add additional SendReceive() call to RMmfSessionBase.
27 * This class adds a TDesC16 call to the standard set.
32 class RMmfSessionBaseX : public RMmfSessionBase
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;
50 TInt SendReceive(TInt aFunction, const TDesC& aParam0, TInt aParam1) const;
54 * Add additional calls to MmfMessageUtil.
55 * This class adds TDes(C)16 calls to the basic set.
60 class MmfMessageUtilX : public MmfMessageUtil
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);
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);
77 #include <testframeworkipc.inl>
79 #endif // __TESTFRAMEWORKIPC_H__