struct Core::Portable::ArchiveUtils::LoadCompletionHandler
Overview
Callback interface for asynchronous archiving operations. More…
#include <corepersistence.h> struct LoadCompletionHandler: public Core::Portable::FileIOCompletionHandler { // fields Archiver::Format format; int numPreAllocatedAttribs; bool inplace; bool completeAsync; bool canceled; // construction LoadCompletionHandler( Archiver::Format format = Archiver::kJSON, int numPreAllocatedAttribs = 0, bool inplace = false, bool completeAsync = false ); // methods virtual void loadCompleted( Attributes* attributes, CStringPtr filename, bool& retainData ) = 0; virtual void onLoadFileCompleted(IO::MemoryStream* data, CStringPtr filename); virtual void onLoadFileCompletedAsync( IO::MemoryStream* data, CStringPtr filename ); virtual void onCancel(); };
Inherited Members
public: // methods virtual void onSaveFileCompleted(CStringPtr filename); virtual void onLoadFileCompleted(IO::MemoryStream* data, CStringPtr filename); virtual void onLoadFileCompletedAsync( IO::MemoryStream* data, CStringPtr filename ); virtual void onCancel();
Detailed Documentation
Callback interface for asynchronous archiving operations.
Methods
virtual void onLoadFileCompleted(IO::MemoryStream* data, CStringPtr filename)
called from main thread
virtual void onLoadFileCompletedAsync( IO::MemoryStream* data, CStringPtr filename )
called from background thread