equal
deleted
inserted
replaced
29 #include <msvuids.h> |
29 #include <msvuids.h> |
30 #include <Obexutils.rsg> |
30 #include <Obexutils.rsg> |
31 #include <obexutilsmessagehandler.h> |
31 #include <obexutilsmessagehandler.h> |
32 |
32 |
33 |
33 |
|
34 const TInt KBtMtmUiNfcContext = 2; |
|
35 |
34 // ================= MEMBER FUNCTIONS ======================= |
36 // ================= MEMBER FUNCTIONS ======================= |
35 |
37 |
36 // Two-phased constructor. |
38 // Two-phased constructor. |
37 CBtMtmUiData* CBtMtmUiData::NewL( CRegisteredMtmDll& aRegisteredDll ) |
39 CBtMtmUiData* CBtMtmUiData::NewL( CRegisteredMtmDll& aRegisteredDll ) |
38 { |
40 { |
127 // --------------------------------------------------------- |
129 // --------------------------------------------------------- |
128 // |
130 // |
129 const CBaseMtmUiData::CBitmapArray& CBtMtmUiData::ContextIcon( const TMsvEntry& aContext, |
131 const CBaseMtmUiData::CBitmapArray& CBtMtmUiData::ContextIcon( const TMsvEntry& aContext, |
130 TInt /*aStateFlags*/) const |
132 TInt /*aStateFlags*/) const |
131 { |
133 { |
132 TInt icon = TObexUtilsUiLayer::ContextIcon( aContext, EBluetooth ); |
134 // Check if NFC context |
|
135 TInt icon = 0; |
|
136 if ( aContext.MtmData1() == KBtMtmUiNfcContext ) |
|
137 { |
|
138 icon = TObexUtilsUiLayer::ContextIcon( aContext, ENfc ); |
|
139 } |
|
140 else |
|
141 { |
|
142 icon = TObexUtilsUiLayer::ContextIcon( aContext, EBluetooth ); |
|
143 } |
133 |
144 |
134 return *iIconArrays->At( icon/2 ); |
145 return *iIconArrays->At( icon/2 ); |
135 } |
146 } |
136 |
147 |
137 // --------------------------------------------------------- |
148 // --------------------------------------------------------- |