class CLbsBtGpsConfigImpl : public CActive |
LBS Bluetooth GPS Configuration API implementation
Public Member Functions | |
---|---|
~CLbsBtGpsConfigImpl () | |
TInt | AddDevice (const TBTDevAddr &, TInt , TLbsBtGpsEntryKey &) |
TInt | EmptyDeviceList () |
TAny * | ExtendedInterface ( TInt , TAny *, TAny *) |
TInt | GetDeviceCount ( TInt &) |
void | GetDeviceListL ( RPointerArray < TLbsBtGpsDeviceInfo > &) |
void | GetDeviceRecordListL ( RPointerArray < TLbsBtGpsDeviceRecord > &) |
CLbsBtGpsConfigImpl * | NewL ( MLbsBtGpsConfigObserver *) |
TInt | RemoveDevice ( TLbsBtGpsEntryKey ) |
TInt | ReorderDevice ( TLbsBtGpsEntryKey , TInt ) |
TInt | UpdateDevice (const TLbsBtGpsDeviceRecord &) |
Protected Member Functions | |
---|---|
void | AddDeviceL (const TBTDevAddr &, TInt , TLbsBtGpsEntryKey &) |
void | DoCancel () |
void | EmptyDeviceListL () |
TInt | EndTransaction () |
TInt | MoveDeviceRecord ( TInt , TInt ) |
TInt | ReadDeviceRecord ( TInt , TLbsBtGpsDeviceRecord &) |
void | RemoveDeviceL ( TLbsBtGpsEntryKey ) |
void | ReorderDeviceL ( TLbsBtGpsEntryKey , TInt ) |
void | RunL () |
TInt | StartTransactionL ( CRepository::TTransactionMode ) |
void | UpdateDeviceL (const TLbsBtGpsDeviceRecord &) |
TInt | WriteDeviceRecord ( TInt , const TLbsBtGpsDeviceRecord &) |
Private Member Functions | |
---|---|
CLbsBtGpsConfigImpl ( MLbsBtGpsConfigObserver *) | |
CLbsBtGpsConfigImpl (const CLbsBtGpsConfigImpl &) | |
void | ConstructL () |
CLbsBtGpsConfigImpl & | operator= (const CLbsBtGpsConfigImpl &) |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Private Attributes | |
---|---|
MLbsBtGpsConfigObserver * | iObserver |
CRepository * | iRepos |
Inherited Attributes | |
---|---|
CActive::iStatus |
CLbsBtGpsConfigImpl | ( | MLbsBtGpsConfigObserver * | aObserver | ) | [private] |
Class constructor
MLbsBtGpsConfigObserver * aObserver | [IN] Optional observer, which will recieve update notifications. |
CLbsBtGpsConfigImpl | ( | const CLbsBtGpsConfigImpl & | ) | [private] |
Prohibit copy constructor
const CLbsBtGpsConfigImpl & |
TInt | AddDevice | ( | const TBTDevAddr & | aAddress, |
TInt | aPosition, | |||
TLbsBtGpsEntryKey & | aKey | |||
) |
Adds a new device at the specified position index within the list
Specifying aPosition >= DeviceCount() will result in the device being added to the end of the list.
const TBTDevAddr & aAddress | [In] Address of the new device. |
TInt aPosition | [In] Position in the list at which to add the device, note that any existing entries below this position will be shifted down. |
TLbsBtGpsEntryKey & aKey | [Out] Recieves the unique key assigned to identify the new device. |
void | AddDeviceL | ( | const TBTDevAddr & | aAddress, |
TInt | aPosition, | |||
TLbsBtGpsEntryKey & | aKey | |||
) | [protected] |
Adds a new device at the specified position index within the list - leaving version
const TBTDevAddr & aAddress | |
TInt aPosition | |
TLbsBtGpsEntryKey & aKey |
TInt | EmptyDeviceList | ( | ) |
Empties the device list, removing all device entries
void | EmptyDeviceListL | ( | ) | [protected] |
Empties the device list, removing all device entries - leaving version
TAny * | ExtendedInterface | ( | TInt | aFunctionNumber, |
TAny * | aPtr1, | |||
TAny * | aPtr2 | |||
) | [virtual] |
This methods is reserved for future expansion and should not be used
TInt | GetDeviceCount | ( | TInt & | aCount | ) |
Returns the number of devices present in the list
TInt & aCount |
void | GetDeviceListL | ( | RPointerArray < TLbsBtGpsDeviceInfo > & | aList | ) |
Retrieves the list of devices
RPointerArray < TLbsBtGpsDeviceInfo > & aList | [Out] Reference to an empty RPointerArray to populate with device entries from the list. |
void | GetDeviceRecordListL | ( | RPointerArray < TLbsBtGpsDeviceRecord > & | aRecordList | ) |
Retrieves the list of device records
RPointerArray < TLbsBtGpsDeviceRecord > & aRecordList |
TInt | MoveDeviceRecord | ( | TInt | aOldIndex, |
TInt | aNewIndex | |||
) | [protected] |
Move a device record from old to new position
StartTransaction should have been called.
CLbsBtGpsConfigImpl * | NewL | ( | MLbsBtGpsConfigObserver * | aObserver | ) | [static] |
Static constructor (with observer) Creates an instance of the LBS Bluetooth GPS Configuration API implementation, specifying a callback to recieve update notifications.
MLbsBtGpsConfigObserver * aObserver | [IN] Observer which will recieve update notifications. |
TInt | ReadDeviceRecord | ( | TInt | aIndex, |
TLbsBtGpsDeviceRecord & | aDeviceRecord | |||
) | [protected] |
Read a device record from cenrep by index
StartTransaction should have been called.
TInt aIndex | [In] The index of the device entry to read |
TLbsBtGpsDeviceRecord & aDeviceRecord |
TInt | RemoveDevice | ( | TLbsBtGpsEntryKey | aKey | ) |
Removes a device from the list
TLbsBtGpsEntryKey aKey | [In] The key identifying the device. |
void | RemoveDeviceL | ( | TLbsBtGpsEntryKey | aKey | ) | [protected] |
Removes a device from the list - leaving version
TLbsBtGpsEntryKey aKey |
TInt | ReorderDevice | ( | TLbsBtGpsEntryKey | aKey, |
TInt | aNewPosition | |||
) |
Reorders a device in the list by specifying a new position index
The device identified by the key will assume the specified position in the list, shifting exsiting devices as required in order to achieve this.
Specifying aNewPosition = 0 will result in the device being moved to the start of the list. Specifying aNewPosition >= DeviceCount() will result in the device being moved to the end of the list.
When a device is moved towards the start of the list, other devices located between the old and new positions will be shifted towards the end of the list by one place. For example, starting with a list {A,B,C,D,E}, moving device D to position 1 would result in {A,D,B,C,E}.
Similarly, when a device is moved towards the end of the list, other devices located between the old and new positions will be shifted towards the start of the list by one place. For example, starting with a list {A,B,C,D,E}, moving device B to position 3 would result in {A,C,D,B,E}
TLbsBtGpsEntryKey aKey | [In] The key identifying the device. |
TInt aNewPosition | [In] New position index for the device in the list (where 0 indicates the start of the list). |
void | ReorderDeviceL | ( | TLbsBtGpsEntryKey | aKey, |
TInt | aNewPosition | |||
) | [protected] |
Reorders a device in the list by specifying a new position index - leaving version
TLbsBtGpsEntryKey aKey | |
TInt aNewPosition |
TInt | StartTransactionL | ( | CRepository::TTransactionMode | aMode | ) | [protected] |
Attempt to start a central repository transaction
CRepository::TTransactionMode aMode |
TInt | UpdateDevice | ( | const TLbsBtGpsDeviceRecord & | aDeviceRecord | ) |
Updates the device information for a device in the list
const TLbsBtGpsDeviceRecord & aDeviceRecord |
void | UpdateDeviceL | ( | const TLbsBtGpsDeviceRecord & | aDeviceRecord | ) | [protected] |
Updates the device information for a device in the list - leaving version
const TLbsBtGpsDeviceRecord & aDeviceRecord |
TInt | WriteDeviceRecord | ( | TInt | aIndex, |
const TLbsBtGpsDeviceRecord & | aDeviceRecord | |||
) | [protected] |
Write a device record to cenrep by index
StartTransaction should have been called.
TInt aIndex | [In] The index of the device entry to write |
const TLbsBtGpsDeviceRecord & aDeviceRecord |
CLbsBtGpsConfigImpl & | operator= | ( | const CLbsBtGpsConfigImpl & | ) | [private] |
Prohibit assigment operator
const CLbsBtGpsConfigImpl & |
MLbsBtGpsConfigObserver * | iObserver | [private] |
Pointer to observer object (optional, can be NULL)
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.