satengine/SatServer/inc/MSatEventMonitorContainer.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-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:  API for container of event monitors
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MSATEVENTMONITORCONTAINER_H
       
    21 #define MSATEVENTMONITORCONTAINER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <etelsat.h>
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Interface for observing events.
       
    30 *
       
    31 *  @lib SatEngine
       
    32 *  @since Series 60 3.0
       
    33 */
       
    34 class MSatEventMonitorContainer
       
    35     {
       
    36     protected: // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * C++ default constructor.
       
    40         */
       
    41         MSatEventMonitorContainer() {};
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~MSatEventMonitorContainer() {};
       
    47 
       
    48     public: // New functions
       
    49 
       
    50         /**
       
    51         * Updates monitors state.
       
    52         * @param aEvents Events that should be monitored.
       
    53         * @return KErrNone if all goes OK
       
    54         */
       
    55         virtual TInt SetUpEventMonitors( TUint aEvents ) = 0;
       
    56 
       
    57         /**
       
    58         * Cancels all monitors.
       
    59         * @return KErrNone if all goes OK
       
    60         */
       
    61         virtual TInt CancelAllMonitors() = 0;
       
    62 
       
    63         /**
       
    64         * Solves language code.
       
    65         * @param aLanguageId Resolved language ID
       
    66         */
       
    67         virtual void LanguageSettingL( TInt& aLanguageId ) = 0;
       
    68 
       
    69         /**
       
    70         * Gets the ISO639 language code.
       
    71         * @param aId Language ID
       
    72         * @param aText Language code can be read from this after function call.
       
    73         */
       
    74         virtual void GetLanguageString( const TInt aId, TDes& aText ) = 0;
       
    75 
       
    76     private:
       
    77 
       
    78         // Prohibit copy constructor if not deriving from CBase.
       
    79         MSatEventMonitorContainer( const MSatEventMonitorContainer& );
       
    80 
       
    81         // Prohibit assigment operator if not deriving from CBase.
       
    82         MSatEventMonitorContainer& operator=( const MSatEventMonitorContainer& );
       
    83 
       
    84     };
       
    85 
       
    86 #endif      // MSATEVENTMONITORCONTAINER_H
       
    87 
       
    88 // End of File