Public Member Functions | |
~CSharedIntermediator () | |
void | AddBluetoothInfoL (TBluetoothInfo &aBtInfoElement) |
void | ResetArray () |
void | GetAddress (TDes &aAddress, TInt aIndex) |
void | SetStopSearching (bool aStopSearching) |
TBool | StopSearching () |
CBluetoothRefreshTimer * | BTRefreshTimerPtr () |
void | SetBTRefreshTimerPtr (CBluetoothRefreshTimer *aTimer) |
CDeviceListContainer * | DeviceListContainer () |
void | SetRefreshTimerInitlVal (TInt aRefreshTime) |
TInt | RefreshTimerInitlVal () |
Static Public Member Functions | |
static CSharedIntermediator * | NewL (CDeviceListContainer *aView) |
static CSharedIntermediator * | NewLC (CDeviceListContainer *aView) |
CSharedInterMediator Transmits data between main program and thread one, Thread one reads commands, which are given in UI (main program).
Definition at line 50 of file sharedintermediator.h.
CSharedIntermediator::~CSharedIntermediator | ( | ) |
discussion Destructor.
Definition at line 62 of file sharedintermediator.cpp.
CSharedIntermediator * CSharedIntermediator::NewL | ( | CDeviceListContainer * | aView | ) | [static] |
discussion Create new CSharedIntermediator object. param aView is a UI's container. return a pointer to the created instance of CSharedIntermediator.
Definition at line 72 of file sharedintermediator.cpp.
CSharedIntermediator * CSharedIntermediator::NewLC | ( | CDeviceListContainer * | aView | ) | [static] |
Definition at line 79 of file sharedintermediator.cpp.
void CSharedIntermediator::AddBluetoothInfoL | ( | TBluetoothInfo & | aBtInfoElement | ) |
discussion Add TBluetoothInfo object into iBluetoothInfoArray which contains bluetooth device's data and adds new bluetooth device's name into UI's list box. param aNamEntry name of the device.
Definition at line 100 of file sharedintermediator.cpp.
void CSharedIntermediator::ResetArray | ( | ) |
discussion Clears bluetooth info array.
Definition at line 120 of file sharedintermediator.cpp.
void CSharedIntermediator::GetAddress | ( | TDes & | aAddress, | |
TInt | aIndex | |||
) |
discussion Get bluetooth device address from iBluetoothInfoArray. param Address Returned a bluetooth device address. param aIndex valid index of iBluetoothInfoArray.
Definition at line 157 of file sharedintermediator.cpp.
void CSharedIntermediator::SetStopSearching | ( | bool | aStopSearching | ) |
discussion Set class member variable, which tells to thread that Activescheduler's wait loop should stop. After that thread cleans up itself and is terminated "naturally". param aStopSearching new value for parameter iStopSearching.
Definition at line 175 of file sharedintermediator.cpp.
TBool CSharedIntermediator::StopSearching | ( | ) |
discussion Get class member variable, which tells to thread that Activescheduler's wait loop should stop. return True when program should be closed, false otherwise.
Definition at line 185 of file sharedintermediator.cpp.
CBluetoothRefreshTimer * CSharedIntermediator::BTRefreshTimerPtr | ( | ) |
discussion Get thread's bluetooth refresh timer pointer. New refresh time is set in main program. return thread one's bluetooth refresh timer pointer.
Definition at line 197 of file sharedintermediator.cpp.
void CSharedIntermediator::SetBTRefreshTimerPtr | ( | CBluetoothRefreshTimer * | aTimer | ) |
discussion Set thread's bluetooth refresh timer pointer. New refresh time is set in main program. param aTimer is bluetooth discovery refresh timer.
Definition at line 208 of file sharedintermediator.cpp.
CDeviceListContainer * CSharedIntermediator::DeviceListContainer | ( | ) |
discussion Get UI's container pointer. Function is used when thread one CBTRefreshTimer clears UI's listbox. return thread one bluetooth refresh timer pointer.
Definition at line 219 of file sharedintermediator.cpp.
void CSharedIntermediator::SetRefreshTimerInitlVal | ( | TInt | aRefreshTime | ) |
discussion Set CBTRefreshTimer's initial refresh time. param aRefreshTime is a new refresh time.
Definition at line 132 of file sharedintermediator.cpp.
TInt CSharedIntermediator::RefreshTimerInitlVal | ( | ) |
discussion Get CBTRefreshTimer's initial refresh time. return CBTRefreshTimer instance's initial time.
Definition at line 147 of file sharedintermediator.cpp.