Order a PCB via a LibrePCB API server.
More...
#include <orderpcbapirequest.h>
Inherits QObject.
Order a PCB via a LibrePCB API server.
See details at Order PCB.
◆ OrderPcbApiRequest() [1/3]
◆ OrderPcbApiRequest() [2/3]
◆ OrderPcbApiRequest() [3/3]
Constructor.
- Parameters
-
apiServerUrl | URL of the API server (as set in workspace settings). |
parent | Parent widget. |
◆ ~OrderPcbApiRequest()
◆ isReadyForUpload()
bool isReadyForUpload |
( |
| ) |
const |
|
inlinenoexcept |
Check if the information for upload was successfully received.
- Return values
-
◆ getReceivedInfoUrl()
const QUrl & getReceivedInfoUrl |
( |
| ) |
const |
|
inlinenoexcept |
Get received URL to service information.
- Returns
- URL (might be invalid if N/A or failed to receive information).
◆ getReceivedUploadUrl()
const QUrl & getReceivedUploadUrl |
( |
| ) |
const |
|
inlinenoexcept |
Get received URL where to upload the project.
- Returns
- Upload URL (might be invalid if failed to receive information).
◆ getReceivedMaxFileSize()
int getReceivedMaxFileSize |
( |
| ) |
const |
|
inlinenoexcept |
Get maximum allowed project file size to upload.
- Returns
- Max. size in bytes (-1 if unknown).
◆ startInfoRequest()
void startInfoRequest |
( |
| ) |
|
|
noexcept |
◆ startUpload()
void startUpload |
( |
const QByteArray & |
lppz, |
|
|
const QString & |
boardPath |
|
) |
| const |
|
noexcept |
◆ operator=()
◆ infoRequestSucceeded
void infoRequestSucceeded |
( |
QUrl |
infoUrl, |
|
|
int |
maxFileSize |
|
) |
| const |
|
signal |
Information request succeeded.
- Parameters
-
infoUrl | The received service information URL. |
maxFileSize | The received maximum file size in bytes (-1 if N/A). |
◆ infoRequestFailed
void infoRequestFailed |
( |
QString |
errorMsg | ) |
const |
|
signal |
Information request failed.
- Parameters
-
◆ uploadProgressState
void uploadProgressState |
( |
QString |
state | ) |
const |
|
signal |
Upload progress state changed.
- Parameters
-
state | SHort description of current state. |
◆ uploadProgressPercent
void uploadProgressPercent |
( |
int |
percent | ) |
const |
|
signal |
Upload progress in percent changed.
- Parameters
-
percent | Current upload progress in percent. |
◆ uploadSucceeded
void uploadSucceeded |
( |
QUrl |
redirectUrl | ) |
const |
|
signal |
Upload succeeded.
- Parameters
-
redirectUrl | The received URL to be opened in the web browser. |
◆ uploadFailed
void uploadFailed |
( |
QString |
errorMsg | ) |
const |
|
signal |
Information request failed.
- Parameters
-
◆ infoRequestResponseReceived()
void infoRequestResponseReceived |
( |
const QByteArray & |
data | ) |
|
|
privatenoexcept |
◆ uploadResponseReceived()
void uploadResponseReceived |
( |
const QByteArray & |
data | ) |
const |
|
privatenoexcept |
◆ mApiServerUrl
◆ mInfoUrl
◆ mUploadUrl
◆ mMaxFileSize
The documentation for this class was generated from the following files: