connectivitylayer/isce/isirouter_dll/inc/isikernelchannel.h
changeset 9 8486d82aef45
parent 0 63b37f68c1ce
equal deleted inserted replaced
8:6295dc2169f3 9:8486d82aef45
    21 #define __ISIKERNELCHANNEL_H__
    21 #define __ISIKERNELCHANNEL_H__
    22 
    22 
    23 #include <e32def.h>                 // For TInt, TAny
    23 #include <e32def.h>                 // For TInt, TAny
    24 #include <e32cmn.h>                 // For TDesC8
    24 #include <e32cmn.h>                 // For TDesC8
    25 #include <kernel.h>                 // For TMessageQue
    25 #include <kernel.h>                 // For TMessageQue
    26 #include "misirouterchannelif.h"    // For MISIRouterChannelIf
    26 #include "misirouterobjectif.h"    // For MISIRouterObjectIf
    27 #include "isiinternaldefs.h"        // For TISIAsyncRequest
    27 #include "isiinternaldefs.h"        // For TISIAsyncRequest
    28 
    28 
    29 
    29 
    30 // Forward declarations
    30 // Forward declarations
    31 class DISIMsgQueue;
    31 class DISIMsgQueue;
    32 class MISIChannelRouterIf;
    32 class MISIObjectRouterIf;
    33 
    33 
    34 /*
    34 /*
    35 * Kernel side ISI channel.
    35 * Kernel side ISI channel.
    36 */
    36 */
    37 NONSHARABLE_CLASS( DISIKernelChannel ) : public DBase, public MISIRouterChannelIf
    37 NONSHARABLE_CLASS( DISIKernelChannel ) : public DBase, public MISIRouterObjectIf
    38     {
    38     {
    39 
    39 
    40     public:
    40     public:
    41 
    41 
    42         /*
    42         /*
    55         * @param aMsg, thread message
    55         * @param aMsg, thread message
    56         * @return, return value of the operation.
    56         * @return, return value of the operation.
    57         */
    57         */
    58         TInt HandleRequest( TThreadMessage& aMsg );
    58         TInt HandleRequest( TThreadMessage& aMsg );
    59 
    59 
    60         // From MISIRouterChannelIf start
    60         // From MISIRouterObjectIf start
    61         
    61         
    62         /*
    62         /*
    63         * See comments from MISIRouterChannelIf.
    63         * See comments from MISIRouterObjectIf.
    64         */
    64         */
    65         void ReceiveMsg( const TDesC8& aMessage );
    65         void Receive( const TDesC8& aMessage );
    66 
    66 
    67         /*
    67         /*
    68         * See comments from MISIRouterChannelIf.
    68         * See comments from MISIRouterObjectIf.
    69         */
    69         */
    70         void EnqueChannelRequestCompleteDfc( TInt aRequest, TInt aStatusToComplete );
    70         void EnqueChannelRequestCompleteDfc( TInt aRequest, TInt aStatusToComplete );
    71         
    71         
    72         // From MISIRouterChannelIf end
    72         // From MISIRouterObjectIf end
    73 
    73 
    74         /*
    74         /*
    75         * iKernelChMsgQue callback function in p2p router
    75         * iKernelChMsgQue callback function in p2p router
    76         * thread context.
    76         * thread context.
    77         * @param aPtr, pointer to self
    77         * @param aPtr, pointer to self
   152         DISIKernelAsyncRequests*  iRequests;
   152         DISIKernelAsyncRequests*  iRequests;
   153         // Not owned, just using
   153         // Not owned, just using
   154         // Only acccessed from ISI Router thread.
   154         // Only acccessed from ISI Router thread.
   155         TMessageQue               iKernelChMsgQue;
   155         TMessageQue               iKernelChMsgQue;
   156         TDes8**                   iPtrPtrToRxBuf;
   156         TDes8**                   iPtrPtrToRxBuf;
   157         MISIChannelRouterIf*      iRouterIf;
   157         MISIObjectRouterIf*       iRouterIf;
   158         // Owned
   158         // Owned
   159         TDfc*                     iEmptyRxDfc;
   159         TDfc*                     iEmptyRxDfc;
   160         TDfcQue*                  iMainThread;
   160         TDfcQue*                  iMainThread;
   161         TDfcQue*                  iCompletionThread;
   161         TDfcQue*                  iCompletionThread;
   162         // Owned, synhronized internally with fastmutexes
   162         // Owned, synhronized internally with fastmutexes