tvout/tvoutengine/inc/glxtvconnectionmonitor.h
changeset 52 a3a4c0de738e
parent 43 72396548277c
equal deleted inserted replaced
50:a0f57508af73 52:a3a4c0de738e
    13 *
    13 *
    14 * Description:    Monitoring class of the Tv Out Connection
    14 * Description:    Monitoring class of the Tv Out Connection
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
       
    19 
       
    20 /**
       
    21  * @internal reviewed 24/08/2007 by D Holland
       
    22  */
       
    23 
    18 
    24 #ifndef __GLX_WNDWCONNECTION_MONITOR_H__
    19 #ifndef __GLX_WNDWCONNECTION_MONITOR_H__
    25 #define __GLX_WNDWCONNECTION_MONITOR_H__
    20 #define __GLX_WNDWCONNECTION_MONITOR_H__
    26 
    21 
    27 // External Includes
    22 // External Includes
    38 
    33 
    39 
    34 
    40 /**
    35 /**
    41  * Class Description
    36  * Class Description
    42  * An Active object derived class is used to monitor the TV out connection
    37  * An Active object derived class is used to monitor the TV out connection
    43  * @author Loughlin
       
    44  */
    38  */
    45 NONSHARABLE_CLASS(CGlxTvConnectionMonitor) : public CActive
    39 NONSHARABLE_CLASS(CGlxTvConnectionMonitor) : public CActive
    46     {
    40     {
    47 public:
    41 public:
    48 
    42 
    63      * Standard C++ constructor
    57      * Standard C++ constructor
    64      */
    58      */
    65     CGlxTvConnectionMonitor(
    59     CGlxTvConnectionMonitor(
    66                         MGlxTvConnectionObserver& aConnectionObserver);
    60                         MGlxTvConnectionObserver& aConnectionObserver);
    67 
    61 
    68     /*
    62     /**
    69      * Symbian second stage construction
    63      * Symbian second stage construction
    70      */
    64      */
    71     void ConstructL();
    65     void ConstructL();
    72 
    66 
    73 public: // class member functions
    67 public: // class member functions
    74 
    68 
    75     /*
    69     /**
    76      * Provides the caller with the current TV connetion state
    70      * Provides the caller with the current TV connetion state
    77      * @return The TV connection state
    71      * @return The TV connection state
    78      */
    72      */
    79     TBool IsConnected() const;
    73     TBool IsConnected() const;
    80 
    74 
    81     /*
    75     /**
    82      * Provides the caller with the current HDMI connetion state
    76      * Provides the caller with the current HDMI connetion state
    83      * @return The HDMI connection state
    77      * @return The HDMI connection state
    84      */
    78      */
    85     TBool IsHDMIConnected() const;
    79     TBool IsHDMIConnected() const;
    86 
    80 
   118 	 */
   112 	 */
   119 	void UpdateConnectionStatusL();
   113 	void UpdateConnectionStatusL();
   120 
   114 
   121 private: // class member data
   115 private: // class member data
   122 
   116 
   123     // Not owned: TV connection observer
   117     /// Not owned: TV connection observer
   124     MGlxTvConnectionObserver& iConnectionObserver;
   118     MGlxTvConnectionObserver& iConnectionObserver;
   125 
   119 
   126     // TVout The Connection state
   120     /// TVout The Connection state
   127     TBool iIsTvOutConnected;
   121     TBool iIsTvOutConnected;
   128 
   122 
   129     // TVout The Connection state
   123     /// TVout The Connection state
   130     TBool iIsHDMIConnected;
   124     TBool iIsHDMIConnected;
   131 
   125 
   132     // Headset The Connection state
   126     /// Headset The Connection state
   133     TBool iIsHeadSetConnected;
   127     TBool iIsHeadSetConnected;
   134 
   128 
   135     // The (external device) Accessory Server
   129     /// The (external device) Accessory Server
   136     RAccessoryServer iTvAccServer;
   130     RAccessoryServer iTvAccServer;
   137 
   131 
   138     // Accessory mode
   132     /// Accessory mode
   139     RAccessoryMode iTvAccMode;
   133     RAccessoryMode iTvAccMode;
   140 
   134 
   141     // Accessory Connection - details the type of accessory
   135     /// Accessory Connection - details the type of accessory
   142     RAccessoryConnection iTvAccCon;
   136     RAccessoryConnection iTvAccCon;
   143 
   137 
   144     //Class gives Generic ID
   138     ///Class gives Generic ID
   145     TAccPolGenericIDArray iCurrentAccArray;
   139     TAccPolGenericIDArray iCurrentAccArray;
   146     };
   140     };
   147 
   141 
   148 
   142 
   149 #endif // __GLX_WNDWCONNECTION_MONITOR_H__
   143 #endif // __GLX_WNDWCONNECTION_MONITOR_H__