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

pk: Simplify backend members

parent 85887dca
......@@ -116,16 +116,14 @@ class DISCOVERCOMMON_EXPORT PackageKitBackend : public AbstractResourcesBackend
QSet<PackageKitResource*> m_packagesToDelete;
bool m_appstreamInitialized = false;
struct Packages {
struct {
QHash<QString, AbstractResource*> packages;
QHash<QString, QStringList> packageToApp;
QHash<QString, QVector<AppPackageKitResource*>> extendedBy;
void clear() { *this = {}; }
};
} m_packages;
QTimer m_delayedDetailsFetch;
QSet<QString> m_packageNamesToFetchDetails;
Packages m_packages;
QSharedPointer<OdrsReviewsBackend> m_reviews;
QPointer<PackageKit::Transaction> m_getUpdatesTransaction;
QThreadPool m_threadPool;
......
Markdown is supported
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