multimediacommsengine/mmcesrv/mmcemediamanager/inc/mcemediaobserver.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMCEMEDIAOBSERVER_H
       
    22 #define MMCEMEDIAOBSERVER_H
       
    23 
       
    24 #include <e32std.h>  
       
    25 
       
    26 class CMceComSession;
       
    27 class TMceMccComEvent;
       
    28 
       
    29 /**
       
    30  * @lib 
       
    31  */
       
    32 class MMceMediaSessionObserver
       
    33     {
       
    34     public://new
       
    35 
       
    36         /**
       
    37         * Callback function to indicate that media has been updated
       
    38         * based on UpdateL request
       
    39         * @param aSession, media session
       
    40         */
       
    41         virtual void Updated( CMceComSession& aSession ) = 0;
       
    42 
       
    43         /**
       
    44         * Callback function to indicate that network resources have 
       
    45         * been reserved based on ReserveL request
       
    46         * @param aSession, media session
       
    47         */
       
    48         virtual void Reserved( CMceComSession& aSession ) = 0;
       
    49         
       
    50         /**
       
    51         * Callback function to indicate that event has been received
       
    52         * @param aEvent, received event
       
    53         */
       
    54         virtual void EventReceived( TMceMccComEvent& aEvent ) = 0;
       
    55 
       
    56         /**
       
    57         * Callback function to indicate that media session was stopped
       
    58         * @param aSession, media session
       
    59         */
       
    60         virtual void SessionClosed( CMceComSession& aSession ) = 0;
       
    61 
       
    62         /**
       
    63         * Callback function to indicate about new media session due fork
       
    64         * @param aSession, new session, onwership is been transfered
       
    65         */
       
    66         virtual void SessionCreatedL ( CMceComSession* aSession ) = 0;
       
    67         
       
    68         /**
       
    69         * Callback function to indicate about error
       
    70         * @param aEvent, received event
       
    71         */
       
    72         virtual void MediaError ( TMceMccComEvent& aEvent ) = 0;
       
    73         
       
    74         
       
    75         
       
    76     
       
    77     };
       
    78 
       
    79 class MMceMediaGeneralObserver
       
    80     {
       
    81     public:
       
    82     
       
    83         /**
       
    84         * Callback function to indicate about error
       
    85         * @since Series 60 3.0
       
    86         * @param aError, error occured   
       
    87         * @return void
       
    88         */
       
    89         virtual void MediaError ( TInt aError ) = 0;
       
    90     };
       
    91     
       
    92 #endif