Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/PackageKitBackend/PackageKitUpdater.h
Show All 18 Lines | |||||
19 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
20 | #ifndef PACKAGEKITUPDATER_H | 20 | #ifndef PACKAGEKITUPDATER_H | ||
21 | #define PACKAGEKITUPDATER_H | 21 | #define PACKAGEKITUPDATER_H | ||
22 | 22 | | |||
23 | #include <resources/AbstractBackendUpdater.h> | 23 | #include <resources/AbstractBackendUpdater.h> | ||
24 | #include "PackageKitBackend.h" | 24 | #include "PackageKitBackend.h" | ||
25 | #include <PackageKit/Transaction> | 25 | #include <PackageKit/Transaction> | ||
26 | 26 | | |||
27 | int percentageWithStatus(PackageKit::Transaction::Status status, uint percentage); | ||||
28 | | ||||
27 | class PackageKitUpdater : public AbstractBackendUpdater | 29 | class PackageKitUpdater : public AbstractBackendUpdater | ||
28 | { | 30 | { | ||
29 | Q_OBJECT | 31 | Q_OBJECT | ||
30 | public: | 32 | public: | ||
31 | explicit PackageKitUpdater(PackageKitBackend * parent = nullptr); | 33 | explicit PackageKitUpdater(PackageKitBackend * parent = nullptr); | ||
32 | ~PackageKitUpdater() override; | 34 | ~PackageKitUpdater() override; | ||
33 | 35 | | |||
34 | void prepare() override; | 36 | void prepare() override; | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |