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

#include <DriverIdentificationBusinessLogic.h>

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

Public Member Functions

 DriverIdentificationBusinessLogic ()
 
virtual ~DriverIdentificationBusinessLogic ()
 
bool IsDriverCardRequiredForLogin ()
 
bool IsDriverCardRequiredForLoginDuringOpenDeduction ()
 
bool IsDriverLoginValidByInputData (const QString &login, const QString &pin, QString &driverName)
 
bool ProcessAutomaticLoginReply (const QJsonDocument &reply, QString &login, QString &pin, QString &driverName)
 ProcessAutomaticLoginReply - parse JSON reply and check parsed credentials in input data. 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::DriverIdentificationBusinessLogic
 

Constructor & Destructor Documentation

DriverIdentificationBusinessLogic::DriverIdentificationBusinessLogic ( )
DriverIdentificationBusinessLogic::~DriverIdentificationBusinessLogic ( )
virtual

Member Function Documentation

bool DriverIdentificationBusinessLogic::IsDriverCardRequiredForLogin ( )
bool DriverIdentificationBusinessLogic::IsDriverCardRequiredForLoginDuringOpenDeduction ( )
bool DriverIdentificationBusinessLogic::IsDriverLoginValidByInputData ( const QString &  login,
const QString &  pin,
QString &  driverName 
)

Here is the caller graph for this function:

bool DriverIdentificationBusinessLogic::ProcessAutomaticLoginReply ( const QJsonDocument &  reply,
QString &  login,
QString &  pin,
QString &  driverName 
)

ProcessAutomaticLoginReply - parse JSON reply and check parsed credentials in input data.

Returns
true if JSON reply contains valid driver credentials, false otherwise (error parsing JSON, bad credentials)
Note
If parsed driver number is "0", current driver should be logged out - "driverName" and "pin" will not contain valid data.

Here is the call graph for this function:

Member Data Documentation

const ApplicationDefines::BusinessLogicType DriverIdentificationBusinessLogic::mBusinessLogicType = ApplicationDefines::DriverIdentificationBusinessLogic
static

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