205 /** |
205 /** |
206 * Deletes a connection method as part of destination update operation. It |
206 * Deletes a connection method as part of destination update operation. It |
207 * is already checked that the connection method given as parameter can be |
207 * is already checked that the connection method given as parameter can be |
208 * deleted and a transaction is already open. |
208 * deleted and a transaction is already open. |
209 */ |
209 */ |
210 void DeleteConnMethodAsPartOfDestinationUpdateL( const TUint32& aConnMethodId ); |
210 void DeleteConnMethodAsPartOfDestinationUpdateL( const TUint32 aConnMethodId ); |
211 |
211 |
212 /** |
212 /** |
213 * Deletes a connection method as part of destination delete operation. It |
213 * Deletes a connection method as part of destination delete operation. It |
214 * is already checked that the connection method given as parameter can be |
214 * is already checked that the connection method given as parameter can be |
215 * deleted and a transaction is already open. |
215 * deleted and a transaction is already open. |
216 */ |
216 */ |
217 void DeleteConnMethodAsPartOfDestinationDeleteL( const TUint32& aConnMethodId ); |
217 void DeleteConnMethodAsPartOfDestinationDeleteL( const TUint32 aConnMethodId ); |
218 |
218 |
219 /** |
219 /** |
220 * Basic connection method delete. Removes a connection method from any |
220 * Basic connection method delete. Removes a connection method from any |
221 * destination it might belong to, and then deletes it. |
221 * destination it might belong to, and then deletes it. |
222 */ |
222 */ |
223 void DeleteConnMethodL( CCmmConnMethodInstance& aConnMethodInstance ); |
223 void DeleteConnMethodL( CCmmConnMethodInstance& aConnMethodInstance ); |
224 |
224 |
225 TBool DestinationExistsWithId( const TUint32& aId ); |
225 TBool DestinationExistsWithId( const TUint32 aId ); |
226 TBool DestinationExistsWithNameL( const TDesC& aName, const TUint32& aDestinationId ); |
226 TBool DestinationExistsWithNameL( const TDesC& aName, const TUint32 aDestinationId ); |
227 TBool DestinationOpenWithId( const TUint32& aId ); |
227 TBool DestinationOpenWithId( const TUint32 aId ); |
228 TBool NotSavedDestinationOpenWithNameL( const TDesC& aName, const TUint32& aDestinationId ); |
228 TBool NotSavedDestinationOpenWithNameL( const TDesC& aName, const TUint32 aDestinationId ); |
229 |
229 |
230 TBool ConnMethodExistsWithId( const TUint32& aConnMethodId ); |
230 TBool ConnMethodExistsWithId( const TUint32 aConnMethodId ); |
231 TBool ConnMethodOpenWithId( const TUint32& aConnMethodId ); |
231 TBool ConnMethodOpenWithId( const TUint32 aConnMethodId ); |
232 |
232 |
233 TBool DestinationExistsWithMetadataLocalizedL( |
233 TBool DestinationExistsWithMetadataLocalizedL( |
234 CCmmDestinationInstance& aDestinationInstance, |
234 CCmmDestinationInstance& aDestinationInstance, |
235 const TUint32& aValue ); |
235 const TUint32 aValue ); |
236 TBool DestinationExistsWithMetadataPurposeL( |
236 TBool DestinationExistsWithMetadataPurposeL( |
237 CCmmDestinationInstance& aDestinationInstance, |
237 CCmmDestinationInstance& aDestinationInstance, |
238 const TUint32& aValue ); |
238 const TUint32 aValue ); |
239 |
239 |
240 void DbChangeDetected( const TUint32& aTableId ); |
240 void DbChangeDetected( const TUint32 aTableId ); |
241 void DbChangeError( const TUint32& aTableId ); |
241 void DbChangeError( const TUint32 aTableId ); |
242 |
242 |
243 void CloseDestination( CCmmDestinationInstance& aDestinationInstance ); |
243 void CloseDestination( CCmmDestinationInstance& aDestinationInstance ); |
244 void CloseConnMethod( CCmmConnMethodInstance& aConnMethodInstance ); |
244 void CloseConnMethod( CCmmConnMethodInstance& aConnMethodInstance ); |
245 |
245 |
246 /** |
246 /** |
277 * beeing initialized. |
277 * beeing initialized. |
278 * @param aConnMethodId ID of the connection method beeing opened. |
278 * @param aConnMethodId ID of the connection method beeing opened. |
279 */ |
279 */ |
280 void OpenConnectionMethodInstanceL( |
280 void OpenConnectionMethodInstanceL( |
281 CCmmConnMethodInstance& aConnMethodInstance, |
281 CCmmConnMethodInstance& aConnMethodInstance, |
282 const TUint32& aConnMethodId ); |
282 const TUint32 aConnMethodId ); |
283 |
283 |
284 /** |
284 /** |
285 * Returns Connection Method specific integer value. CM is loaded(if not loaded already) |
285 * Returns Connection Method specific integer value. CM is loaded(if not loaded already) |
286 * to get the value. |
286 * to get the value. |
287 * @param aCmId Identifier of the Connection Method. |
287 * @param aCmId Identifier of the Connection Method. |
288 * @param aAttribute The identifier of the requested value. |
288 * @param aAttribute The identifier of the requested value. |
289 * @return Returns the requested integer value if found. Otherwise leaves with error code |
289 * @return Returns the requested integer value if found. Otherwise leaves with error code |
290 * KErrNotFound. |
290 * KErrNotFound. |
291 */ |
291 */ |
292 TUint32 GetConnectionMethodInfoIntL( |
292 TUint32 GetConnectionMethodInfoIntL( |
293 const TUint32& aCmId, |
293 const TUint32 aCmId, |
294 const TUint32& aAttribute ); |
294 const TUint32 aAttribute ); |
295 |
295 |
296 /** |
296 /** |
297 * Returns Connection Method specific boolean value. CM is loaded(if not loaded already) |
297 * Returns Connection Method specific boolean value. CM is loaded(if not loaded already) |
298 * to get the value. |
298 * to get the value. |
299 * @param aCmId Identifier of the Connection Method. |
299 * @param aCmId Identifier of the Connection Method. |
300 * @param aAttribute The identifier of the requested value. |
300 * @param aAttribute The identifier of the requested value. |
301 * @return Returns the requested boolean value if found. Otherwise leaves with error code |
301 * @return Returns the requested boolean value if found. Otherwise leaves with error code |
302 * KErrNotFound. |
302 * KErrNotFound. |
303 */ |
303 */ |
304 TBool GetConnectionMethodInfoBoolL( |
304 TBool GetConnectionMethodInfoBoolL( |
305 const TUint32& aCmId, |
305 const TUint32 aCmId, |
306 const TUint32& aAttribute ); |
306 const TUint32 aAttribute ); |
307 |
307 |
308 /** |
308 /** |
309 * Returns Connection Method specific 16 bit string value. |
309 * Returns Connection Method specific 16 bit string value. |
310 * CM is loaded(if not loaded already) to get the value. |
310 * CM is loaded(if not loaded already) to get the value. |
311 * @param aCmId Identifier of the Connection Method. |
311 * @param aCmId Identifier of the Connection Method. |
312 * @param aAttribute The identifier of the requested value. |
312 * @param aAttribute The identifier of the requested value. |
313 * @return Returns the requested string value if found. Otherwise leaves with error code |
313 * @return Returns the requested string value if found. Otherwise leaves with error code |
314 * KErrNotFound. |
314 * KErrNotFound. |
315 */ |
315 */ |
316 HBufC* GetConnectionMethodInfoStringL( |
316 HBufC* GetConnectionMethodInfoStringL( |
317 const TUint32& aCmId, |
317 const TUint32 aCmId, |
318 const TUint32& aAttribute ); |
318 const TUint32 aAttribute ); |
319 |
319 |
320 /** |
320 /** |
321 * Returns Connection Method specific 8 bit string value. |
321 * Returns Connection Method specific 8 bit string value. |
322 * CM is loaded(if not loaded already) to get the value. |
322 * CM is loaded(if not loaded already) to get the value. |
323 * @param aCmId Identifier of the Connection Method. |
323 * @param aCmId Identifier of the Connection Method. |
324 * @param aAttribute The identifier of the requested value. |
324 * @param aAttribute The identifier of the requested value. |
325 * @return Returns the requested string value if found. Otherwise leaves with error code |
325 * @return Returns the requested string value if found. Otherwise leaves with error code |
326 * KErrNotFound. |
326 * KErrNotFound. |
327 */ |
327 */ |
328 HBufC8* GetConnectionMethodInfoString8L( |
328 HBufC8* GetConnectionMethodInfoString8L( |
329 const TUint32& aCmId, |
329 const TUint32 aCmId, |
330 const TUint32& aAttribute ); |
330 const TUint32 aAttribute ); |
331 |
331 |
332 /** |
332 /** |
333 * Returns bearer specific integer value. IAP does not need to be loaded for this. |
333 * Returns bearer specific integer value. IAP does not need to be loaded for this. |
334 * @param aBearerType The type of the plugin to be asked. |
334 * @param aBearerType The type of the plugin to be asked. |
335 * @param aAttribute The identifier of the requested value. |
335 * @param aAttribute The identifier of the requested value. |
336 * @return Returns the requested integer value if found. Otherwise leaves with error code |
336 * @return Returns the requested integer value if found. Otherwise leaves with error code |
337 * KErrNotFound. |
337 * KErrNotFound. |
338 */ |
338 */ |
339 TUint32 GetBearerInfoIntL( |
339 TUint32 GetBearerInfoIntL( |
340 const TUint32& aBearerType, |
340 const TUint32 aBearerType, |
341 const TUint32& aAttribute ); |
341 const TUint32 aAttribute ); |
342 |
342 |
343 /** |
343 /** |
344 * Returns bearer specific boolean value. IAP does not need to be loaded for this. |
344 * Returns bearer specific boolean value. IAP does not need to be loaded for this. |
345 * @param aBearerType The type of the plugin to be asked. |
345 * @param aBearerType The type of the plugin to be asked. |
346 * @param aAttribute The identifier of the requested value. |
346 * @param aAttribute The identifier of the requested value. |
347 * @return Returns the requested boolean value if found. Otherwise leaves with error code |
347 * @return Returns the requested boolean value if found. Otherwise leaves with error code |
348 * KErrNotFound. |
348 * KErrNotFound. |
349 */ |
349 */ |
350 TBool GetBearerInfoBoolL( |
350 TBool GetBearerInfoBoolL( |
351 const TUint32& aBearerType, |
351 const TUint32 aBearerType, |
352 const TUint32& aAttribute ); |
352 const TUint32 aAttribute ); |
353 |
353 |
354 /** |
354 /** |
355 * Returns bearer specific 16 bit string value. IAP does not need to be loaded for this. |
355 * Returns bearer specific 16 bit string value. IAP does not need to be loaded for this. |
356 * @param aBearerType The type of the plugin to be asked. |
356 * @param aBearerType The type of the plugin to be asked. |
357 * @param aAttribute The identifier of the requested value. |
357 * @param aAttribute The identifier of the requested value. |
358 * @return Returns the requested string value if found. Otherwise leaves with error code |
358 * @return Returns the requested string value if found. Otherwise leaves with error code |
359 * KErrNotFound. |
359 * KErrNotFound. |
360 */ |
360 */ |
361 HBufC* GetBearerInfoStringL( |
361 HBufC* GetBearerInfoStringL( |
362 const TUint32& aBearerType, |
362 const TUint32 aBearerType, |
363 const TUint32& aAttribute ); |
363 const TUint32 aAttribute ); |
364 |
364 |
365 /** |
365 /** |
366 * Returns bearer specific 8 bit string value. IAP does not need to be loaded for this. |
366 * Returns bearer specific 8 bit string value. IAP does not need to be loaded for this. |
367 * @param aBearerType The type of the plugin to be asked. |
367 * @param aBearerType The type of the plugin to be asked. |
368 * @param aAttribute The identifier of the requested value. |
368 * @param aAttribute The identifier of the requested value. |
369 * @return Returns the requested string value if found. Otherwise leaves with error code |
369 * @return Returns the requested string value if found. Otherwise leaves with error code |
370 * KErrNotFound. |
370 * KErrNotFound. |
371 */ |
371 */ |
372 HBufC8* GetBearerInfoString8L( |
372 HBufC8* GetBearerInfoString8L( |
373 const TUint32& aBearerType, |
373 const TUint32 aBearerType, |
374 const TUint32& aAttribute ); |
374 const TUint32 aAttribute ); |
|
375 |
|
376 /** |
|
377 * Find and return a copy of a connection method item matching the given ID. |
|
378 * Returns KErrNotFound, if the connection method is not found. |
|
379 */ |
|
380 TInt GetConnMethodItem( |
|
381 const TUint32 aConnMethodId, |
|
382 TCmmConnMethodItem& aConnMethodItem ) const; |
375 |
383 |
376 /** |
384 /** |
377 * Returns all conenction method IDs. Unsupported connection methods are |
385 * Returns all conenction method IDs. Unsupported connection methods are |
378 * included if aCheckBearerType is set to EFalse. |
386 * included if aCheckBearerType is set to EFalse. |
379 */ |
387 */ |
466 |
474 |
467 /** |
475 /** |
468 * Check from database if the given destination is an embedded destination |
476 * Check from database if the given destination is an embedded destination |
469 * in any other destination. |
477 * in any other destination. |
470 */ |
478 */ |
471 TBool DestinationIsEmbedded( const TUint32& aDestinationId ) const; |
479 TBool DestinationIsEmbedded( const TUint32 aDestinationId ) const; |
472 |
480 |
473 /** |
481 /** |
474 * Check from database if the given destination has an embedded destination. |
482 * Check from database if the given destination has an embedded destination. |
475 */ |
483 */ |
476 TBool DestinationHasEmbedded( const TUint32& aDestinationId ) const; |
484 TBool DestinationHasEmbedded( const TUint32 aDestinationId ) const; |
477 |
485 |
478 /** |
486 /** |
479 * Check from database if the given destination is pointed to by any |
487 * Check from database if the given destination is pointed to by any |
480 * virtual IAP. |
488 * virtual IAP. |
481 */ |
489 */ |
482 TBool DestinationPointedToByVirtualIap( const TUint32& aDestinationId ) const; |
490 TBool DestinationPointedToByVirtualIap( const TUint32 aDestinationId ) const; |
483 |
491 |
484 /** |
492 /** |
485 * Check from database if the given connection method is pointed to by any |
493 * Check from database if the given connection method is pointed to by any |
486 * virtual IAP. |
494 * virtual IAP. |
487 */ |
495 */ |
488 TBool ConnMethodPointedToByVirtualIap( const TUint32& aConnMethodId ) const; |
496 TBool ConnMethodPointedToByVirtualIap( const TUint32 aConnMethodId ) const; |
489 |
497 |
490 /** |
498 /** |
491 * Check if the given connection method is the only connection method in |
499 * Check if the given connection method is the only connection method in |
492 * the given destination and if a virtual IAP points to that destination. |
500 * the given destination and if a virtual IAP points to that destination. |
493 */ |
501 */ |
494 TBool ConnMethodInDestinationButLocked( |
502 TBool ConnMethodInDestinationButLocked( |
495 const TUint32& aConnMethodId, |
503 const TUint32 aConnMethodId, |
496 const TUint32& aDestinationId ) const; |
504 const TUint32 aDestinationId ) const; |
497 |
505 |
498 /** |
506 /** |
499 * Remove all references to the given connection method from the |
507 * Remove all references to the given connection method from the |
500 * datamobility selection policy records. Then update instance mapping to |
508 * datamobility selection policy records. Then update instance mapping to |
501 * reflect the current database state, and notify any possible client |
509 * reflect the current database state, and notify any possible client |
522 * connection methods are inside the destination need to be updated with |
530 * connection methods are inside the destination need to be updated with |
523 * real IDs for any newly created connection methods. These real IDs are |
531 * real IDs for any newly created connection methods. These real IDs are |
524 * held in the temporary array iUpdatedConnMethods until successful commit |
532 * held in the temporary array iUpdatedConnMethods until successful commit |
525 * to database. This method is used to find out those real IDs before that. |
533 * to database. This method is used to find out those real IDs before that. |
526 */ |
534 */ |
527 void TranslateTemporaryId( const TUint32& aTemporaryId, TUint32& aRealId ) const; |
535 void TranslateTemporaryId( const TUint32 aTemporaryId, TUint32& aRealId ) const; |
528 |
536 |
529 /** |
537 /** |
530 * Check if the given connection method can have all references removed and |
538 * Check if the given connection method can have all references removed and |
531 * made into an uncategorized connection method. |
539 * made into an uncategorized connection method. |
532 */ |
540 */ |
533 void CheckIfConnMethodReferencesCanBeRemovedL( const CCmmConnMethodInstance& aConnMethodInstance ); |
541 void CheckIfConnMethodReferencesCanBeRemovedL( |
|
542 const CCmmConnMethodInstance& aConnMethodInstance ); |
|
543 |
|
544 /** |
|
545 * Check if given connection method is referenced from any protected destination. |
|
546 */ |
|
547 void CheckIfConnMethodBelongsToProtectedDestinationL( |
|
548 const CCmmConnMethodInstance& aConnMethodInstance, |
|
549 TBool& aBelongsToProtectedDestination ); |
534 |
550 |
535 /** |
551 /** |
536 * Check if the given connection method can be deleted. |
552 * Check if the given connection method can be deleted. |
537 */ |
553 */ |
538 void CheckIfConnMethodCanBeDeletedL( const CCmmConnMethodInstance& aConnMethodInstance ); |
554 void CheckIfConnMethodCanBeDeletedL( const CCmmConnMethodInstance& aConnMethodInstance ); |