tracesrv/tracecore/btrace_handler/inc/TraceCoreMediaIfCallback.h
changeset 56 aa2539c91954
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Callback interface for incoming messages from media interface
       
    15 //
       
    16 
       
    17 #ifndef __TRACECOREMEDIAIFCALLBACK_H__
       
    18 #define __TRACECOREMEDIAIFCALLBACK_H__
       
    19 
       
    20 // Forward declarations
       
    21 class TTraceMessage;
       
    22 class DTraceCoreMediaIf;
       
    23 
       
    24 /**
       
    25  * Callback interface for incoming messages from media interface
       
    26  */
       
    27 NONSHARABLE_CLASS( MTraceCoreMediaIfCallback )
       
    28     {
       
    29 public:
       
    30 
       
    31     /**
       
    32      * Message was received
       
    33      * 
       
    34      * @param aMsg The message that was received
       
    35      * @return KErrNotFound if the message id was not found (not subscribed), KErrNone if found
       
    36      */
       
    37     virtual TInt MessageReceived( TTraceMessage &aMsg ) = 0;
       
    38     
       
    39     /**
       
    40      * Set sender media
       
    41      * 
       
    42      * @param aSenderMedia Pointer to the new sender
       
    43      * @return KErrNone if media change ok
       
    44      */
       
    45     virtual TInt SetSenderMedia( DTraceCoreMediaIf* aSenderMedia ) = 0;
       
    46     };
       
    47 
       
    48 #endif
       
    49 
       
    50 // End of File