Image Uploader Scripting API: UploadEngineManager Class Reference

| Image Uploader Scripting API

Public Member Functions | List of all members
UploadEngineManager Class Reference

## Public Member Functions

| UploadEngineManager (CUploadEngineList *uploadEngineList, IUploadErrorHandler *uploadErrorHandler, std::shared_ptr< INetworkClientFactory > factory)
| clearThreadData ()
CScriptUploadEngine * | getScriptUploadEngine (ServerProfile serverProfile)
CAbstractUploadEngine * | getUploadEngine (ServerProfile serverProfile)
| resetAuthorization (ServerProfile serverProfile)
| resetFailedAuthorization ()
| setScriptsDirectory (string directory)
| unloadUploadEngines ()

## Detailed Description

UploadEngineManager class manages upload engines (instances of classes derivated from CAbstractUploadEngine). and their lifetime

## Member Function Documentation

## ◆ clearThreadData()

clearThreadData | ( |  | ) |

This function destroys all upload engines owned by current thread and all associated Scripting API data.

## ◆ getUploadEngine()

CAbstractUploadEngine* getUploadEngine | ( | ServerProfile | serverProfile | ) |

Load and create upload engine. Object is owned by UploadEngineManager. CScriptUploadEngine functions can be called only in the thread it has been created.

## ◆ resetAuthorization()

resetAuthorization | ( | ServerProfile | serverProfile | ) |

Reset authorization on this server (failed and succeeded). It is called when user starts new upload

## ◆ resetFailedAuthorization()

resetFailedAuthorization | ( |  | ) |

Reset failed authorization on ALL servers

## ◆ unloadUploadEngines()

unloadUploadEngines | ( |  | ) |

Force unload all cached upload engines