equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 inline TOwnerIdMapping::TOwnerIdMapping() |
|
17 : iRepUid(0), iOwner(0) |
|
18 { |
|
19 } |
|
20 |
|
21 inline TOwnerIdMapping::TOwnerIdMapping(TUint32 aRepUid, TUint32 aOwner) |
|
22 : iRepUid(aRepUid), iOwner(aOwner) |
|
23 { |
|
24 } |
|
25 |
|
26 |
|
27 inline TInt TServerResources::AddOwnerIdLookupMapping(const TUint32 aRepositoryUid, const TUint32 aOwnerUid) |
|
28 { |
|
29 TOwnerIdMapping lookupTableEntry (aRepositoryUid, aOwnerUid); |
|
30 return iOwnerIdLookUpTable.InsertInOrder(lookupTableEntry, TLinearOrder<TOwnerIdMapping>(TOwnerIdMapping::CompareUids)); |
|
31 } |
|
32 |
|
33 inline TInt TServerResources::FindOwnerIdLookupMapping(TUint32 aRepositoryId) |
|
34 { |
|
35 TOwnerIdMapping lookupTableEntry ; |
|
36 lookupTableEntry.iRepUid = aRepositoryId ; |
|
37 |
|
38 return TServerResources::iOwnerIdLookUpTable.FindInOrder(lookupTableEntry, TLinearOrder<TOwnerIdMapping>(TOwnerIdMapping::CompareUids)) ; |
|
39 } |