equal
deleted
inserted
replaced
36 |
36 |
37 TInt uidStart = ( ('c' == aDriveLetter) ? |
37 TInt uidStart = ( ('c' == aDriveLetter) ? |
38 KWidgetUidInternalMemoryStart : |
38 KWidgetUidInternalMemoryStart : |
39 KWidgetUidExternalMemoryStart ); |
39 KWidgetUidExternalMemoryStart ); |
40 TInt uidStop = ( ('c' == aDriveLetter) ? |
40 TInt uidStop = ( ('c' == aDriveLetter) ? |
41 KWidgetUidExternalMemoryStart : |
41 KWidgetUidWRTInternalMemoryStop : |
42 KWidgetUidExternalMemoryStop + 1); |
42 KWidgetUidWRTExternalMemoryStop); |
43 |
43 |
44 TInt uid = uidStart; |
44 TInt uid = uidStart; |
45 for ( ; uid < uidStop; ++uid ) |
45 for ( ; uid < uidStop; ++uid ) |
46 { |
46 { |
47 if ( KErrNotFound == aUsedUids.Find( TUid::Uid( uid ) ) ) |
47 if ( KErrNotFound == aUsedUids.Find( TUid::Uid( uid ) ) ) |
60 { |
60 { |
61 return ( ( aUid.iUid >= KWidgetUidLowerBound |
61 return ( ( aUid.iUid >= KWidgetUidLowerBound |
62 && aUid.iUid <= KWidgetUidUpperBound )? |
62 && aUid.iUid <= KWidgetUidUpperBound )? |
63 ETrue : EFalse ); |
63 ETrue : EFalse ); |
64 } |
64 } |
|
65 |
|
66 // ============================================================================ |
|
67 // TUidAllocator::IsCWRTWidget() |
|
68 // Returns true if the Uid falls within the range specified for CWRT widgets |
|
69 // ============================================================================ |
|
70 // |
|
71 TBool TUidAllocator::IsCWRTWidget( TUid aUid ) |
|
72 { |
|
73 if ( ( ( aUid.iUid >= KWidgetUidCWRTInternalMemoryStart ) && |
|
74 ( aUid.iUid < KWidgetUidCWRTInternalMemoryStop ) ) || |
|
75 ( ( aUid.iUid >= KWidgetUidCWRTExternalMemoryStart ) && |
|
76 ( aUid.iUid < KWidgetUidCWRTExternalMemoryStop ) ) ) |
|
77 { |
|
78 return ETrue; |
|
79 } |
|
80 else |
|
81 { |
|
82 return EFalse; |
|
83 } |
|
84 |
|
85 } |