|
| | DataClass (ApplicationStateManager *stateManager) |
| |
| | ~DataClass () |
| |
| bool | GetItemFromQRCode (const QString &barcodeString, const int maximumDigitCount, int &parsedCharacterCount, bool variableLength, QStringRef &scannedItem) |
| | GetItemFromQRCode - take some characters from barcodeString and return it as QStringRef. More...
|
| |
| bool | CompareChecksum (const QString &barcodeString) |
| | CompareChecksum - computes checksum from string (omits last two characters), compares it to last two digits of string. More...
|
| |
| bool | FindBusStopName (const QStringRef &lineRef, const QStringRef &tripRef, const QStringRef &lineOrder, QString &busStopName) |
| | FindBusStopName - try to find bus stop name from string references to line, trip and bus stop line order. More...
|
| |
| StateScanQRCode::DataClass::~DataClass |
( |
| ) |
|
| bool StateScanQRCode::DataClass::CompareChecksum |
( |
const QString & |
barcodeString | ) |
|
CompareChecksum - computes checksum from string (omits last two characters), compares it to last two digits of string.
- Parameters
-
| barcodeString | - analyzed string |
- Returns
| bool StateScanQRCode::DataClass::FindBusStopName |
( |
const QStringRef & |
lineRef, |
|
|
const QStringRef & |
tripRef, |
|
|
const QStringRef & |
lineOrder, |
|
|
QString & |
busStopName |
|
) |
| |
FindBusStopName - try to find bus stop name from string references to line, trip and bus stop line order.
- Parameters
-
| busStopName | - output variable |
- Returns
- true if bus stop name was found, false otherwise
| bool StateScanQRCode::DataClass::GetItemFromQRCode |
( |
const QString & |
barcodeString, |
|
|
const int |
maximumDigitCount, |
|
|
int & |
parsedCharacterCount, |
|
|
bool |
variableLength, |
|
|
QStringRef & |
scannedItem |
|
) |
| |
GetItemFromQRCode - take some characters from barcodeString and return it as QStringRef.
- Parameters
-
| barcodeString | - source string |
| maximumDigitCount | - how many characters should be read |
| parsedCharacterCount | - how many characters of source string has already been read
- used as starting index of current record in source string (input parameter)
- it is increased by record length after record is read (output parameter)
|
| variableLength | - true if record has variable length (record length is then determined by first digit of record) |
| scannedItem | - output param, reference to read string |
- Returns
- true if everything is OK, false if error occured
The documentation for this class was generated from the following file: