equal
deleted
inserted
replaced
86 // --------------------------------------------------------------------------- |
86 // --------------------------------------------------------------------------- |
87 // |
87 // |
88 EXPORT_C TInt CPtiKeyboardDatabaseFactory::CreateMappingTableWithOpaqueL(TInt aInterfaceUid, |
88 EXPORT_C TInt CPtiKeyboardDatabaseFactory::CreateMappingTableWithOpaqueL(TInt aInterfaceUid, |
89 RArray<TPtiKeyboardDatabaseMappingOpaque>& aResult) |
89 RArray<TPtiKeyboardDatabaseMappingOpaque>& aResult) |
90 { |
90 { |
91 CleanupClosePushL( aResult ); |
|
92 TInt res = 0; |
91 TInt res = 0; |
93 TPtiKeyboardDatabaseMappingOpaque map; |
92 TPtiKeyboardDatabaseMappingOpaque map; |
94 RImplInfoPtrArray infoArray; |
93 RImplInfoPtrArray infoArray; |
95 TInt i; |
94 TInt i; |
96 |
95 |
105 User::LeaveIfError(aResult.Append(map)); |
104 User::LeaveIfError(aResult.Append(map)); |
106 } |
105 } |
107 |
106 |
108 CleanupStack::PopAndDestroy(); // infoArray |
107 CleanupStack::PopAndDestroy(); // infoArray |
109 |
108 |
110 CleanupStack::Pop(); |
|
111 return res; |
109 return res; |
112 } |
110 } |
113 |
111 |
114 // --------------------------------------------------------------------------- |
112 // --------------------------------------------------------------------------- |
115 // CPtiKeybaordDatabaseFactory::CreateImplementationL |
113 // CPtiKeybaordDatabaseFactory::CreateImplementationL |
134 // --------------------------------------------------------------------------- |
132 // --------------------------------------------------------------------------- |
135 // |
133 // |
136 EXPORT_C void CPtiKeyboardDatabaseFactory::ListImplementationsL(TInt aCoreUid, |
134 EXPORT_C void CPtiKeyboardDatabaseFactory::ListImplementationsL(TInt aCoreUid, |
137 RArray<TInt>& aResult) |
135 RArray<TInt>& aResult) |
138 { |
136 { |
139 CleanupClosePushL( aResult ); |
|
140 RImplInfoPtrArray infoArray; |
137 RImplInfoPtrArray infoArray; |
141 TInt i; |
138 TInt i; |
142 |
139 |
143 CleanupStack::PushL( TCleanupItem( KDB_DBCleanup, &infoArray ) ); |
140 CleanupStack::PushL( TCleanupItem( KDB_DBCleanup, &infoArray ) ); |
144 REComSession::ListImplementationsL(TUid::Uid(aCoreUid), infoArray); |
141 REComSession::ListImplementationsL(TUid::Uid(aCoreUid), infoArray); |
147 { |
144 { |
148 aResult.AppendL(infoArray[i]->ImplementationUid().iUid); |
145 aResult.AppendL(infoArray[i]->ImplementationUid().iUid); |
149 } |
146 } |
150 |
147 |
151 CleanupStack::PopAndDestroy(); // infoArray |
148 CleanupStack::PopAndDestroy(); // infoArray |
152 CleanupStack::Pop(); |
|
153 } |
149 } |
154 |
150 |
155 // --------------------------------------------------------------------------- |
151 // --------------------------------------------------------------------------- |
156 // CPtiKeybaordDatabaseFactory::~CPtiKeybaordDatabaseFactory |
152 // CPtiKeybaordDatabaseFactory::~CPtiKeybaordDatabaseFactory |
157 // |
153 // |