|
1 // Copyright (c) 2008-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 |
|
17 /** |
|
18 @file |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 inline COmxILIndexManager::COmxILIndexManager() |
|
23 { |
|
24 } |
|
25 |
|
26 inline COmxILIndexManager::~COmxILIndexManager() |
|
27 { |
|
28 iManagedOmxParamIndexes.Close(); |
|
29 iManagedOmxConfigIndexes.Close(); |
|
30 } |
|
31 |
|
32 inline void |
|
33 COmxILIndexManager::InsertParamIndexL(TUint aParamIndex) |
|
34 { |
|
35 TInt err = iManagedOmxParamIndexes.InsertInOrder(aParamIndex); |
|
36 |
|
37 // Note that index duplication is OK. |
|
38 if (KErrNone != err && KErrAlreadyExists != err) |
|
39 { |
|
40 User::Leave(err); |
|
41 } |
|
42 |
|
43 } |
|
44 |
|
45 inline TInt |
|
46 COmxILIndexManager::FindParamIndex(TUint aParamIndex) const |
|
47 { |
|
48 return iManagedOmxParamIndexes.SpecificFindInOrder( |
|
49 aParamIndex, |
|
50 EArrayFindMode_First); |
|
51 } |
|
52 |
|
53 inline void |
|
54 COmxILIndexManager::InsertConfigIndexL(TUint aConfigIndex) |
|
55 { |
|
56 TInt err = iManagedOmxConfigIndexes.InsertInOrder(aConfigIndex); |
|
57 |
|
58 // Note that index duplication is OK. |
|
59 if (KErrNone != err && KErrAlreadyExists != err) |
|
60 { |
|
61 User::Leave(err); |
|
62 } |
|
63 |
|
64 } |
|
65 |
|
66 inline TInt |
|
67 COmxILIndexManager::FindConfigIndex(TUint aConfigIndex) const |
|
68 { |
|
69 return iManagedOmxConfigIndexes.SpecificFindInOrder( |
|
70 aConfigIndex, |
|
71 EArrayFindMode_First); |
|
72 } |
|
73 |
|
74 inline RArray<TUint>& |
|
75 COmxILIndexManager::ManagedParamIndexes() |
|
76 { |
|
77 return iManagedOmxParamIndexes; |
|
78 } |
|
79 |
|
80 inline RArray<TUint>& |
|
81 COmxILIndexManager::ManagedConfigIndexes() |
|
82 { |
|
83 return iManagedOmxConfigIndexes; |
|
84 } |
|
85 |
|
86 |