20#ifndef LIBREPCB_CORE_ORDERPCBAPIREQUEST_H
21#define LIBREPCB_CORE_ORDERPCBAPIREQUEST_H
57 QObject* parent =
nullptr) noexcept;
117 const QString& boardPath) const noexcept;
Order a PCB via a LibrePCB API server.
Definition orderpcbapirequest.h:42
void uploadSucceeded(QUrl redirectUrl) const
Upload succeeded.
void startUpload(const QByteArray &lppz, const QString &boardPath) const noexcept
Upload the project.
Definition orderpcbapirequest.cpp:69
const QUrl & getReceivedInfoUrl() const noexcept
Get received URL to service information.
Definition orderpcbapirequest.h:79
void uploadProgressState(QString state) const
Upload progress state changed.
void uploadFailed(QString errorMsg) const
Information request failed.
void infoRequestSucceeded(QUrl infoUrl, int maxFileSize) const
Information request succeeded.
void uploadResponseReceived(const QByteArray &data) const noexcept
Definition orderpcbapirequest.cpp:142
const QUrl & getReceivedUploadUrl() const noexcept
Get received URL where to upload the project.
Definition orderpcbapirequest.h:86
bool isReadyForUpload() const noexcept
Check if the information for upload was successfully received.
Definition orderpcbapirequest.h:72
QUrl mUploadUrl
Definition orderpcbapirequest.h:175
int mMaxFileSize
Definition orderpcbapirequest.h:176
void infoRequestResponseReceived(const QByteArray &data) noexcept
Definition orderpcbapirequest.cpp:119
QUrl mInfoUrl
Definition orderpcbapirequest.h:174
void uploadProgressPercent(int percent) const
Upload progress in percent changed.
int getReceivedMaxFileSize() const noexcept
Get maximum allowed project file size to upload.
Definition orderpcbapirequest.h:93
OrderPcbApiRequest()=delete
void startInfoRequest() noexcept
Request the upload information from the API server.
Definition orderpcbapirequest.cpp:54
OrderPcbApiRequest(const OrderPcbApiRequest &other)=delete
QUrl mApiServerUrl
Definition orderpcbapirequest.h:171
void infoRequestFailed(QString errorMsg) const
Information request failed.
Definition occmodel.cpp:76