accessoryservices/accessoryserver/src/Server/AccSrvWiredConnectionPublisher.cpp
branchRCL_3
changeset 7 1fc153c72b60
parent 0 4e1aa6a622a0
equal deleted inserted replaced
6:6bb05bdcbe09 7:1fc153c72b60
    76     TUint32 physConnCaps( aGenericID.PhysicalConnectionCaps() );
    76     TUint32 physConnCaps( aGenericID.PhysicalConnectionCaps() );
    77     
    77     
    78     COM_TRACE_2( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleConnectL: physConnCaps=0x%x, iConnectionCount=%d", 
    78     COM_TRACE_2( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleConnectL: physConnCaps=0x%x, iConnectionCount=%d", 
    79                         physConnCaps, iConnectionCount );
    79                         physConnCaps, iConnectionCount );
    80     
    80     
    81     if ( physConnCaps & KPCWired )
    81     if ( physConnCaps & (KPCWired | KPCHDMI) )
    82         {
    82         {
    83         if ( !iConnectionCount++ )
    83         if ( !iConnectionCount++ )
    84             {
    84             {
    85             // first detected wired connection, publish it 
    85             // first detected wired connection, publish it 
    86             COM_TRACE_( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleConnectL: WIRED CONNECTED" );
    86             COM_TRACE_( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleConnectL: WIRED CONNECTED" );
   100     TUint32 physConnCaps( aGenericID.PhysicalConnectionCaps() );
   100     TUint32 physConnCaps( aGenericID.PhysicalConnectionCaps() );
   101     
   101     
   102     COM_TRACE_2( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleDisconnectL: physConnCaps=0x%x, iConnectionCount=%d", 
   102     COM_TRACE_2( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleDisconnectL: physConnCaps=0x%x, iConnectionCount=%d", 
   103                         physConnCaps, iConnectionCount );
   103                         physConnCaps, iConnectionCount );
   104     
   104     
   105     if ( (physConnCaps & KPCWired) && iConnectionCount )
   105     if ( (physConnCaps & (KPCWired | KPCHDMI)) && iConnectionCount )
   106         {
   106         {
   107         if ( !(--iConnectionCount) )
   107         if ( !(--iConnectionCount) )
   108             {
   108             {
   109             // last wired connection disconnected
   109             // last wired connection disconnected
   110             COM_TRACE_( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleDisconnectL: WIRED DISCONNECTED" );
   110             COM_TRACE_( "[AccFW:AccServer] CAccSrvWiredConnectionPublisher::HandleDisconnectL: WIRED DISCONNECTED" );