|
QBarcode
|
Store QrCode URL data. More...


Public Member Functions | |
| PayloadQrUrl () | |
| Create an empty payload URL. | |
| PayloadQrUrl (const QUrl &url) | |
| Allow to initialize a payload URL. | |
| PayloadQrUrl (const PayloadQrUrl &other) | |
| PayloadQrUrl & | operator= (const PayloadQrUrl &other) |
| PayloadQrUrl (PayloadQrUrl &&other) noexcept | |
| PayloadQrUrl & | operator= (PayloadQrUrl &&) noexcept |
| QUrl | getUrl () const |
| Retrieve payload URL. | |
| void | setUrl (const QUrl &url) |
| Allow to set payload URL. | |
Public Member Functions inherited from qbar::Payload | |
| Payload (const Payload &other) | |
| Payload & | operator= (const Payload &other) |
| Payload (Payload &&other) noexcept | |
| Payload & | operator= (Payload &&) noexcept |
| bool | isValid () const |
| Allow to verify if a payload is valid. | |
| PayloadType | getType () const |
| Get payload type. | |
| QByteArray | getData () const |
| Retrieve encoded data as bytes array. | |
| QString | getString () const |
| Retrieve encoded data as string. | |
| BarError | getLastError () const |
| Retrieve last error. | |
| void | clear () |
| Clear payload content. | |
Store QrCode URL data.
URL data will be properly encoded (percent encoding for special characters and UTF-8 management).
| qbar::PayloadQrUrl::PayloadQrUrl | ( | ) |
| qbar::PayloadQrUrl::PayloadQrUrl | ( | const QUrl & | url | ) |
| QUrl qbar::PayloadQrUrl::getUrl | ( | ) | const |
| void qbar::PayloadQrUrl::setUrl | ( | const QUrl & | url | ) |