AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
VesnaSystemBusinessLogic Class Reference

#include <VesnaSystemBusinessLogic.h>

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

Classes

class  DataClass
 

Public Member Functions

 VesnaSystemBusinessLogic ()
 
virtual ~VesnaSystemBusinessLogic ()
 
virtual bool GetConnectionBoardNumber (long &connectionBoardNumber) const
 
virtual bool GetConnectionBoardNumber (QString &connectionBoardNumberText) const
 
virtual bool GetIPAddress (const QString &device, QString &ipAddressOut) const
 
virtual bool SetIPAddress (const QString &device, const QString &ipAddress) const
 
virtual bool GetMacAddress (const QString &device, QString &macAddressOut) const
 
virtual bool GetBuildNumber (QString &buildNumber) const
 
virtual bool GetOSVersion (QString &osVersion) const
 
virtual bool GetDeviceSerialNumber (QString &serialNumber) const
 
virtual bool GetDeviceSerialNumber (int64_t &serialNumber) const
 
virtual bool GetCompanyID (int32_t &companyId) const
 
virtual bool GetCompanyID (QString &companyId) const
 
virtual bool GetWlanIface (QString &wlanInterface, int8_t id=0) const
 
virtual bool GetGsmInterface (QString &gsmInterface) const
 
virtual bool GetChipsetVersion (QString &chipsetVersion) const
 
virtual bool GetRootFSVersion (QString &rootFileSystemVersion) const
 
virtual bool GetWlanSignalStrength (bool &present, int &signalStrength) const
 
virtual bool GetGPRSSignalStrength (bool &present, int &signalStrength) const
 
virtual bool GetBrightness (int &brightness) const
 
virtual bool SetBrightness (int brightness)
 
virtual bool GetBrightnessTable (std::vector< int > &brightnessTable) const
 
virtual bool GetLightSensorValueInLux (int &value) const
 
virtual bool GetPowerSupplyState (bool &isPowerLoss) const
 
virtual bool GetBatteryVoltage (uint16_t &batteryVoltage) const
 
virtual void SlaveDeviceServoUnlock () const
 
virtual void SlaveDeviceServoLock () const
 
virtual bool SetDevicesBlockOut (bool blockoutEnabled) const
 SetDevicesBlockOut - sets BlockOut signal on deviceInterface. More...
 
virtual void ApplicationUIReady () const
 
virtual bool IsWlanIfaceOnline (bool &isWlanIfaceOnline) const
 
virtual bool GetWakeupInput (bool &stayRunning) const
 GetWakeupInput - check if wakeupInput is true (engine is running) More...
 
virtual bool SetSystemFeature (FeatureType feature, bool enable) const
 SetSystemFeature - sets device feature. More...
 
 VesnaSystemBusinessLogic ()
 
virtual ~VesnaSystemBusinessLogic ()
 
virtual bool GetConnectionBoardNumber (long &connectionBoardNumber) const
 
virtual bool GetConnectionBoardNumber (QString &connectionBoardNumberText) const
 
virtual bool GetIPAddress (const QString &device, QString &ipAddressOut) const
 
virtual bool SetIPAddress (const QString &device, const QString &ipAddress) const
 
virtual bool GetMacAddress (const QString &device, QString &macAddressOut) const
 
virtual bool GetBuildNumber (QString &buildNumber) const
 
virtual bool GetOSVersion (QString &osVersion) const
 
virtual bool GetDeviceSerialNumber (QString &serialNumber) const
 
virtual bool GetDeviceSerialNumber (int64_t &serialNumber) const
 
virtual bool GetCompanyID (int32_t &companyId) const
 
virtual bool GetCompanyID (QString &companyId) const
 
virtual bool GetWlanIface (QString &wlanInterface, int8_t id=0) const
 
virtual bool GetGsmInterface (QString &gsmInterface) const
 
virtual bool GetChipsetVersion (QString &chipsetVersion) const
 
virtual bool GetRootFSVersion (QString &rootFileSystemVersion) const
 
virtual bool GetWlanSignalStrength (bool &present, int &signalStrength) const
 
virtual bool GetGPRSSignalStrength (bool &present, int &signalStrength) const
 
virtual bool GetBrightness (int &brightness) const
 
virtual bool SetBrightness (int brightness)
 
virtual bool GetBrightnessTable (std::vector< int > &brightnessTable) const
 
virtual bool GetLightSensorValueInLux (int &value) const
 
virtual bool GetPowerSupplyState (bool &isPowerLoss) const
 
virtual bool GetBatteryVoltage (uint16_t &batteryVoltage) const
 
virtual void SlaveDeviceServoUnlock () const
 
virtual void SlaveDeviceServoLock () const
 
virtual bool SetDevicesBlockOut (bool blockoutEnabled) const
 SetDevicesBlockOut - sets BlockOut signal on deviceInterface. More...
 
virtual void ApplicationUIReady () const
 
virtual bool IsWlanIfaceOnline (bool &isWlanIfaceOnline) const
 
virtual bool GetWakeupInput (bool &stayRunning) const
 GetWakeupInput - check if wakeupInput is true (engine is running) More...
 
