0
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef __ISIIFKERNEL_H___
|
|
21 |
#define __ISIIFKERNEL_H___
|
|
22 |
|
|
23 |
|
|
24 |
// Includes
|
|
25 |
#include <klib.h> // For DBase
|
|
26 |
#include "misiif.h" // For MISIIf
|
|
27 |
|
|
28 |
|
|
29 |
// Forward declarations
|
|
30 |
class DISIKernelChannel;
|
|
31 |
|
|
32 |
|
|
33 |
/*
|
|
34 |
* Implementation for ISI kernel interface.
|
|
35 |
*/
|
|
36 |
NONSHARABLE_CLASS( DISIIf ) : public DBase, public MISIIf
|
|
37 |
{
|
|
38 |
|
|
39 |
public:
|
|
40 |
|
|
41 |
/*
|
|
42 |
* Constructor.
|
|
43 |
* Throws fault if memory not available.
|
|
44 |
*/
|
|
45 |
static DISIIf* NewF( const TInt32 aUID, TUint8& aObjId );
|
|
46 |
|
|
47 |
/*
|
|
48 |
* Destructor.
|
|
49 |
*/
|
|
50 |
~DISIIf();
|
|
51 |
|
|
52 |
// From MIsiIf start
|
|
53 |
|
|
54 |
/*
|
|
55 |
* See comments from MISIIf
|
|
56 |
*/
|
|
57 |
TDes8& AllocateMsgBlock( const TUint16 aSize );
|
|
58 |
|
|
59 |
/*
|
|
60 |
* See comments from MISIIf
|
|
61 |
*/
|
|
62 |
void DeallocateMsgBlock( TDes8& aMsgBlock );
|
|
63 |
|
|
64 |
/*
|
|
65 |
* See comments from MISIIf
|
|
66 |
*/
|
|
67 |
void Receive( TRequestStatus& aRxStatus, TDes8*& aRxMsg, const TDfc& aRxCompletedDfc );
|
|
68 |
|
|
69 |
/*
|
|
70 |
* See comments from MISIIf
|
|
71 |
*/
|
|
72 |
void ReceiveCancel();
|
|
73 |
|
|
74 |
/*
|
|
75 |
* See comments from MISIIf
|
|
76 |
*/
|
|
77 |
void Release();
|
|
78 |
|
|
79 |
/*
|
|
80 |
* See comments from MISIIf
|
|
81 |
*/
|
|
82 |
TInt Send( const TDesC8& aTxMsg );
|
|
83 |
|
|
84 |
// From MIsiIf end
|
|
85 |
|
|
86 |
private:
|
|
87 |
|
|
88 |
/**
|
|
89 |
* Private constructor.
|
|
90 |
* One reason for this is class size BC.
|
|
91 |
*/
|
|
92 |
DISIIf( const TInt32 aUID3, TUint8& aObjId );
|
|
93 |
|
|
94 |
private:
|
|
95 |
|
|
96 |
// Owned
|
|
97 |
// Kernel channel dedicated for this.
|
|
98 |
// Synchronization done in kernel channel.
|
|
99 |
DISIKernelChannel* iKernelChannel;
|
|
100 |
|
|
101 |
};
|
|
102 |
|
|
103 |
#endif // __ISIIFKERNEL_H__
|
|
104 |
|
|
105 |
// End of File.
|