satengine/SatServer/Engine/inc/csatmediatoreventprovider.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2005-2007 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 events to mediator event consumer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CSATMEDIATOREVENTPROVIDER_H
       
    21 #define C_CSATMEDIATOREVENTPROVIDER_H
       
    22 
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 #include "msatmediatoreventprovider.h"
       
    27 
       
    28 class CMediatorEventProvider;
       
    29 
       
    30 /**
       
    31  *  Mediator event provider
       
    32  *
       
    33  *  Provides SAT mediator events to mediator event consumer ( CoverUi )
       
    34  *
       
    35  *  @lib SatEngine
       
    36  *  @since S60 v3.1
       
    37  */
       
    38 class CSatMediatorEventProvider : public CBase,
       
    39                                   public MSatMediatorEventProvider
       
    40     {
       
    41 public:  
       
    42 
       
    43     static CSatMediatorEventProvider* NewL();
       
    44 
       
    45     virtual ~CSatMediatorEventProvider();
       
    46 
       
    47 // from base class MSatMediatorEventProvider
       
    48 
       
    49     /**
       
    50      * From MSatMediatorEventProvider.
       
    51      * Raises SAT mediator event 
       
    52      *
       
    53      * @since S60 v3.1
       
    54      * @param const TDesC8& ontains packaged data to mediator event consumer
       
    55      */
       
    56     TInt RaiseSatEvent( const TDesC8& aData );
       
    57 
       
    58     /**
       
    59      * From MSatMediatorEventProvider.
       
    60      * Checks if Cover UI is supported by SAT
       
    61      *
       
    62      * @since S60 v3.1
       
    63      * @return ETrue if Cover UI is supported
       
    64      */        
       
    65     TBool CoverUiSupported();
       
    66 
       
    67 private:
       
    68 
       
    69     CSatMediatorEventProvider();
       
    70 
       
    71     void ConstructL();
       
    72         
       
    73     /**
       
    74      * Internal check for Cover Ui support
       
    75      * Checks if Cover UI is supported by SAT and stores the result 
       
    76      *
       
    77      * @since S60 v3.1
       
    78      */
       
    79     void CUiSupportedL();
       
    80 
       
    81 private: // data
       
    82     
       
    83     /**
       
    84      * are mediator events registered
       
    85      */
       
    86     TBool iRegistered;
       
    87     
       
    88     /**
       
    89      * is cover UI supported
       
    90      */
       
    91     TBool iCoverUiSupported;
       
    92     
       
    93     /**
       
    94      * pointer to Mediator client
       
    95      * Own.
       
    96      */    
       
    97     CMediatorEventProvider* iEventProvider;
       
    98         
       
    99     };
       
   100 #endif // C_CSATMEDIATOREVENTPROVIDER_H