javauis/mmapi_qt/audiostreaming/inc/mmmastreamrequestlistener.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Used to inform when CMMAStreamRequest completes
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MMMASTREAMREQUESTLISTENER_H
       
    19 #define MMMASTREAMREQUESTLISTENER_H
       
    20 
       
    21 
       
    22 //  INCLUDES
       
    23 class CMMAStreamRequest;
       
    24 
       
    25 /**
       
    26  * MMMAStreamRequestListener will be informed when CMMAStreamRequest is
       
    27  * completed.
       
    28  */
       
    29 NONSHARABLE_CLASS(MMMAStreamRequestListener)
       
    30 {
       
    31 public:
       
    32     /**
       
    33      * Called when when stream write request is completed.
       
    34      * @param aRequest request completed
       
    35      */
       
    36     virtual void WriteComplete(CMMAStreamRequest* aRequest) = 0;
       
    37 
       
    38     /**
       
    39      * Called when when stream read request is completed.
       
    40      * @param aRequest request completed
       
    41      */
       
    42     virtual void ReadComplete(CMMAStreamRequest* aRequest) = 0;
       
    43 
       
    44     /**
       
    45      * Called when when stream request is completed.
       
    46      * @param aError system error code
       
    47      */
       
    48     virtual void HandleError(CMMAStreamRequest* aRequest,
       
    49                              TInt aError) = 0;
       
    50 
       
    51 };
       
    52 
       
    53 #endif // MMMASTREAMREQUESTLISTENER_H