1 /* |
|
2 * Copyright (c) 2002-2005 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 "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: Declaration of DIscMainRcvBuffer class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef DISCMAINRCVBUFFER_H |
|
22 #define DISCMAINRCVBUFFER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <kernel.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 |
|
37 // CLASS DECLARATION |
|
38 class DIscDevice; |
|
39 class DIscQueue; |
|
40 |
|
41 /** |
|
42 * First place to store incoming messages from Domestic OS |
|
43 * |
|
44 * @lib IscDriver.LIB |
|
45 * @since 2.8 |
|
46 */ |
|
47 class DIscMainRcvBuffer//: public CBase |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * C++ default constructor. |
|
53 */ |
|
54 DIscMainRcvBuffer( DIscDevice* aDevice, TUint16 aIscMainRcvBufferQueueSize ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~DIscMainRcvBuffer(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 /** |
|
64 * Second-phase constructor. Should be called to complete construction. |
|
65 * @since 2.8 |
|
66 * @return void |
|
67 */ |
|
68 void DoCreate(); |
|
69 |
|
70 /** |
|
71 * Function that should be called to store incoming frame |
|
72 * @since 2.8 |
|
73 * @param TDesC8* aData pointer to frame |
|
74 * @return void |
|
75 */ |
|
76 static void MsgReceive( TDesC8* aData ); |
|
77 |
|
78 /** |
|
79 * Function for adding Dfc. Can be called from any context. |
|
80 * @since 2.8 |
|
81 * @return void |
|
82 */ |
|
83 void AddDfc(); |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * Function that goes through messages in main buffer |
|
89 * and empties those to correct channel buffers |
|
90 * @since 2.8 |
|
91 * @param TAny* aPtr pointer to DIscMainRcvBuffer |
|
92 * @return static void |
|
93 */ |
|
94 static void BufferCleanUp( TAny* aPtr ); |
|
95 |
|
96 private: // Data |
|
97 |
|
98 DIscDevice* iDevice; |
|
99 TDfc* iDfc; |
|
100 static DIscMainRcvBuffer* iThisPointer; |
|
101 TUint16 iIscMainRcvBufferQueueSize; |
|
102 TUint32** iMainRcvBuffer; |
|
103 DIscQueue* iMainRcvBufferQueue; |
|
104 |
|
105 }; |
|
106 |
|
107 #endif // DISCMAINRCVBUFFER_H |
|
108 |
|
109 // End of File |
|