114 ENTRY( "DisconnectTvOut", CVHPPTestClass::DisconnectTvOutL ), |
114 ENTRY( "DisconnectTvOut", CVHPPTestClass::DisconnectTvOutL ), |
115 |
115 |
116 ENTRY( "SetDrmProtected", CVHPPTestClass::SetDrmProtectedL ), |
116 ENTRY( "SetDrmProtected", CVHPPTestClass::SetDrmProtectedL ), |
117 ENTRY( "IssueSeekedToEndCommand", CVHPPTestClass::IssueSeekedToEndCommandL), |
117 ENTRY( "IssueSeekedToEndCommand", CVHPPTestClass::IssueSeekedToEndCommandL), |
118 ENTRY( "HandleVolume", CVHPPTestClass::HandleVolumeL ), |
118 ENTRY( "HandleVolume", CVHPPTestClass::HandleVolumeL ), |
119 ENTRY( "ConnectHDMITvOut", CVHPPTestClass::ConnectHDMITvOutL ), |
|
120 ENTRY( "DisconnectHDMITvOut", CVHPPTestClass::DisconnectHDMITvOutL ), |
|
121 ENTRY( "SetHDMITvOutConnected", CVHPPTestClass::SetHDMITvOutConnectedL ), |
|
122 |
119 |
123 ENTRY ("InitializeWithPositionL", CVHPPTestClass::InitializeWithPositionL), |
120 ENTRY ("InitializeWithPositionL", CVHPPTestClass::InitializeWithPositionL), |
124 ENTRY ("InitializeLinkWithPositionL", CVHPPTestClass::InitializeLinkWithPositionL), |
121 ENTRY ("InitializeLinkWithPositionL", CVHPPTestClass::InitializeLinkWithPositionL), |
125 ENTRY ("InitializeHandleWithPositionL", CVHPPTestClass::InitializeHandleWithPositionL) |
122 ENTRY ("InitializeHandleWithPositionL", CVHPPTestClass::InitializeHandleWithPositionL) |
126 |
123 |
2169 } |
2166 } |
2170 |
2167 |
2171 return err; |
2168 return err; |
2172 } |
2169 } |
2173 |
2170 |
2174 TInt |
|
2175 CVHPPTestClass::ConnectHDMITvOutL( ) |
|
2176 { |
|
2177 MPX_ENTER_EXIT(_L("CVHPPTestClass::ConnectHDMITvOutL()")); |
|
2178 iLog->Log(_L("CVHPPTestClass::ConnectHDMITvOutL()")); |
|
2179 |
|
2180 // Connect HDMI TV Out |
|
2181 iAccObserver->SetTvOutHDMI( ETrue ); |
|
2182 |
|
2183 // |
|
2184 // Add event for callback |
|
2185 // |
|
2186 TCallbackEvent* event = new TCallbackEvent; |
|
2187 |
|
2188 event->iEvent = EPbCmdTvOutEvent; |
|
2189 event->iData = ETrue; |
|
2190 event->iError = ETrue; |
|
2191 |
|
2192 AddExpectedEvent( event ); |
|
2193 |
|
2194 iAccObserver->UpdateTvOutStatusL( ETrue ); |
|
2195 |
|
2196 return KErrNone; |
|
2197 } |
|
2198 |
|
2199 TInt |
|
2200 CVHPPTestClass::DisconnectHDMITvOutL() |
|
2201 { |
|
2202 MPX_ENTER_EXIT(_L("CVHPPTestClass::DisconnectHDMITvOutL()")); |
|
2203 iLog->Log(_L("CVHPPTestClass::DisconnectHDMITvOutL()")); |
|
2204 |
|
2205 // Connect HDMI TV Out |
|
2206 iAccObserver->SetTvOutHDMI( EFalse ); |
|
2207 |
|
2208 // |
|
2209 // Add event for callback |
|
2210 // |
|
2211 TCallbackEvent* event = new TCallbackEvent; |
|
2212 |
|
2213 event->iEvent = EPbCmdTvOutEvent; |
|
2214 event->iData = EFalse; |
|
2215 event->iError = ETrue; |
|
2216 |
|
2217 AddExpectedEvent( event ); |
|
2218 |
|
2219 iAccObserver->UpdateTvOutStatusL( EFalse ); |
|
2220 |
|
2221 return KErrNone; |
|
2222 } |
|
2223 |
|
2224 TInt |
|
2225 CVHPPTestClass::SetHDMITvOutConnectedL() |
|
2226 { |
|
2227 MPX_ENTER_EXIT(_L("CVHPPTestClass::SetHDMITvOutConnectedL()")); |
|
2228 iLog->Log(_L("CVHPPTestClass::SetHDMITvOutConnectedL()")); |
|
2229 |
|
2230 iAccObserver->SetTvOutHDMI( ETrue ); |
|
2231 |
|
2232 return KErrNone; |
|
2233 } |
|
2234 |
2171 |
2235 TInt |
2172 TInt |
2236 CVHPPTestClass::InitializeWithPositionL( CStifItemParser& aItem ) |
2173 CVHPPTestClass::InitializeWithPositionL( CStifItemParser& aItem ) |
2237 { |
2174 { |
2238 MPX_ENTER_EXIT(_L("CVHPPTestClass::InitializeL()")); |
2175 MPX_ENTER_EXIT(_L("CVHPPTestClass::InitializeL()")); |