virtual bool SetSystemFeature (FeatureType feature, bool enable) const
 SetSystemFeature - sets device feature. More...
 
- Public Member Functions inherited from SystemBusinessLogic
 SystemBusinessLogic ()
 
virtual ~SystemBusinessLogic ()
 
virtual bool GetBuildNumber (QString &buildNumber, QString specificFilePath="")
 
virtual bool GetReleaseNumber (QString &releaseNumber)
 
virtual bool GetJenkinsBuildNumber (QString &jenkinsBuildNumber)
 
virtual bool GetBuildTime (QDateTime &buildTime)
 
virtual bool GetEngineIgnitionState (bool &engineIsRunning) const
 GetEngineIgnitionState - returns current engine ignition state / ignition switch state (it is analogy to block signal on 2.4 a 2.6 slaves) More...
 
virtual bool SetPowerOffTime (const int powerOffValueInSeconds) const
 SetPowerOffTime - sets device power off time value. More...
 
virtual bool SetShutdownTimeOnBattery (const int seconds) const
 SetShutdownTimeOnBattery. More...
 
 SystemBusinessLogic ()
 
virtual ~SystemBusinessLogic ()
 
virtual bool GetBuildNumber (QString &buildNumber, QString specificFilePath="")
 
virtual bool GetReleaseNumber (QString &releaseNumber)
 
virtual bool GetJenkinsBuildNumber (QString &jenkinsBuildNumber)
 
virtual bool GetBuildTime (QDateTime &buildTime)
 
virtual bool GetEngineIgnitionState (bool &engineIsRunning) const
 GetEngineIgnitionState - returns current engine ignition state / ignition switch state (it is analogy to block signal on 2.4 a 2.6 slaves) More...
 
virtual bool SetPowerOffTime (const int powerOffValueInSeconds) const
 SetPowerOffTime - sets device power off time value. More...
 
virtual bool SetShutdownTimeOnBattery (const int seconds) const
 SetShutdownTimeOnBattery. More...
 

Additional Inherited Members

- Public Types inherited from SystemBusinessLogic
enum  FeatureType {
  FeaturePowerDownKey = 0, FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4,
  FeaturePowerWatchdog = 5, FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10, FeaturePowerDownKey = 0,
  FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4, FeaturePowerWatchdog = 5,
  FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10
}
 
enum  FeatureType {
  FeaturePowerDownKey = 0, FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4,
  FeaturePowerWatchdog = 5, FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10, FeaturePowerDownKey = 0,
  FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4, FeaturePowerWatchdog = 5,
  FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10
}
 
- Protected Member Functions inherited from SystemBusinessLogic
bool GetDataFromBuildTXT (QString &output, QString prefix, QString delimiter, QString path="", bool valueOnNewLine=false)
 
bool GetDataFromBuildTXT (QString &output, QString prefix, QString delimiter, QString path="", bool valueOnNewLine=false)
 

Constructor & Destructor Documentation

VesnaSystemBusinessLogic::VesnaSystemBusinessLogic ( )
VesnaSystemBusinessLogic::~VesnaSystemBusinessLogic ( )
virtual
VesnaSystemBusinessLogic::VesnaSystemBusinessLogic ( )
virtual VesnaSystemBusinessLogic::~VesnaSystemBusinessLogic ( )
virtual

Member Function Documentation

void VesnaSystemBusinessLogic::ApplicationUIReady ( ) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual void VesnaSystemBusinessLogic::ApplicationUIReady ( ) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetBatteryVoltage ( uint16_t &  batteryVoltage) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetBatteryVoltage ( uint16_t &  batteryVoltage) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetBrightness ( int &  brightness) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetBrightness ( int &  brightness) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetBrightnessTable ( std::vector< int > &  brightnessTable) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetBrightnessTable ( std::vector< int > &  brightnessTable) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetBuildNumber ( QString &  buildNumber) const
virtual
bool VesnaSystemBusinessLogic::GetBuildNumber ( QString &  buildNumber) const
virtual
virtual bool VesnaSystemBusinessLogic::GetChipsetVersion ( QString &  chipsetVersion) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetChipsetVersion ( QString &  chipsetVersion) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetCompanyID ( int32_t &  companyId) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetCompanyID ( int32_t &  companyId) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetCompanyID ( QString &  companyId) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetCompanyID ( QString &  companyId) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetConnectionBoardNumber ( long &  connectionBoardNumber) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetConnectionBoardNumber ( long &  connectionBoardNumber) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetConnectionBoardNumber ( QString &  connectionBoardNumberText) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetConnectionBoardNumber ( QString &  connectionBoardNumberText) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetDeviceSerialNumber ( QString &  serialNumber) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetDeviceSerialNumber ( QString &  serialNumber) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetDeviceSerialNumber ( int64_t &  serialNumber) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetDeviceSerialNumber ( int64_t &  serialNumber) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetGPRSSignalStrength ( bool &  present,
int &  signalStrength 
) const
virtual
Note
only Vesna

Reimplemented from SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetGPRSSignalStrength ( bool &  present,
int &  signalStrength 
) const
virtual
Note
only Vesna

