equal
deleted
inserted
replaced
20 #ifndef __ISIUSERCHANNEL_H__ |
20 #ifndef __ISIUSERCHANNEL_H__ |
21 #define __ISIUSERCHANNEL_H__ |
21 #define __ISIUSERCHANNEL_H__ |
22 |
22 |
23 // Includes |
23 // Includes |
24 #include <kernel.h> // For DLogicalChannel |
24 #include <kernel.h> // For DLogicalChannel |
25 #include "misirouterchannelif.h" // For MISIRouterChannelIf |
25 #include "misirouterobjectif.h" // For MISIRouterObjectIf |
26 #include "isiinternaldefs.h" // For TISIAsyncRequest |
26 #include "isiinternaldefs.h" // For TISIAsyncRequest |
27 |
27 |
28 // Forward declaration |
28 // Forward declaration |
29 class DISIMsgQueue; |
29 class DISIMsgQueue; |
30 class MISIChannelRouterIf; |
30 class MISIObjectRouterIf; |
31 |
31 |
32 /** |
32 /** |
33 * Provides channel for user side ISI API |
33 * Provides channel for user side ISI API |
34 */ |
34 */ |
35 NONSHARABLE_CLASS( DISIUserChannel ) : public DLogicalChannel, public MISIRouterChannelIf |
35 NONSHARABLE_CLASS( DISIUserChannel ) : public DLogicalChannel, public MISIRouterObjectIf |
36 { |
36 { |
37 |
37 |
38 public: |
38 public: |
39 |
39 |
40 /** |
40 /** |
72 */ |
72 */ |
73 TInt Request( TInt aReqNo, TAny* a1, TAny* a2 ); |
73 TInt Request( TInt aReqNo, TAny* a1, TAny* a2 ); |
74 |
74 |
75 ///// Functions from base class DLogicalChannel end |
75 ///// Functions from base class DLogicalChannel end |
76 |
76 |
77 ///// Functions from MISIRouterChannelIf start |
77 ///// Functions from MISIRouterObjectIf start |
78 |
78 |
79 /** |
79 /** |
80 * See comments from MISIRouterChannelIf. |
80 * See comments from MISIRouterObjectIf. |
81 */ |
81 */ |
82 void EnqueChannelRequestCompleteDfc( TInt aRequest, TInt aStatusToComplete ); |
82 void EnqueChannelRequestCompleteDfc( TInt aRequest, TInt aStatusToComplete ); |
83 |
83 |
84 /* |
84 /* |
85 * See comments from MISIRouterChannelIf. |
85 * See comments from MISIRouterObjectIf. |
86 */ |
86 */ |
87 void ReceiveMsg( const TDesC8& aMessage ); |
87 void Receive( const TDesC8& aMessage ); |
88 |
88 |
89 ///// Functions from MISIRouterChannelIf end |
89 ///// Functions from MISIRouterObjectIf end |
90 |
90 |
91 private: |
91 private: |
92 |
92 |
93 /* |
93 /* |
94 * Handling of all requests. |
94 * Handling of all requests. |
204 private: |
204 private: |
205 |
205 |
206 // Not owned, no need to guard open/close in one thread in construction and desctruction. |
206 // Not owned, no need to guard open/close in one thread in construction and desctruction. |
207 DThread* iThread; |
207 DThread* iThread; |
208 // Not owned, no need to guard only written in one thread in construction and desctruction. |
208 // Not owned, no need to guard only written in one thread in construction and desctruction. |
209 MISIChannelRouterIf* iRouterIf; |
209 MISIObjectRouterIf* iRouterIf; |
210 // Pointers to client message buffer, not owned |
210 // Pointers to client message buffer, not owned |
211 TAny* iReceiveBufPtr; |
211 TAny* iReceiveBufPtr; |
212 // not owned |
212 // not owned |
213 TUint16* iNeededBufLen; |
213 TUint16* iNeededBufLen; |
214 // Owned, synchronized internally with fastmutexes. |
214 // Owned, synchronized internally with fastmutexes. |