equal
deleted
inserted
replaced
422 // ======== DSDStack ======== |
422 // ======== DSDStack ======== |
423 |
423 |
424 EXPORT_C TInt DSDStack::Init() |
424 EXPORT_C TInt DSDStack::Init() |
425 { |
425 { |
426 OstTraceFunctionEntry1( DSDSTACK_INIT_ENTRY, this ); |
426 OstTraceFunctionEntry1( DSDSTACK_INIT_ENTRY, this ); |
|
427 |
|
428 if((iAddressCard = new DAddressCard(*this)) == NULL) |
|
429 return KErrNoMemory; |
|
430 |
427 TInt ret = DMMCStack::Init(); |
431 TInt ret = DMMCStack::Init(); |
428 OstTraceFunctionExitExt( DSDSTACK_INIT_EXIT, this, ret ); |
432 OstTraceFunctionExitExt( DSDSTACK_INIT_EXIT, this, ret ); |
429 return ret; |
433 return ret; |
430 } |
434 } |
431 |
435 |
1134 } |
1138 } |
1135 else |
1139 else |
1136 { |
1140 { |
1137 AddressCard(KBroadcastToAllCards); |
1141 AddressCard(KBroadcastToAllCards); |
1138 __KTRACE_OPT(KPBUS1, Kern::Printf("<DSDStack::InitStackAfterUnlockSM()")); |
1142 __KTRACE_OPT(KPBUS1, Kern::Printf("<DSDStack::InitStackAfterUnlockSM()")); |
1139 } |
1143 } |
1140 |
1144 |
1141 SMF_END |
1145 SMF_END |
1142 |
1146 |
1143 } |
1147 } |
1144 |
1148 |
1652 // Default implmentation. |
1656 // Default implmentation. |
1653 return DSDStack::ESDCardTypeUnknown; |
1657 return DSDStack::ESDCardTypeUnknown; |
1654 } |
1658 } |
1655 |
1659 |
1656 |
1660 |
|
1661 DAddressCard::DAddressCard(DSDStack& aStack) :iStack(aStack) |
|
1662 { |
|
1663 } |
|
1664 |
|
1665 void DAddressCard::AddressCard(TInt aCardNumber) |
|
1666 { |
|
1667 iStack.AddressCard(aCardNumber); |
|
1668 } |
|
1669 |
|
1670 /** |
|
1671 Gets an interface from a derived class |
|
1672 |
|
1673 N.B the derived class should call this function if it does not support the specified interface |
|
1674 */ |
|
1675 EXPORT_C void DSDStack::GetInterface(TInterfaceId aInterfaceId, MInterface*& aInterfacePtr) |
|
1676 { |
|
1677 if (aInterfaceId == KInterfaceAddressCard) |
|
1678 { |
|
1679 aInterfacePtr = (DMMCStack::MInterface*) iAddressCard; |
|
1680 } |
|
1681 else |
|
1682 { |
|
1683 DMMCStack::GetInterface(aInterfaceId, aInterfacePtr); |
|
1684 } |
|
1685 } |
|
1686 |
1657 EXPORT_C void DSDStack::Dummy1() {} |
1687 EXPORT_C void DSDStack::Dummy1() {} |
1658 EXPORT_C void DSDStack::Dummy2() {} |
1688 EXPORT_C void DSDStack::Dummy2() {} |
1659 EXPORT_C void DSDStack::Dummy3() {} |
|