#include <ProductPatcher.h>


Public Types | |
| enum | Status { kSuccess = 0, kErrorEncountered, kAborted } |
Public Member Functions | |
| bool | Start (const char *productPath, const char *patchIndexURL, const char *patchDataURL, const bool multiThread=false, const size_t chunkSize=1024 *1024) |
| bool | Stop (void) |
| bool | GetCompleted (void) |
| virtual bool | CallbackUpdateProgressProduct (const size_t fileIndex, const size_t maxFileIndex) |
| virtual bool | CallbackUpdateDownloadPatch (const char *patchingFile, const size_t filePosition, const size_t fileLength) |
| virtual bool | CallbackUpdateProgressFile (const char *patchingFile, const size_t filePosition, const size_t fileLength) |
| virtual void | CallbackComplete (const Status status) |
| A virtual callback that is triggered when the patching is complete. | |
| virtual void | CallbackFailedToReadFile (const char *file) |
| A virtual callback that is triggered when there is an error. | |
Protected Member Functions | |
| void | Tidy (void) |
| bool Start | ( | const char * | productPath, | |
| const char * | patchIndexURL, | |||
| const char * | patchDataURL, | |||
| const bool | multiThread = false, |
|||
| const size_t | chunkSize = 1024 *1024 | |||
| ) |
Starts patching a product given patch data paths.
| productPath | The paths to the product to patch. | |
| multiThread | By default the scan does not use an extra thread. Using true will start a thread to start the patch process and Start() will return immediately. | |
| chunkSize | The number of bytes to use for a file buffer when accessing files. By default this uses a megabyte. |
| bool Stop | ( | void | ) |
Stops the current patch if it is running.
| bool GetCompleted | ( | void | ) |
Tests the completion state of the last patch.
| virtual bool CallbackUpdateProgressProduct | ( | const size_t | fileIndex, | |
| const size_t | maxFileIndex | |||
| ) | [virtual] |
A virtual callback that is triggered during the patching process.
| virtual bool CallbackUpdateDownloadPatch | ( | const char * | patchingFile, | |
| const size_t | filePosition, | |||
| const size_t | fileLength | |||
| ) | [virtual] |
A virtual callback that is triggered during the patching process.
| virtual bool CallbackUpdateProgressFile | ( | const char * | patchingFile, | |
| const size_t | filePosition, | |||
| const size_t | fileLength | |||
| ) | [virtual] |
A virtual callback that is triggered during the patching process.
1.5.3