satengine/SatServer/inc/MSatSystemStateObserver.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:  Observer for system state changes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MSATSYSTEMSTATEOBSERVER_H
       
    21 #define MSATSYSTEMSTATEOBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Observer for system state changes.
       
    30 *
       
    31 *  @lib SatSystemState.lib
       
    32 *  @since Series 60 3.0
       
    33 */
       
    34 class MSatSystemStateObserver
       
    35     {
       
    36     public: // New functions
       
    37 
       
    38         /**
       
    39         * Notifies that system state changed.
       
    40         */
       
    41         virtual void StateChanged() {};
       
    42 
       
    43         /**
       
    44         * Notifies that system state changed.
       
    45         * @param aValue The new value that has changed.
       
    46         */
       
    47         virtual void StateChanged( const TInt /*aValue*/ ) {};
       
    48 
       
    49         /**
       
    50         * Notifies that system state changed.
       
    51         * @param aValue The new value that has changed.
       
    52         */
       
    53         virtual void StateChanged( const TReal& /*aValue*/ ) {};
       
    54 
       
    55         /**
       
    56         * Notifies that system state changed.
       
    57         * @param aValue The new value that has changed.
       
    58         */
       
    59         virtual void StateChanged( const TDesC8& /*aValue*/ ) {};
       
    60 
       
    61         /**
       
    62         * Notifies that system state changed.
       
    63         * @param aValue The new value that has changed.
       
    64         */
       
    65         virtual void StateChanged( const TDesC16& /*aValue*/ ) {};
       
    66 
       
    67     protected:  // New functions
       
    68 
       
    69         /**
       
    70         * Destructor.
       
    71         */
       
    72         virtual ~MSatSystemStateObserver() {};
       
    73 
       
    74         /**
       
    75         * C++ default constructor.
       
    76         */
       
    77         MSatSystemStateObserver() {};
       
    78 
       
    79     private:
       
    80 
       
    81         // Prohibit copy constructor if not deriving from CBase.
       
    82         MSatSystemStateObserver( const MSatSystemStateObserver& );
       
    83 
       
    84         // Prohibit assigment operator if not deriving from CBase.
       
    85         MSatSystemStateObserver& operator=( const MSatSystemStateObserver& );
       
    86 
       
    87     };
       
    88 
       
    89 #endif      // MSATSYSTEMSTATEOBSERVER_H
       
    90 
       
    91 // End of File