Moving a Device to a New Position in the List

This topic shows you how to move a device to a new position in the list.

Each device in the list has a position index. The higher the position index, the lower the priority the device has in the list. When a device is moved to a new position, any other devices in the list are shifted as required to allow the device to occupy the requested position.

Call CLbsBtGpsConfig::ReorderDevice(TLbsBtGpsEntryKey, TInt). This function takes the unique key that identifies the device and the new position index for the device in the list.
// Move the device to the 8th place in the list
// or to the end of the list if there are currently less than 8 devices in the list. 
iConfig->ReorderDevice(key, 7);
This step returns KErrNone upon success.

The device is moved to the required position in the list.