equal
deleted
inserted
replaced
27 // ======== TSDCard ======== |
27 // ======== TSDCard ======== |
28 |
28 |
29 TSDCard::TSDCard() |
29 TSDCard::TSDCard() |
30 : iProtectedAreaSize(0), iPARootDirEnd(KPARootDirEndUnknown), iClientCountSD(0) |
30 : iProtectedAreaSize(0), iPARootDirEnd(KPARootDirEndUnknown), iClientCountSD(0) |
31 { |
31 { |
|
32 // empty |
32 } |
33 } |
33 |
34 |
34 TInt64 TSDCard::DeviceSize64() const |
35 TInt64 TSDCard::DeviceSize64() const |
35 // |
36 // |
36 // returns the SD device size |
37 // returns the SD device size |
421 // ======== DSDStack ======== |
422 // ======== DSDStack ======== |
422 |
423 |
423 EXPORT_C TInt DSDStack::Init() |
424 EXPORT_C TInt DSDStack::Init() |
424 { |
425 { |
425 OstTraceFunctionEntry1( DSDSTACK_INIT_ENTRY, this ); |
426 OstTraceFunctionEntry1( DSDSTACK_INIT_ENTRY, this ); |
|
427 |
|
428 if((iAddressCard = new DAddressCard(*this)) == NULL) |
|
429 return KErrNoMemory; |
|
430 |
426 TInt ret = DMMCStack::Init(); |
431 TInt ret = DMMCStack::Init(); |
427 OstTraceFunctionExitExt( DSDSTACK_INIT_EXIT, this, ret ); |
432 OstTraceFunctionExitExt( DSDSTACK_INIT_EXIT, this, ret ); |
428 return ret; |
433 return ret; |
429 } |
434 } |
430 |
435 |
1133 } |
1138 } |
1134 else |
1139 else |
1135 { |
1140 { |
1136 AddressCard(KBroadcastToAllCards); |
1141 AddressCard(KBroadcastToAllCards); |
1137 __KTRACE_OPT(KPBUS1, Kern::Printf("<DSDStack::InitStackAfterUnlockSM()")); |
1142 __KTRACE_OPT(KPBUS1, Kern::Printf("<DSDStack::InitStackAfterUnlockSM()")); |
1138 } |
1143 } |
1139 |
1144 |
1140 SMF_END |
1145 SMF_END |
1141 |
1146 |
1142 } |
1147 } |
1143 |
1148 |
1651 // Default implmentation. |
1656 // Default implmentation. |
1652 return DSDStack::ESDCardTypeUnknown; |
1657 return DSDStack::ESDCardTypeUnknown; |
1653 } |
1658 } |
1654 |
1659 |
1655 |
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 |
1656 EXPORT_C void DSDStack::Dummy1() {} |
1687 EXPORT_C void DSDStack::Dummy1() {} |
1657 EXPORT_C void DSDStack::Dummy2() {} |
1688 EXPORT_C void DSDStack::Dummy2() {} |
1658 EXPORT_C void DSDStack::Dummy3() {} |
|