equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
|
21 #include <e32svr.h> // For RDebug |
21 #include <tisi.h> |
22 #include <tisi.h> |
22 #include <nsisi.h> // isi name |
23 #include <nsisi.h> // isi name |
23 #include <pipeisi.h> // isi pipe |
24 #include <pipeisi.h> // isi pipe |
24 #include <pipe_sharedisi.h> |
25 #include <pipe_sharedisi.h> |
25 |
26 |
141 // --------------------------------------------------------- |
142 // --------------------------------------------------------- |
142 void CDpMif::ConstructL() |
143 void CDpMif::ConstructL() |
143 { |
144 { |
144 OstTrace0( TRACE_NORMAL, CDPMIF_CONSTRUCTL, "CDpMif::ConstructL" ); |
145 OstTrace0( TRACE_NORMAL, CDPMIF_CONSTRUCTL, "CDpMif::ConstructL" ); |
145 LOGM(" CDpMif::ConstructL"); |
146 LOGM(" CDpMif::ConstructL"); |
|
147 |
|
148 #ifdef PIPECAMP_DATAPORT_PNS_PEP_STATUS_IND_PHONET_ADDRESS_FROM_PNS_PEP_CTRL_REQ |
|
149 RDebug::Print( _L("PIPECAMP_DATAPORT_PNS_PEP_STATUS_IND_PHONET_ADDRESS_FROM_PNS_PEP_CTRL_REQ") ); |
|
150 #endif |
146 |
151 |
147 iMsgReceiveBuffer = HBufC8::NewL( ISI_HEADER_SIZE + KDpMaxMsgReceiveSize ); |
152 iMsgReceiveBuffer = HBufC8::NewL( ISI_HEADER_SIZE + KDpMaxMsgReceiveSize ); |
148 _LIT(KPanicStr, "Dataport - CDpMif::ConstructL"); |
153 _LIT(KPanicStr, "Dataport - CDpMif::ConstructL"); |
149 __ASSERT_ALWAYS( iMsgReceiveBuffer, |
154 __ASSERT_ALWAYS( iMsgReceiveBuffer, |
150 User::Panic( KPanicStr, KErrNoMemory ) ); |
155 User::Panic( KPanicStr, KErrNoMemory ) ); |
484 TUint8 senderDevice( aIsiMessage.Get8bit( |
489 TUint8 senderDevice( aIsiMessage.Get8bit( |
485 ISI_HEADER_OFFSET_SENDERDEVICE ) ); |
490 ISI_HEADER_OFFSET_SENDERDEVICE ) ); |
486 // Get sender object |
491 // Get sender object |
487 TUint8 senderObject( aIsiMessage.Get8bit( |
492 TUint8 senderObject( aIsiMessage.Get8bit( |
488 ISI_HEADER_OFFSET_SENDEROBJECT ) ); |
493 ISI_HEADER_OFFSET_SENDEROBJECT ) ); |
489 |
494 #ifdef PIPECAMP_DATAPORT_PNS_PEP_STATUS_IND_PHONET_ADDRESS_FROM_PNS_PEP_CTRL_REQ |
|
495 iPifDcs.SetPipeControllerDeviceIdentifier( senderDevice ); |
|
496 iPifDcs.SetPipeControllerObjectIdentifier( senderObject ); |
|
497 #endif |
490 // E32 return value |
498 // E32 return value |
491 TInt return_E32( KErrNone ); |
499 TInt return_E32( KErrNone ); |
492 // PN_PIPE return value |
500 // PN_PIPE return value |
493 TInt ret( KErrNone ); |
501 TInt ret( KErrNone ); |
494 |
502 |
798 OstTraceExt1( TRACE_NORMAL, DUP1_CDPMIF_SENDNAMEADDREQL, "CDpMif:: obj = 0x%hx", obj ); |
806 OstTraceExt1( TRACE_NORMAL, DUP1_CDPMIF_SENDNAMEADDREQL, "CDpMif:: obj = 0x%hx", obj ); |
799 |
807 |
800 // Add Object id |
808 // Add Object id |
801 messageData.Append( obj ); |
809 messageData.Append( obj ); |
802 // Add Record flags |
810 // Add Record flags |
803 messageData.Append( PN_NAME_CLEARED ); |
811 messageData.Append( PN_NAME_UNDEF/**PN_NAME_CLEARED**/ ); |
804 //fill |
812 //fill |
805 messageData.Append( KDpPadding ); |
813 messageData.Append( KDpPadding ); |
806 |
814 |
807 #if defined(_DEBUG) |
815 #if defined(_DEBUG) |
808 ret = |
816 ret = |