accessoryservices/pluggeddisplay/pluggeddisplayengine/inc/hdmicablestateconnected.h
branchRCL_3
changeset 12 4a5c47a50617
parent 0 4e1aa6a622a0
child 17 0b0048910c20
equal deleted inserted replaced
10:66ecddbca914 12:4a5c47a50617
    19 #ifndef C_HDMICABLESTATECONNECTED_H
    19 #ifndef C_HDMICABLESTATECONNECTED_H
    20 #define C_HDMICABLESTATECONNECTED_H
    20 #define C_HDMICABLESTATECONNECTED_H
    21 
    21 
    22 
    22 
    23 #include "multifinitestatemachine.h"
    23 #include "multifinitestatemachine.h"
       
    24 #include "centralrepositorywatch.h" 
    24 
    25 
    25 
    26 
    26 class CEDIDHandler;
    27 class CEDIDHandler;
    27 class CAccessoryControlIf;
    28 class CAccessoryControlIf;
    28 class CTVOutConfigForHDMI;
    29 class CTVOutConfigForHDMI;
    38  *  @endcode
    39  *  @endcode
    39  *
    40  *
    40  *  @lib none.
    41  *  @lib none.
    41  *  @since TB 9.2
    42  *  @since TB 9.2
    42  */
    43  */
    43 NONSHARABLE_CLASS( CHDMICableStateConnected ): public CBase, public MFSMState
    44 NONSHARABLE_CLASS( CHDMICableStateConnected ): public CBase, public MFSMState, public MCentralRepositoryObserver
    44     {
    45     {
    45 
    46 
    46 
    47 
    47 public:
    48 public:
    48 
    49 
   150       ESubStateRejectingDisconnectAccessory = 0x51
   151       ESubStateRejectingDisconnectAccessory = 0x51
   151       };    
   152       };    
   152     
   153     
   153 protected:
   154 protected:
   154 
   155 
       
   156 // from base class MCentralRepositoryObserver
       
   157 
       
   158     
       
   159     /**
       
   160      * Function is called by watcher every time when key value has changed
       
   161      * in CR.
       
   162      *
       
   163      * @since TB 9.2
       
   164      * @param aRepositoryId Changed repository. 
       
   165      * @param aRepositoryId Changed key. 
       
   166      * @return none
       
   167      */
       
   168     virtual void CentRepKeyChanged(
       
   169             TUid    aRepositoryId,
       
   170             TUint32 aId );
       
   171 
       
   172     /**
       
   173      * Function is called by property watcher when reading the integer property's
       
   174      * current value fails.
       
   175      *
       
   176      * @since TB 9.2
       
   177      * @param aRepositoryId Changed repository. 
       
   178      * @param aRepositoryId Changed key. 
       
   179      * @param aError Error code:
       
   180      *      KErrAbort if in a transaction that has previously failed, 
       
   181      *      KErrPermissionDenied if caller fails capability check, 
       
   182      *      KErrNotFound if the setting does not exist, 
       
   183      *      KErrArgument if the setting exists but is not an integer, plus other system-wide error codes. 
       
   184      * . 
       
   185      * @return none
       
   186      */
       
   187     virtual void CentRepGetKeyValueFailed( 
       
   188             TUid    aRepositoryId,
       
   189             TUint32 aId,
       
   190             TInt aError );
   155 
   191 
   156 private:
   192 private:
   157 
   193 
   158     /**
   194     /**
   159      * Start listen to Copy Protection Status changes.
   195      * Start listen to Copy Protection Status changes.
   312      * @return none.
   348      * @return none.
   313      */
   349      */
   314     void SubStateWaitForSettingsChangedInput(
   350     void SubStateWaitForSettingsChangedInput(
   315             TFSMInterfaceId aInterfaceId ,
   351             TFSMInterfaceId aInterfaceId ,
   316             TFSMEventId aEvent );
   352             TFSMEventId aEvent );
       
   353 
       
   354 	void ClearAvailableTvOutConfig();
   317 
   355 
   318     /**
   356     /**
   319      * C++ default constructor.
   357      * C++ default constructor.
   320      * @param aTVOutConfigForHDMI TV Out Configurer for cable connection listening.
   358      * @param aTVOutConfigForHDMI TV Out Configurer for cable connection listening.
   321      * @param aEDIDHandler EDID Handler object.
   359      * @param aEDIDHandler EDID Handler object.
   397     // Counter for Cable status listen failures.
   435     // Counter for Cable status listen failures.
   398     SCableStatusListenFailCounter iCableStatusListenFailCounter;
   436     SCableStatusListenFailCounter iCableStatusListenFailCounter;
   399         
   437         
   400     // Substate
   438     // Substate
   401     TSubState iSubState;
   439     TSubState iSubState;
   402     
   440 
       
   441 	//CR Observer for ovescan percentage
       
   442     //CCentralRepositoryWatch* iCRWatchForHOverScan;
       
   443     CCentralRepositoryWatch* iCRWatchForVOverScan;
       
   444 
       
   445 	// Flag to indicate the change of overscan
       
   446 	TBool iOverScanSettingsChanged;
       
   447 	
   403     };
   448     };
   404 
   449 
   405 #endif // C_HDMICABLESTATECONNECTED_H
   450 #endif // C_HDMICABLESTATECONNECTED_H