20#ifndef LIBREPCB_CORE_APIENDPOINT_H
21#define LIBREPCB_CORE_APIENDPOINT_H
26#include "../types/uuid.h"
27#include "../types/version.h"
81 const QVector<
Part>& parts) const noexcept;
Access to a LibrePCB API endpoint.
Definition apiendpoint.h:45
QUrl mUrl
Definition apiendpoint.h:101
void requestLibraryList() const noexcept
Definition apiendpoint.cpp:51
ApiEndpoint(const ApiEndpoint &other)=delete
void errorWhileFetchingPartsInformationStatus(const QString &errorMsg)
void partsInformationResponseReceived(const QByteArray &data) noexcept
Definition apiendpoint.cpp:195
void errorWhileFetchingPartsInformation(const QString &errorMsg)
void libraryListReceived(QList< Library > libs)
void libraryListResponseReceived(const QByteArray &data) noexcept
Definition apiendpoint.cpp:115
void partsInformationStatusResponseReceived(const QByteArray &data) noexcept
Definition apiendpoint.cpp:184
~ApiEndpoint() noexcept
Definition apiendpoint.cpp:44
void requestPartsInformationStatus() const noexcept
Definition apiendpoint.cpp:57
void requestPartsInformation(const QUrl &url, const QVector< Part > &parts) const noexcept
Definition apiendpoint.cpp:71
const QUrl & getUrl() const noexcept
Definition apiendpoint.h:75
void partsInformationReceived(const QJsonObject &info)
void errorWhileFetchingLibraryList(const QString &errorMsg)
void partsInformationStatusReceived(const QJsonObject &status)
The Part class.
Definition part.h:46
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
The Version class represents a version number in the format "1.42.7".
Definition version.h:58
Definition occmodel.cpp:77
Definition apiendpoint.h:54
QString author
Definition apiendpoint.h:58
QUrl iconUrl
Definition apiendpoint.h:62
bool recommended
Definition apiendpoint.h:60
Uuid uuid
Definition apiendpoint.h:55
QUrl downloadUrl
Definition apiendpoint.h:63
QByteArray downloadSha256
Definition apiendpoint.h:65
QSet< Uuid > dependencies
Definition apiendpoint.h:61
QString description
Definition apiendpoint.h:57
qint64 downloadSize
Definition apiendpoint.h:64
QString name
Definition apiendpoint.h:56
Version version
Definition apiendpoint.h:59
Definition apiendpoint.h:50
QString mpn
Definition apiendpoint.h:51
QString manufacturer
Definition apiendpoint.h:52