QBarcode
Loading...
Searching...
No Matches
qbar::PayloadQrUrl Class Reference

Store QrCode URL data. More...

Inheritance diagram for qbar::PayloadQrUrl:
Collaboration diagram for qbar::PayloadQrUrl:

Public Member Functions

 PayloadQrUrl ()
 Create an empty payload URL.
 
 PayloadQrUrl (const QUrl &url)
 Allow to initialize a payload URL.
 
 PayloadQrUrl (const PayloadQrUrl &other)
 
PayloadQrUrloperator= (const PayloadQrUrl &other)
 
 PayloadQrUrl (PayloadQrUrl &&other) noexcept
 
PayloadQrUrloperator= (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)
 
Payloadoperator= (const Payload &other)
 
 Payload (Payload &&other) noexcept
 
Payloadoperator= (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.
 

Detailed Description

Store QrCode URL data.

URL data will be properly encoded (percent encoding for special characters and UTF-8 management).

Constructor & Destructor Documentation

◆ PayloadQrUrl() [1/2]

qbar::PayloadQrUrl::PayloadQrUrl ( )

Create an empty payload URL.

This payload will be invalid.

See also
isValid()
setUrl()

◆ PayloadQrUrl() [2/2]

qbar::PayloadQrUrl::PayloadQrUrl ( const QUrl & url)

Allow to initialize a payload URL.

Parameters
[in]URLPayload URL to use.
See also
isValid()
setUrl()

Member Function Documentation

◆ getUrl()

QUrl qbar::PayloadQrUrl::getUrl ( ) const

Retrieve payload URL.

Returns
Returns current URL of payload.
See also
setUrl()

◆ setUrl()

void qbar::PayloadQrUrl::setUrl ( const QUrl & url)

Allow to set payload URL.

Parameters
[in]URLPayload URL to use.
See also
getUrl()

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