diff options
| author | Javier <dev.git@javispedro.com> | 2016-01-02 03:31:42 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2016-02-12 00:07:55 +0100 |
| commit | 5dc645452192f1e0b2261ec261945e310c77f8da (patch) | |
| tree | 7ae609824320b35783fe5954f7f258d65a92666c /daemon/bankmanager.cpp | |
| parent | b8f4002115abfc7a63af023e6199284041368a62 (diff) | |
implement the AppFetch manager, including upload based on AppId
Conflicts:
daemon/daemon.pro
daemon/manager.cpp
daemon/manager.h
daemon/watchconnector.h
Diffstat (limited to 'daemon/bankmanager.cpp')
| -rw-r--r-- | daemon/bankmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/bankmanager.cpp b/daemon/bankmanager.cpp index 797d7e3..3df83e4 100644 --- a/daemon/bankmanager.cpp +++ b/daemon/bankmanager.cpp @@ -93,7 +93,7 @@ bool BankManager::uploadApp(const QUuid &uuid, int slot) _slots[slot].name.clear(); _slots[slot].uuid = QUuid(); - upload->uploadAppBinary(slot, binaryFile.data(), info.crcFile(AppInfo::APPLICATION), + upload->uploadAppBinaryInSlot(slot, binaryFile.data(), info.crcFile(AppInfo::APPLICATION), [this, info, binaryFile, slot]() { qCDebug(l) << "app binary upload succesful"; binaryFile->close(); @@ -102,7 +102,7 @@ bool BankManager::uploadApp(const QUuid &uuid, int slot) if (info.type() == "worker") { QSharedPointer<QIODevice> workerFile(info.openFile(AppInfo::WORKER)); if (workerFile) { - upload->uploadAppWorker(slot, workerFile.data(), info.crcFile(AppInfo::WORKER), + upload->uploadAppWorkerInSlot(slot, workerFile.data(), info.crcFile(AppInfo::WORKER), [this, workerFile, slot]() { qCDebug(l) << "app worker upload succesful"; workerFile->close(); @@ -116,7 +116,7 @@ bool BankManager::uploadApp(const QUuid &uuid, int slot) // Proceed to upload the resource file QSharedPointer<QIODevice> resourceFile(info.openFile(AppInfo::RESOURCES)); if (resourceFile) { - upload->uploadAppResources(slot, resourceFile.data(), info.crcFile(AppInfo::RESOURCES), + upload->uploadAppResourcesInSlot(slot, resourceFile.data(), info.crcFile(AppInfo::RESOURCES), [this, resourceFile, slot]() { qCDebug(l) << "app resources upload succesful"; resourceFile->close(); |
