accessoryservices/pluggeddisplay/pluggeddisplayengine/inc/pdeconstants.h
changeset 0 4e1aa6a622a0
child 19 94cb00198351
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2  * Copyright (c) 2009 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  * Constant definitions for Plugged Display Engine's finite state 
       
    16  * machines.
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef PDECONSTANTS_H
       
    21 #define PDECONSTANTS_H
       
    22 
       
    23 // SYSTEM INCLUDE FILES
       
    24 #include <e32base.h>
       
    25 
       
    26 // USER INCLUDE FILES
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 /** Plugged Display Engine's FSM identifications. */
       
    33 enum TPDEFSMId
       
    34     {
       
    35     EPDEFSMIdHDMICableStatus = 0,
       
    36     EPDEFSMIdCompositeCableStatus,
       
    37     
       
    38     // Add new constants before this row.
       
    39     // Following constant is not a state.
       
    40     // It just indicates maximum index value.
       
    41     EPDEFSMIdFirstUnused,
       
    42     EPDEFSMIdNbrOfUsedIds = EPDEFSMIdFirstUnused,
       
    43     EPDEFSMIdUndefined = 0xff
       
    44     };
       
    45 
       
    46 /**  Constants for used external interfaces/APIs.  */
       
    47 enum TPDEInterface
       
    48     {
       
    49     // Interface ids
       
    50     EPDEIfUndefined = 0,
       
    51     EPDEIfTVOutConfig,
       
    52     EPDEIfEDIDHandler,
       
    53     EPDEIfAccessoryControl,
       
    54     EPDEIfAccessoryConnection,
       
    55     EPDEIfCentralRepositoryWatch,
       
    56     EPDEIfAsyCommandHandler,
       
    57     
       
    58     // TV Out Config interface's event ids    
       
    59     EIfTVOutConfigEventUndefined = 0x10,
       
    60     EIfTVOutConfigEventCableConnected,
       
    61     EIfTVOutConfigEventCableDisconnected,
       
    62     EIfTVOutConfigEventCableStatusListenFailed,
       
    63     EIfTVOutConfigEventEnabled,
       
    64     EIfTVOutConfigEventEnableFailed,
       
    65     EIfTVOutConfigEventDisabled,
       
    66     EIfTVOutConfigEventDisableFailed,
       
    67     EIfTVOutConfigEventSet,
       
    68     EIfTVOutConfigEventSetFailed,
       
    69     EIfTVOutConfigEventSetCopyProtectStatusChanged,
       
    70     EIfTVOutConfigEventCopyProtectionListenFailed,
       
    71     EIfTVOutConfigEventSettingsChanged,
       
    72     EIfTVOutConfigEventSettingsChangesListenFailed,
       
    73     EIfTVOutConfigEventSettingsChangesListenStarted,
       
    74     
       
    75     // EDID Handler interface's event ids    
       
    76     EPDEIfEDIDHandlerEventUndefined = 0x20,
       
    77     EPDEIfEDIDHandlerEventEdidDataFetched,
       
    78     EPDEIfEDIDHandlerEventEdidDataFetchFailed,
       
    79     
       
    80     // EDID Handler interface's event ids    
       
    81     EPDEIfAccessoryControlEventUndefined = 0x30,
       
    82     EPDEIfAccessoryControlEventConnected,
       
    83     EPDEIfAccessoryControlEventConnectFailed,
       
    84     EPDEIfAccessoryControlEventDisconnected,
       
    85     EPDEIfAccessoryControlEventDisconnectFailed,
       
    86 
       
    87     // Accessory Connection interface's event ids    
       
    88     EPDEIfAccessoryConnectionEventUndefined = 0x40,
       
    89     EPDEIfAccessoryConnectionEventCableConnected,
       
    90     EPDEIfAccessoryConnectionEventCableDisconnected,
       
    91     
       
    92     // Central Repository interface's event ids    
       
    93     EPDEIfCentralRepositoryWatchEventUndefined = 0x50,
       
    94     EPDEIfCentralRepositoryWatchEventKeyChanged,
       
    95     
       
    96     // ASY command Handler interface's event ids
       
    97     EPDEIfAsyCommandHandlerEventUndefined = 0x60,
       
    98     EIfAsyCommandHandlerEventSetCopyProtectionOn,
       
    99     EIfAsyCommandHandlerEventSetCopyProtectionOff,
       
   100     EIfAsyCommandHandlerEventGetCopyProtectStatus
       
   101     
       
   102     };
       
   103 
       
   104 _LIT( KHDMICableStatusFsm, "HDMICableStatusFsm" );
       
   105 _LIT(KHDMICableStateConnected, "ST_CONNECTED");
       
   106 _LIT(KHDMICableStateIdle, "ST_IDLE");
       
   107 _LIT(KHDMICableStateRejected, "ST_REJECTED");
       
   108 
       
   109 /**  Constants for states of HDMI Cable Status FSM.  */
       
   110 enum THDMICableState
       
   111     {
       
   112     EHDMICableStateIdle = 0,
       
   113     EHDMICableStateConnected,
       
   114     EHDMICableStateRejected,
       
   115     // Add new constants before this row.
       
   116     // Following constant is not a state.
       
   117     // It just indicates maximum index value.
       
   118     EHDMICableStateMaxValue,
       
   119     EHDMICableStateNbrOfUsedStates = EHDMICableStateMaxValue,
       
   120     EHDMICableStateUndefined = 0xff
       
   121 
       
   122     };
       
   123 
       
   124 
       
   125 _LIT( KCompositeCableStatusFsm, "CompositeCableStatusFsm" );
       
   126 _LIT(KCompositeCableStateConnected, "ST_CONNECTED");
       
   127 _LIT(KCompositeCableStateIdle, "ST_IDLE");
       
   128 
       
   129 /**  Constants for states of Composite Cable Status FSM.  */
       
   130 enum TCompositeCableState
       
   131     {
       
   132     ECompositeCableStateIdle = 0,
       
   133     ECompositeCableStateConnected,
       
   134     // Add new constants before this row.
       
   135     // Following constant is not a state.
       
   136     // It just indicates maximum index value.
       
   137     ECompositeCableStateMaxValue,
       
   138     ECompositeCableStateNbrOfUsedStates = ECompositeCableStateMaxValue,
       
   139     ECompositeCableStateUndefined = 0xff
       
   140     };
       
   141 
       
   142 #endif // PDECONSTANTS_H