satengine/SatServer/inc/MSatSystemState.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-2008 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:  Accessor for system states.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MSATSYSTEMSTATE_H
       
    21 #define MSATSYSTEMSTATE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <etelmm.h>
       
    26 #include <etelsat.h>
       
    27 #include <PSVariables.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Accessors for system state.
       
    33 *
       
    34 *  @lib SatSystemState.lib
       
    35 *  @since Series 60 3.0
       
    36 */
       
    37 class MSatSystemState
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /*
       
    42         * Destructor.
       
    43         */
       
    44         virtual ~MSatSystemState() {};
       
    45 
       
    46     public: // New functions
       
    47 
       
    48         /**
       
    49         * Getter for NetworkRegistrationStatus
       
    50         * @return Network registration status.
       
    51         */
       
    52         virtual RMobilePhone::TMobilePhoneRegistrationStatus
       
    53             GetNetworkRegistrationStatus() = 0;
       
    54 
       
    55         /**
       
    56         * Checks is call active.
       
    57         * @return ETrue if call is currently active.
       
    58         */
       
    59         virtual TBool IsCallActive() = 0;
       
    60 
       
    61         /**
       
    62         * Checks is call incoming.
       
    63         * @return ETrue if call is incoming.
       
    64         */
       
    65         virtual TBool IsCallIncoming() = 0;
       
    66 
       
    67         /**
       
    68         * Gets the Service Center Address number.
       
    69         * @return SCA number.
       
    70         */
       
    71         virtual const TDesC& SCANumber() = 0;
       
    72 
       
    73         /**
       
    74         * Checks whether the phone is in silent mode.
       
    75         * @return Silent mode activated state.
       
    76         */
       
    77         virtual TBool IsSilentMode() = 0;
       
    78 
       
    79         /**
       
    80         * Checks whether the phone is in idle state.
       
    81         * @return ETrue if phone is in idle mode.
       
    82         */
       
    83         virtual TBool IsPhoneInIdleStateL() = 0;
       
    84         
       
    85         /**
       
    86         * Checks whether the screen saver is actived from idle.
       
    87         * @return ETrue if screen saver is actived from idle.
       
    88         */        
       
    89         virtual TBool IsScreenSaverActivedFromIdle() = 0;
       
    90 
       
    91         /**
       
    92         * Sets time between language selection and reboot.
       
    93         * @param aTime Time before reboot.
       
    94         * @return KErrNone if time is set successfully.
       
    95         */
       
    96         virtual TInt WriteLanguageSelectionTime(
       
    97             TInt aTime ) = 0;
       
    98 
       
    99         /**
       
   100         * Puts proactive Idle Mode Text command data to shared data
       
   101         * @param aString Idle mode text string
       
   102         * @param aIconId Idle mode text icon ID
       
   103         * @param aIconQualifier Idle mode text icon qualifier
       
   104         * @return KErrNone if setting data is OK
       
   105         */
       
   106         virtual TInt WriteSetIdleModeText(
       
   107             const TDesC& aString,
       
   108             TInt aIconId,
       
   109             RSat::TIconQualifier aIconQualifier ) = 0;
       
   110 
       
   111         /**
       
   112         * Checks is backup / restore process ongoing.
       
   113         * @return TBool indicating is process ongoing or not.
       
   114         */
       
   115         virtual TBool IsBackupProcessOngoing() = 0;
       
   116 
       
   117         /**
       
   118         * Checks is ConfirmSatOperations on.
       
   119         * @return TBool indicating is confirmation on or off.
       
   120         */
       
   121         virtual TBool IsConfirmSatOperationsOn() = 0;
       
   122 
       
   123         /**
       
   124         * Gets the display language from CentRep and returns it.
       
   125         * @return ID indicating the selected language.
       
   126         */
       
   127         virtual TInt DisplayTextLanguage() = 0;
       
   128 
       
   129         /**
       
   130         * Checks is Bluetooth SIM Access Profile active
       
   131         * @return ETrue if BT SAP is active
       
   132         */
       
   133         virtual TBool IsBtSapActive() = 0;
       
   134         
       
   135         /**
       
   136         * Checks are phone warnings and game tones on.
       
   137         * @return TBool indicating wether phone are warnings and game tone on.
       
   138         */
       
   139         virtual TBool IsWarningAndGameTonesOn() = 0;
       
   140 
       
   141     protected:
       
   142 
       
   143         /**
       
   144         * Constructor.
       
   145         */
       
   146         MSatSystemState() {};
       
   147 
       
   148         // Prohibit copy constructor if not deriving from CBase.
       
   149         MSatSystemState( const MSatSystemState& );
       
   150 
       
   151         // Prohibit assigment operator if not deriving from CBase.
       
   152         MSatSystemState& operator=( const MSatSystemState& );
       
   153 
       
   154     };
       
   155 
       
   156 #endif      // MSATSYSTEMSTATE_H
       
   157 
       
   158 // End of File