multimediacommscontroller/mmccsubcontroller/inc/mccmsrpconnobserver.h
branchrcs
changeset 49 64c62431ac08
child 50 1d8943dd8be6
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2006 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:    Provides DTMF support
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MMSRPCONNECTIONOBSERVER_H
       
    19 #define MMSRPCONNECTIONOBSERVER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 /**
       
    24 *  callback function for received msrp packets. 
       
    25 *
       
    26 *  @lib mccmsrpsourcesink.dll
       
    27 */
       
    28 class MMsrpConnectionObserver
       
    29 {
       
    30 public :
       
    31 
       
    32         /**
       
    33          * When ConnectL function is used to establish a connection to remote
       
    34          * user, this is used to return the connection status. After ConnectL
       
    35          * the client must wait for this callback before sending or listening
       
    36          * messages. This is called also if the SendMessageL method is called
       
    37          * directly before establishing a connection
       
    38          * @param aStatus system-wide error code
       
    39          */
       
    40         virtual void ConnectStatus( TInt aStatus ) = 0;
       
    41         
       
    42         /* Notifies that the entire file has been sent successfully */
       
    43         virtual void SendFileNotification(TBool aStatus) = 0 ;
       
    44                 
       
    45         /* Notifies that the entire file has been received successfully */
       
    46         virtual void ReceiveFileNotification(TBool status) = 0;
       
    47         /**
       
    48         * File data transfer progress. returns the progress of data transfer
       
    49         * @param aTransferred number of bytes transferred
       
    50         * @param aTotal Total amount of bytes to be transferred
       
    51         */
       
    52        // virtual void FileSendProgress( TInt aTransferred, TInt aTotal ) = 0 ;
       
    53 
       
    54         /**
       
    55         * File receive progress, number of bytes received from incoming data
       
    56         * @param aReceived number of bytes received
       
    57         * @param aTotal Total amount of bytes to be received
       
    58         */
       
    59        // virtual void FileReceiveProgress( TInt aReceived, TInt aTotal ) = 0;
       
    60 
       
    61 };
       
    62 
       
    63 #endif MMSRPCONNECTIONOBSERVER.H