localconnectivityservice/dun/utils/inc/DunDownstream.h
branchRCL_3
changeset 38 3dcb815346df
parent 15 c47ebe2ac36c
equal deleted inserted replaced
37:7e0ecb5b116a 38:3dcb815346df
    71 
    71 
    72     /**
    72     /**
    73      * Gets called when outside party wants to push data to the existing stream
    73      * Gets called when outside party wants to push data to the existing stream
    74      *
    74      *
    75      * @since S60 5.0
    75      * @since S60 5.0
    76      * @param aPushedData Data to push to the stream (not copied)
    76      * @param aDataToPush Data to push to the stream (not copied)
    77      * @param aCallback Callback to call when data is processed by the stream
    77      * @param aCallback Callback to call when data is processed by the stream
    78      * @return Symbian error code on error, KErrNone otherwise
    78      * @return Symbian error code on error, KErrNone otherwise
    79      */
    79      */
    80     virtual TInt NotifyDataPushRequest(
    80     virtual TInt NotifyDataPushRequest(
    81         const TDesC8 *aPushedData,
    81         const TDesC8* aDataToPush,
    82         MDunCompletionReporter* aCallback ) = 0;
    82         MDunCompletionReporter* aCallback ) = 0;
       
    83 
       
    84     /**
       
    85      * Checks if data is in queue
       
    86      *
       
    87      * @since TB9.2
       
    88      * @param aDataToPush Data to check
       
    89      * @return ETrue if data is in queue, EFalse otherwise
       
    90      */
       
    91     virtual TBool IsDataInQueue( const TDesC8 *aDataToPush ) = 0;
    83 
    92 
    84     };
    93     };
    85 
    94 
    86 /**
    95 /**
    87  *  Class for data transmission of one "stream" from network to local media
    96  *  Class for data transmission of one "stream" from network to local media
   144      * @return Symbian error code on error, KErrNone otherwise
   153      * @return Symbian error code on error, KErrNone otherwise
   145      */
   154      */
   146     TInt InitializeForDataPushing( MDunAtCmdHandler* aAtCmdHandler );
   155     TInt InitializeForDataPushing( MDunAtCmdHandler* aAtCmdHandler );
   147 
   156 
   148     /**
   157     /**
       
   158      * Checks if data is in queue
       
   159      *
       
   160      * @since TB9.2
       
   161      * @param aDataToPush Data to check
       
   162      * @return ETrue if data is in queue, EFalse otherwise
       
   163      */
       
   164     TBool IsDataInQueue( const TDesC8* aDataToPush );
       
   165 
       
   166     /**
   149      * Adds data to event queue and starts sending if needed
   167      * Adds data to event queue and starts sending if needed
   150      *
   168      *
   151      * @since S60 5.0
   169      * @since S60 5.0
   152      * @param aPushedData Data to push to the stream (not copied)
   170      * @param aDataToPush Data to push to the stream (not copied)
   153      * @param aCallback Callback to call when data is processed by the stream
   171      * @param aCallback Callback to call when data is processed by the stream
   154      * @return Symbian error code on error, KErrNone otherwise
   172      * @return Symbian error code on error, KErrNone otherwise
   155      */
   173      */
   156     TInt AddToQueueAndSend( const TDesC8 *aPushedData,
   174     TInt AddToQueueAndSend( const TDesC8* aDataToPush,
   157                             MDunCompletionReporter* aCallback );
   175                             MDunCompletionReporter* aCallback );
   158 
   176 
   159 private:
   177 private:
   160 
   178 
   161     CDunDownstream( MDunTransporterUtilityAux* aUtility );
   179     CDunDownstream( MDunTransporterUtilityAux* aUtility );
   202 
   220 
   203     /**
   221     /**
   204      * Gets called when outside party wants to push data to the existing stream
   222      * Gets called when outside party wants to push data to the existing stream
   205      *
   223      *
   206      * @since S60 3.2
   224      * @since S60 3.2
   207      * @param aPushedData Data to push to the stream (not copied)
   225      * @param aDataToPush Data to push to the stream (not copied)
   208      * @param aCallback Callback to call when data is processed by the stream
   226      * @param aCallback Callback to call when data is processed by the stream
   209      * @return Symbian error code on error, KErrNone otherwise
   227      * @return Symbian error code on error, KErrNone otherwise
   210      */
   228      */
   211     TInt NotifyDataPushRequest( const TDesC8 *aPushedData,
   229     TInt NotifyDataPushRequest( const TDesC8* aDataToPush,
   212                                 MDunCompletionReporter* aCallback );
   230                                 MDunCompletionReporter* aCallback );
   213 
   231 
   214 // from base class MDunCompletionReporter
   232 // from base class MDunCompletionReporter
   215 
   233 
   216     /**
   234     /**