0
|
1 |
// Copyright (c) 1997-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 the License "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 |
// e32test\misc\d_ipccpy.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#if !defined(__D_IPCCPY_H__)
|
|
19 |
#define __D_IPCCPY_H__
|
|
20 |
#include <e32cmn.h>
|
|
21 |
#ifndef __KERNEL_MODE__
|
|
22 |
#include <e32std.h>
|
|
23 |
#endif
|
|
24 |
|
|
25 |
_LIT(KIpcCpyLddName,"IpcCpy");
|
|
26 |
|
|
27 |
class TCapsIpcCpyV01
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
TVersion iVersion;
|
|
31 |
};
|
|
32 |
|
|
33 |
class RIpcCpy : public RBusLogicalChannel
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
enum THwChunkTypes
|
|
37 |
{
|
|
38 |
EHwChunkSupRw,
|
|
39 |
EHwChunkUserRw,
|
|
40 |
EHwChunkUserRo,
|
|
41 |
ENumHwChunkTypes
|
|
42 |
};
|
|
43 |
enum TRequest
|
|
44 |
{
|
|
45 |
ERequestIpcCpy,
|
|
46 |
};
|
|
47 |
enum TControl
|
|
48 |
{
|
|
49 |
EControlBigRead,
|
|
50 |
EControlBigWrite,
|
|
51 |
EControlHardwareChunks
|
|
52 |
};
|
|
53 |
public:
|
|
54 |
#ifndef __KERNEL_MODE__
|
|
55 |
inline TInt Open()
|
|
56 |
{ return DoCreate(KIpcCpyLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); }
|
|
57 |
inline void IpcCpy(TRequestStatus& aStatus, TDes8& aDest)
|
|
58 |
{ DoRequest(ERequestIpcCpy, aStatus, (TAny*)&aDest); }
|
|
59 |
inline void BigRead(TAny* aDest, TInt aSize)
|
|
60 |
{ DoControl(EControlBigRead, aDest, (TAny*)aSize); }
|
|
61 |
inline void BigWrite(const TAny* aSrc, TInt aSize)
|
|
62 |
{ DoControl(EControlBigWrite, (TAny*)aSrc, (TAny*)aSize); }
|
|
63 |
inline TInt HardwareChunks(TLinAddr* aAddrs,TPtr8& aUserDes)
|
|
64 |
{ return DoControl(EControlHardwareChunks,aAddrs,&aUserDes); }
|
|
65 |
#endif
|
|
66 |
};
|
|
67 |
|
|
68 |
#endif
|