Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/FwupdBackend/FwupdResource.h
Context not available. | |||||
73 | void setHomePage(const QUrl &homepage){ m_homepage = homepage;} | 73 | void setHomePage(const QUrl &homepage){ m_homepage = homepage;} | ||
---|---|---|---|---|---|
74 | void setLicense(const QString &license){ m_license = license;} | 74 | void setLicense(const QString &license){ m_license = license;} | ||
75 | void setIconName(const QString &iconName){ m_iconName = iconName;} | 75 | void setIconName(const QString &iconName){ m_iconName = iconName;} | ||
76 | void setReleaseDate(const QDate &date){ m_releaseDate = date;} | ||||
76 | virtual QStringList allResourceNames() const; | 77 | virtual QStringList allResourceNames() const; | ||
77 | 78 | | |||
78 | void setIsDeviceLocked(bool status){ isDeviceLocked = status;} | 79 | void setIsDeviceLocked(bool status){ isDeviceLocked = status;} | ||
Context not available. | |||||
80 | void setUpdateURI(const QString &updateURI){m_updateURI = updateURI;} | 81 | void setUpdateURI(const QString &updateURI){m_updateURI = updateURI;} | ||
81 | 82 | | |||
82 | void setAddonInstalled(const QString& addon, bool installed); | 83 | void setAddonInstalled(const QString& addon, bool installed); | ||
83 | QString sourceIcon() const override { return QStringLiteral("player-time"); } | 84 | QString sourceIcon() const override { return m_iconName; } | ||
84 | QDate releaseDate() const override { return {}; } | 85 | QDate releaseDate() const override { return m_releaseDate; } | ||
85 | 86 | | |||
86 | public: | 87 | public: | ||
87 | QString m_id; | 88 | QString m_id; | ||
Context not available. | |||||
93 | QString m_vendor; | 94 | QString m_vendor; | ||
94 | QStringList m_categories; | 95 | QStringList m_categories; | ||
95 | QString m_license; | 96 | QString m_license; | ||
97 | QDate m_releaseDate; | ||||
96 | 98 | | |||
97 | AbstractResource::State m_state; | 99 | AbstractResource::State m_state; | ||
98 | QUrl m_homepage; | 100 | QUrl m_homepage; | ||
Context not available. | |||||
109 | bool isLiveUpdatable = false; // True if device is live updatable | 111 | bool isLiveUpdatable = false; // True if device is live updatable | ||
110 | bool needsReboot = false; // True if device needs Reboot | 112 | bool needsReboot = false; // True if device needs Reboot | ||
111 | bool isDeviceRemoval = false; //True if device is Removal | 113 | bool isDeviceRemoval = false; //True if device is Removal | ||
114 | bool needsBootLoader = false; //True if BootLoader Required | ||||
112 | QString guidString; | 115 | QString guidString; | ||
113 | 116 | | |||
114 | 117 | | |||
Context not available. |