Reimplemented from SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetGsmInterface ( QString &  gsmInterface) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetGsmInterface ( QString &  gsmInterface) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetIPAddress ( const QString &  device,
QString &  ipAddressOut 
) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetIPAddress ( const QString &  device,
QString &  ipAddressOut 
) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetLightSensorValueInLux ( int &  value) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetLightSensorValueInLux ( int &  value) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetMacAddress ( const QString &  device,
QString &  macAddressOut 
) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetMacAddress ( const QString &  device,
QString &  macAddressOut 
) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetOSVersion ( QString &  osVersion) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetOSVersion ( QString &  osVersion) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetPowerSupplyState ( bool &  isPowerLoss) const
virtual
Note
only Vesna and Mikroelektronika SSV

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetPowerSupplyState ( bool &  isPowerLoss) const
virtual
Note
only Vesna and Mikroelektronika SSV

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetRootFSVersion ( QString &  rootFileSystemVersion) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetRootFSVersion ( QString &  rootFileSystemVersion) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetWakeupInput ( bool &  stayRunning) const
virtual

GetWakeupInput - check if wakeupInput is true (engine is running)

Note
Only for transdata_cortexa9 and IzmirDemo
Parameters
stayRunning- true if application should remain running, false if application should change state to suspend
Returns
true if successful, false otherwise

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetWakeupInput ( bool &  stayRunning) const
virtual

GetWakeupInput - check if wakeupInput is true (engine is running)

Note
Only for transdata_cortexa9 and IzmirDemo
Parameters
stayRunning- true if application should remain running, false if application should change state to suspend
Returns
true if successful, false otherwise

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetWlanIface ( QString &  wlanInterface,
int8_t  id = 0 
) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetWlanIface ( QString &  wlanInterface,
int8_t  id = 0 
) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::GetWlanSignalStrength ( bool &  present,
int &  signalStrength 
) const
virtual
Note
only Vesna

Reimplemented from SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::GetWlanSignalStrength ( bool &  present,
int &  signalStrength 
) const
virtual
Note
only Vesna

Reimplemented from SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::IsWlanIfaceOnline ( bool &  isWlanIfaceOnline) const
virtual
Note
only for emtest_xscale_26 and transdata_cortexa9
In case that wlan interface have static connection type( non DHCP ), wlan interface is active for all time but connection is invalid.

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::IsWlanIfaceOnline ( bool &  isWlanIfaceOnline) const
virtual
Note
only for emtest_xscale_26 and transdata_cortexa9
In case that wlan interface have static connection type( non DHCP ), wlan interface is active for all time but connection is invalid.

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::SetBrightness ( int  brightness)
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::SetBrightness ( int  brightness)
virtual
Note
only Vesna

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::SetDevicesBlockOut ( bool  blockoutEnabled) const
virtual

SetDevicesBlockOut - sets BlockOut signal on deviceInterface.

Parameters
blockoutEnabled
Note
devices can be restarted by setting blockOut first to false, then true
devices may not restart if delay between setting blockout is too small (one second should be enough)
currently only implemented in Vesna & XScale26
Returns

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::SetDevicesBlockOut ( bool  blockoutEnabled) const
virtual

SetDevicesBlockOut - sets BlockOut signal on deviceInterface.

Parameters
blockoutEnabled
Note
devices can be restarted by setting blockOut first to false, then true
devices may not restart if delay between setting blockout is too small (one second should be enough)
currently only implemented in Vesna & XScale26
Returns

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::SetIPAddress ( const QString &  device,
const QString &  ipAddress 
) const
virtual

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::SetIPAddress ( const QString &  device,
const QString &  ipAddress 
) const
virtual

Implements SystemBusinessLogic.

bool VesnaSystemBusinessLogic::SetSystemFeature ( FeatureType  feature,
bool  enable 
) const
virtual

SetSystemFeature - sets device feature.

Note
only for emtest_xscale26
Parameters
feature- device feature based on
See also
FeatureType
Parameters
enable- true if device feature will be enabled
Returns
true of successful, false otherwise

Implements SystemBusinessLogic.

virtual bool VesnaSystemBusinessLogic::SetSystemFeature ( FeatureType  feature,
bool  enable 
) const
virtual

SetSystemFeature - sets device feature.

Note
only for emtest_xscale26
Parameters
feature- device feature based on
See also
FeatureType
Parameters
enable- true if device feature will be enabled
Returns
true of successful, false otherwise

Implements SystemBusinessLogic.

void VesnaSystemBusinessLogic::SlaveDeviceServoLock ( ) const
virtual

Implements SystemBusinessLogic.

virtual void VesnaSystemBusinessLogic::SlaveDeviceServoLock ( ) const
virtual

Implements SystemBusinessLogic.

virtual void VesnaSystemBusinessLogic::SlaveDeviceServoUnlock ( ) const
virtual

Implements SystemBusinessLogic.

void VesnaSystemBusinessLogic::SlaveDeviceServoUnlock ( ) const
virtual

Implements SystemBusinessLogic.


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