Parts information provider & cache.
More...
#include <partinformationprovider.h>
Inherits QObject.
Parts information provider & cache.
To avoid duplicate API requests, received information is cached in the global instance instance().
◆ PartInformationProvider() [1/2]
◆ PartInformationProvider() [2/2]
◆ ~PartInformationProvider()
◆ isOperational()
bool isOperational |
( |
| ) |
const |
|
noexcept |
◆ getProviderName()
const QString & getProviderName |
( |
| ) |
const |
|
inlinenoexcept |
◆ getProviderUrl()
const QUrl & getProviderUrl |
( |
| ) |
const |
|
inlinenoexcept |
◆ getProviderLogoUrl()
const QUrl & getProviderLogoUrl |
( |
| ) |
const |
|
inlinenoexcept |
◆ getProviderLogo()
const QPixmap getProviderLogo |
( |
| ) |
const |
|
inlinenoexcept |
◆ getInfoUrl()
const QUrl & getInfoUrl |
( |
| ) |
const |
|
inlinenoexcept |
◆ setCacheDir()
void setCacheDir |
( |
const FilePath & |
dir | ) |
|
|
noexcept |
◆ setApiEndpoint()
void setApiEndpoint |
( |
const QUrl & |
url | ) |
|
|
noexcept |
◆ startOperation()
bool startOperation |
( |
int |
timeoutMs = 0 | ) |
|
|
noexcept |
◆ getPartInfo()
◆ waitForPartInfo()
◆ isOngoing()
bool isOngoing |
( |
const Part & |
part | ) |
const |
|
noexcept |
◆ scheduleRequest()
void scheduleRequest |
( |
const Part & |
part | ) |
|
|
noexcept |
◆ requestScheduledParts()
void requestScheduledParts |
( |
| ) |
|
|
noexcept |
◆ instance()
◆ operator=()
◆ serviceOperational
void serviceOperational |
( |
| ) |
|
|
signal |
◆ providerInfoChanged
void providerInfoChanged |
( |
| ) |
|
|
signal |
◆ newPartsInformationAvailable
void newPartsInformationAvailable |
( |
| ) |
|
|
signal |
◆ reset()
◆ requestStatus()
◆ statusReceived()
void statusReceived |
( |
const QJsonObject & |
json | ) |
|
|
privatenoexcept |
◆ errorWhileFetchingStatus()
void errorWhileFetchingStatus |
( |
const QString & |
errorMsg | ) |
|
|
privatenoexcept |
◆ partsInformationReceived()
void partsInformationReceived |
( |
const QJsonObject & |
json | ) |
|
|
privatenoexcept |
◆ errorWhileFetchingPartsInformation()
void errorWhileFetchingPartsInformation |
( |
const QString & |
errorMsg | ) |
|
|
privatenoexcept |
◆ removeOutdatedInformation()
void removeOutdatedInformation |
( |
| ) |
|
|
privatenoexcept |
◆ loadCacheFromDisk()
void loadCacheFromDisk |
( |
| ) |
|
|
privatenoexcept |
◆ saveCacheToDisk()
◆ mCacheFp
◆ mEndpoint
◆ mErrorCounter
◆ mDisabledDueToErrors
bool mDisabledDueToErrors |
|
private |
◆ mStatusRequestedTimestamp
qint64 mStatusRequestedTimestamp |
|
private |
◆ mStatusReceived
◆ mProviderName
◆ mProviderUrl
◆ mProviderLogoUrl
◆ mProviderLogo
Requested asynchronously.
◆ mInfoUrl
◆ mQueryUrl
◆ mQueryMaxPartCount
◆ mScheduledParts
QVector<Part> mScheduledParts |
|
private |
◆ mRequestedParts
QSet<Part> mRequestedParts |
|
private |
◆ mCache
◆ mCacheModified
The documentation for this class was generated from the following files: