phoneengine/phonemodel/inc/mpemediator.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Mediator interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPEMEDIATOR_H
       
    19 #define MPEMEDIATOR_H
       
    20 
       
    21 #include <e32std.h>
       
    22 
       
    23 /**
       
    24  *  Mediator interface
       
    25  *
       
    26  *  @lib PhoneModel.lib
       
    27  *  @since S60 5.1
       
    28  */
       
    29 NONSHARABLE_CLASS( MPEMediator )
       
    30     {
       
    31 
       
    32 public:
       
    33     
       
    34     /**
       
    35      * Sends response to mediator command.
       
    36      * 
       
    37      * @param aCategory Command category
       
    38      * @param aCommandId Id of the command
       
    39      * @param aData Data to be sent.
       
    40      */
       
    41     virtual void SendResponse( 
       
    42         TUid aCategory, 
       
    43         TInt aCommandId, 
       
    44         const TDesC8& aData ) = 0;
       
    45     
       
    46     /**
       
    47      * Raises mediator event.
       
    48      * 
       
    49      * @param aCategory Event category
       
    50      * @param aEventId Id of the event
       
    51      * @param aData Data to be sent.
       
    52      */
       
    53     virtual void RaiseEvent( 
       
    54         TUid aCategory, 
       
    55         TInt aEventId,
       
    56         const TDesC8& aData ) = 0;
       
    57 
       
    58     };
       
    59 
       
    60 
       
    61 #endif // MPEMEDIATOR_H