#include <DriverIdentificationBusinessLogic.h>
| DriverIdentificationBusinessLogic::DriverIdentificationBusinessLogic |
( |
| ) |
|
| DriverIdentificationBusinessLogic::~DriverIdentificationBusinessLogic |
( |
| ) |
|
|
virtual |
| bool DriverIdentificationBusinessLogic::IsDriverCardRequiredForLogin |
( |
| ) |
|
| bool DriverIdentificationBusinessLogic::IsDriverCardRequiredForLoginDuringOpenDeduction |
( |
| ) |
|
| bool DriverIdentificationBusinessLogic::IsDriverLoginValidByInputData |
( |
const QString & |
login, |
|
|
const QString & |
pin, |
|
|
QString & |
driverName |
|
) |
| |
| 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.
The documentation for this class was generated from the following files: