voiceui/voiceuivoicerecognition/inc/vuicprecheckstate.h
branchRCL_3
changeset 19 e36f3802f733
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VUICPRECHECKSTATE_H
       
    20 #define VUICPRECHECKSTATE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "vuicstate.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 * COMMENT
       
    30 */
       
    31 NONSHARABLE_CLASS( CPrecheckState ) : public CState
       
    32 {
       
    33     public:     // Constructors and destructor
       
    34 
       
    35         /**
       
    36         * Symbian two-phased constructor.
       
    37         */
       
    38         static CPrecheckState* NewL( CDataStorage& aDataStorage, CUiModel& aUiModel );
       
    39 
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         virtual ~CPrecheckState();
       
    44                                 
       
    45     public:     // New functions
       
    46         
       
    47         /**
       
    48         * Handles received event
       
    49         * @param Event to be handled
       
    50         */
       
    51         virtual void HandleEventL( TInt aEvent );
       
    52         
       
    53         /**
       
    54         * Executes the state functionality
       
    55         */
       
    56         virtual void ExecuteL();
       
    57          
       
    58     protected:  // New functions
       
    59         
       
    60         /**
       
    61         * C++ default constructor.
       
    62         */
       
    63         CPrecheckState( CDataStorage& aDataStorage, CUiModel& aUiModel );
       
    64 
       
    65     private:    // Functions
       
    66             
       
    67         /**
       
    68         * Checks auto lock value
       
    69         * @return Auto lock value or KErrNotFound
       
    70         */
       
    71         TInt GetAutoLockValue();
       
    72         
       
    73         /**
       
    74         * Checks if call is active
       
    75         * @return Call state or KErrNotFound
       
    76         */
       
    77         TInt CheckCallState();
       
    78         
       
    79         /**
       
    80         * Checks if video call is active
       
    81         * @return ETrue if video call else EFalse
       
    82         */
       
    83         TBool IsVideoCall();
       
    84         
       
    85         /**
       
    86         * Checks if "lockphone" dialog is active
       
    87         * @return ETrue if lockphone dialog else EFalse
       
    88         */
       
    89         TBool IsLockPhoneDialogL();
       
    90                 
       
    91     private:    // Data
       
    92 
       
    93 };
       
    94 
       
    95 #endif  // VUICPRECHECKSTATE_H
       
    96 
       
    97 // End of File