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