Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Static Public Attributes | List of all members
DeviceInformationBusinessLogic Class Reference

#include <DeviceInformationBusinessLogic.h>

Inheritance diagram for DeviceInformationBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for DeviceInformationBusinessLogic:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 DeviceInformationBusinessLogic ()
 
virtual ~DeviceInformationBusinessLogic ()
 
void Init (DeviceManagerApp *deviceManager, DeviceCommonManagerApp *deviceCommonManager)
 Init - create and save DeviceInformation for every available device. More...
 
QList< DeviceIdentifierForMenuGetDeviceList ()
 GetDeviceList - returns list of unique device identifiers (QPair<device name, device order>), which can be later used to access device details. More...
 
void GetDeviceInformationAsQStringPairList (QList< QPair< QString, QString >> &deviceInformation, const DeviceIdentifierForMenu &deviceIdentifier)
 GetDeviceInformationAsQStringPairList returns information about single device specified by identifier. More...
 
void PrepareCurrentGPSData (QList< QPair< QString, QString >> &gpsInformation)
 
bool GetAllSlaveIPs (QVector< QString > &slaveIpCollection)
 GetAllSlaveIPs - get all slave IPs from DeviceCommonManager. More...
 
bool IsConnboardUsed ()
 IsConnboardUsed - check HwConfig for Connboard row. More...
 
- Public Member Functions inherited from BusinessLogic
 BusinessLogic (ApplicationDefines::BusinessLogicType businessLogicType, ApplicationDefines::BusinessLogicLifeTimeType businessLogicLifeTimeType)
 
virtual ~BusinessLogic ()
 
ApplicationDefines::BusinessLogicType GetBusinessLogicType () const
 
ApplicationDefines::BusinessLogicLifeTimeType GetBusinessLogicLifeTimeType () const
 

Static Public Attributes

static const
ApplicationDefines::BusinessLogicType 
mBusinessLogicType = ApplicationDefines::DeviceInformationBusinessLogic
 

Constructor & Destructor Documentation

DeviceInformationBusinessLogic::DeviceInformationBusinessLogic ( )
DeviceInformationBusinessLogic::~DeviceInformationBusinessLogic ( )
virtual

Member Function Documentation

bool DeviceInformationBusinessLogic::GetAllSlaveIPs ( QVector< QString > &  slaveIpCollection)

GetAllSlaveIPs - get all slave IPs from DeviceCommonManager.

Parameters
slaveIpCollection- output param, vector of slave IP addresses
Returns
true if successful, false otherwise (no slaves in HwConfig)
void DeviceInformationBusinessLogic::GetDeviceInformationAsQStringPairList ( QList< QPair< QString, QString >> &  deviceInformation,
const DeviceIdentifierForMenu deviceIdentifier 
)

GetDeviceInformationAsQStringPairList returns information about single device specified by identifier.

Parameters
deviceInformation- list of QString pairs to be filled with device information
deviceIdentifier- pair of "device name" and "order of device within device type" (f.e. "BuseTable", 3)
QList< DeviceIdentifierForMenu > DeviceInformationBusinessLogic::GetDeviceList ( )

GetDeviceList - returns list of unique device identifiers (QPair<device name, device order>), which can be later used to access device details.

Returns
list of device identifiers
void DeviceInformationBusinessLogic::Init ( DeviceManagerApp deviceManager,
DeviceCommonManagerApp deviceCommonManager 
)

Init - create and save DeviceInformation for every available device.

bool DeviceInformationBusinessLogic::IsConnboardUsed ( )

IsConnboardUsed - check HwConfig for Connboard row.

Returns
true if HwConfig contains Connboard, false otherwise
void DeviceInformationBusinessLogic::PrepareCurrentGPSData ( QList< QPair< QString, QString >> &  gpsInformation)

Member Data Documentation

const ApplicationDefines::BusinessLogicType DeviceInformationBusinessLogic::mBusinessLogicType = ApplicationDefines::DeviceInformationBusinessLogic
static

The documentation for this class was generated from the following files: