equal
deleted
inserted
replaced
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
42 |
42 |
43 |
43 |
44 inline TUint32 TSDCard::PARootDirEnd() const {return iPARootDirEnd;} |
44 inline TUint32 TSDCard::PARootDirEnd() const {return iPARootDirEnd;} |
45 inline void TSDCard::SetPARootDirEnd(TUint32 aPARootDirEnd) {iPARootDirEnd=aPARootDirEnd;} |
45 inline void TSDCard::SetPARootDirEnd(TUint32 aPARootDirEnd) {iPARootDirEnd=aPARootDirEnd;} |
46 |
46 |
|
47 /** |
|
48 Called when a client registers with the SD card. |
|
49 */ |
|
50 inline void TSDCard::RegisterClient() |
|
51 { |
|
52 __e32_atomic_add_ord32(&iClientCountSD, 1); |
|
53 } |
|
54 |
|
55 /** |
|
56 Called when a client de-registers with the SD card. |
|
57 */ |
|
58 inline void TSDCard::DeregisterClient() |
|
59 |
|
60 { |
|
61 __e32_atomic_add_ord32(&iClientCountSD, TUint32(-1)); |
|
62 } |
|
63 |
|
64 /** |
|
65 Returned value indicates whether or not clients have registered with the SD card. |
|
66 */ |
|
67 inline TBool TSDCard::ClientsRegistered() |
|
68 { |
|
69 if(iClientCountSD) |
|
70 return ETrue; |
|
71 |
|
72 return EFalse; |
|
73 } |
|
74 |
47 // ======== TSDCardArray ======== |
75 // ======== TSDCardArray ======== |
48 |
76 |
49 inline TSDCardArray::TSDCardArray(DSDStack* aOwningStack) : TMMCardArray(aOwningStack) |
77 inline TSDCardArray::TSDCardArray(DSDStack* aOwningStack) : TMMCardArray(aOwningStack) |
50 { /* empty */ } |
78 { /* empty */ } |
51 |
79 |