Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/FwupdBackend/FwupdTransaction.cpp
Context not available. | |||||
64 | qWarning("Fwupd Error: No Device ID set, cannot unlock device "); | 64 | qWarning("Fwupd Error: No Device ID set, cannot unlock device "); | ||
---|---|---|---|---|---|
65 | return false; | 65 | return false; | ||
66 | } | 66 | } | ||
67 | if (!fwupd_client_unlock (m_backend->client, device_id.toUtf8().constData(),nullptr, &error)) | 67 | if (!fwupd_client_unlock(m_backend->client, device_id.toUtf8().constData(),nullptr, &error)) | ||
68 | { | 68 | { | ||
69 | m_backend->handleError(&error); | 69 | m_backend->handleError(&error); | ||
70 | return false; | 70 | return false; | ||
Context not available. | |||||
140 | 140 | | |||
141 | m_iterate = true; | 141 | m_iterate = true; | ||
142 | QTimer::singleShot(100, this, &FwupdTransaction::updateProgress); | 142 | QTimer::singleShot(100, this, &FwupdTransaction::updateProgress); | ||
143 | if (!fwupd_client_install (m_backend->client, deviceId.toUtf8().constData(), localFile.toUtf8().constData(), install_flags, nullptr, &error)) | 143 | if (!fwupd_client_install(m_backend->client, deviceId.toUtf8().constData(), localFile.toUtf8().constData(), install_flags, nullptr, &error)) | ||
144 | { | 144 | { | ||
145 | m_backend->handleError(&error); | 145 | m_backend->handleError(&error); | ||
146 | m_iterate = false; | 146 | m_iterate = false; | ||
Context not available. | |||||
164 | setStatus(CommittingStatus); | 164 | setStatus(CommittingStatus); | ||
165 | if(progress()<100) | 165 | if(progress()<100) | ||
166 | { | 166 | { | ||
167 | setProgress(fwupd_client_get_percentage (m_backend->client)); | 167 | setProgress(fwupd_client_get_percentage(m_backend->client)); | ||
168 | QTimer::singleShot(100, this, &FwupdTransaction::updateProgress); | 168 | QTimer::singleShot(100, this, &FwupdTransaction::updateProgress); | ||
169 | } | 169 | } | ||
170 | } | 170 | } | ||
Context not available. |