Commit 4962a6ed authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: simplify the backend

Don't return boolean for the fun of it.
If we have a local path, just put it in a QString, don't keep going back
and forth from QUrl as if it could have become magically a remote URL.
parent faf67470
......@@ -78,13 +78,13 @@ public:
FwupdClient *client;
bool downloadFile(const QUrl &uri, const QString &filename);
bool refreshRemotes(uint cacheAge);
bool refreshRemote(FwupdRemote *remote, uint cacheAge);
const QUrl cacheFile(const QString &kind, const QFileInfo &resource);
void refreshRemotes(uint cacheAge);
void refreshRemote(FwupdRemote *remote, uint cacheAge);
QString cacheFile(const QString &kind, const QFileInfo &resource);
FwupdResource * createDevice(FwupdDevice *device);
FwupdResource * createRelease(FwupdDevice *device);
FwupdResource * createApp(FwupdDevice *device);
QByteArray getChecksum(const QUrl filename, QCryptographicHash::Algorithm hashAlgorithm);
QByteArray getChecksum(const QString &filename, QCryptographicHash::Algorithm hashAlgorithm);
QString buildDeviceID(FwupdDevice* device);
void addUpdates();
void addResourceToList(FwupdResource *res);
......
......@@ -113,7 +113,6 @@ public:
bool needsBootLoader = false; //True if BootLoader Required
QString guidString;
QVector<FwupdResource*> m_releases; // A list of all references to releases of a device.
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment