connectivitylayer/isce/isaaccessextension_dll/inc/internalapi.h
changeset 9 8486d82aef45
parent 7 fa67e03b87df
equal deleted inserted replaced
8:6295dc2169f3 9:8486d82aef45
    45 #include "../../isirouter_dll/inc/misiobjectrouterif.h"
    45 #include "../../isirouter_dll/inc/misiobjectrouterif.h"
    46 #include "../../isirouter_dll/inc/misirouterobjectif.h"
    46 #include "../../isirouter_dll/inc/misirouterobjectif.h"
    47 
    47 
    48 // abstract interface for both channels user & kernel 
    48 // abstract interface for both channels user & kernel 
    49 // called by extension, provided by extension
    49 // called by extension, provided by extension
    50 class MIAD2ChannelApi : public MISIRouterObjectIf
    50 class MIAD2ChannelApi    {
    51     {
       
    52     
    51     
    53     public:
    52     public:
    54 
    53 
    55     /*
    54     /*
    56     * Complete async request with given params.
    55     * Complete async request with given params.
   110 
   109 
   111 // abstract inteface for LDD to access Extension services
   110 // abstract inteface for LDD to access Extension services
   112 // *called by LDD
   111 // *called by LDD
   113 // *provided from extension
   112 // *provided from extension
   114 // *must take care of syncronization, LDD and kernel channels using this
   113 // *must take care of syncronization, LDD and kernel channels using this
   115 class MChannel2IADApi : public MISIObjectRouterIf
   114 class MChannel2IADApi    {
   116     {
       
   117 
   115 
   118     public:
   116     public:
   119 
   117 
   120     /*
   118     /*
   121     * Allocate a block. Descriptors length is set to aSize, but MaxLength can
   119     * Allocate a block. Descriptors length is set to aSize, but MaxLength can
   151     * @param const TUint16 aCh, sender channels id.
   149     * @param const TUint16 aCh, sender channels id.
   152     * @return TInt, KErrNone if send succesfull.
   150     * @return TInt, KErrNone if send succesfull.
   153     */
   151     */
   154     virtual TInt SendIndication( TDes8& aMessage, const TUint16 aCh ) = 0;
   152     virtual TInt SendIndication( TDes8& aMessage, const TUint16 aCh ) = 0;
   155 
   153 
   156 #if (NCP_COMMON_SOS_VERSION_SUPPORT >= SOS_VERSION_95)
       
   157     virtual TInt Loan( const TUint16 aChannel, const TUint16 aRequest,
   154     virtual TInt Loan( const TUint16 aChannel, const TUint16 aRequest,
   158                        MIAD2ChannelApi* aCallback ) = 0;
   155                        MIAD2ChannelApi* aCallback ) = 0;
   159 
   156 
   160     virtual TInt ReturnLoan( const TUint16 aChannel, const TUint16 aRequest,
   157     virtual TInt ReturnLoan( const TUint16 aChannel, const TUint16 aRequest,
   161                              MIAD2ChannelApi* aCallback ) = 0;
   158                              MIAD2ChannelApi* aCallback ) = 0;
   162 #endif
       
   163 
   159 
   164     };
   160     };
   165 
   161 
   166 #endif // MCHANNEL2IADAPI_H
   162 #endif // MCHANNEL2IADAPI_H
   167 
   163