CSharedIntermediator Class Reference

List of all members.

Public Member Functions

 ~CSharedIntermediator ()
void AddBluetoothInfoL (TBluetoothInfo &aBtInfoElement)
void ResetArray ()
void GetAddress (TDes &aAddress, TInt aIndex)
void SetStopSearching (bool aStopSearching)
TBool StopSearching ()
CBluetoothRefreshTimerBTRefreshTimerPtr ()
void SetBTRefreshTimerPtr (CBluetoothRefreshTimer *aTimer)
CDeviceListContainerDeviceListContainer ()
void SetRefreshTimerInitlVal (TInt aRefreshTime)
TInt RefreshTimerInitlVal ()

Static Public Member Functions

static CSharedIntermediatorNewL (CDeviceListContainer *aView)
static CSharedIntermediatorNewLC (CDeviceListContainer *aView)

Detailed Description

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.


Constructor & Destructor Documentation

CSharedIntermediator::~CSharedIntermediator (  ) 

~CSharedIntermediator()

discussion Destructor.

Definition at line 62 of file sharedintermediator.cpp.


Member Function Documentation

CSharedIntermediator * CSharedIntermediator::NewL ( CDeviceListContainer aView  )  [static]

NewL()

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]

NewLC()

Definition at line 79 of file sharedintermediator.cpp.

void CSharedIntermediator::AddBluetoothInfoL ( TBluetoothInfo aBtInfoElement  ) 

AddBluetoothInfoL()

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 (  ) 

DeviceListContainer()

discussion Clears bluetooth info array.

Definition at line 120 of file sharedintermediator.cpp.

void CSharedIntermediator::GetAddress ( TDes &  aAddress,
TInt  aIndex 
)

GetAddress()

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  ) 

SetStopSearching()

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 (  ) 

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 (  ) 

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  ) 

SetBTRefreshTimerPtr()

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 (  ) 

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  ) 

SetRefreshTimerInitlVal()

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 (  ) 

SetRefreshTimerInitlVal()

discussion Get CBTRefreshTimer's initial refresh time. return CBTRefreshTimer instance's initial time.

Definition at line 147 of file sharedintermediator.cpp.


Generated by  doxygen 1.6.2