56
|
|
|
Guenter Schwann |
11 years ago
|
 |
|
49
|
|
|
Ken VanDine |
11 years ago
|
 |
|
47
|
|
|
Sebastien Bacher |
11 years ago
|
 |
|
43
|
|
Adds a store property to the Transfer, which defaults to an cuc::Scope::app scope and appended with "HubIncoming/${id}". The hub will copy the files to that store when the transfer gets charged and set the proper paths based on the Store::url when setting Transfer::items.
To handle cleaning up temporary copies of files, this adds an additional state to the tranfer "finalized" and a finalize function to the API. When the importer calls finalize, the hub will purge the copied files, but only if the destination didn't specify their own persistent content store. On purge, we only remove the files if the store is set to the default used by the hub. If the destination set a different store, we leave the files there. This is an important implementation detail, without setting a persistent store, a QML app wouldn't have a way to copy the files out of the incoming directory into their own persistent location. Allowing the destination app to setStore, gives it a way to keep the files in it's own store for future access. If the destination doesn't set the store, we assume the destination app is done with the content before calling finalize.
Approved by PS Jenkins bot, Günter Schwann.
|
Ken VanDine |
11 years ago
|
 |
|
41
|
|
|
Ken VanDine |
11 years ago
|
 |
|
35
|
|
|
Guenter Schwann |
11 years ago
|
 |
|
30
|
|
|
Ken VanDine |
11 years ago
|
 |
|
28
|
|
|
Ken VanDine |
11 years ago
|
 |
|
26
|
|
|
Ken VanDine |
11 years ago
|
 |
|
10
|
|
|
Ken VanDine |
11 years ago
|
 |
|