25 #ifndef TBX_MEMORYLOADER_H_
26 #define TBX_MEMORYLOADER_H_
43 MemoryLoader(
bool show_error =
false,
const char *error_title = 0);
66 std::string _error_title;
virtual void data_error(const LoadEvent &event)
Informs loader that an error occurred during application to application data transfer.
Definition: memoryloader.cc:173
virtual bool load_file(LoadEvent &event)
Overriden from Loader to load the file and pass the bytes loaded to the data_loaded function.
Definition: memoryloader.cc:60
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Class to handle file/data loading from the filer or an external application.
Definition: loader.h:179
virtual void data_exception(const LoadEvent &event, std::exception &except)
Informs loader an exception occurred during the loading process.
Definition: memoryloader.cc:190
Class with details of buffer transferred from another application.
Definition: loader.h:113
virtual void data_loaded(const LoadEvent &event, char *data, int data_size, bool &claim_data)=0
Called when all the data has been loaded this method is called with a character array of the data rec...
MemoryLoader(bool show_error=false, const char *error_title=0)
Construct the memory loader object.
Definition: memoryloader.cc:38
virtual void * data_buffer(const LoadEvent &event, int &buffer_size)
Set up buffer for application to application data transfer.
Definition: memoryloader.cc:103
Class with details of a file load operation.
Definition: loader.h:42
Helper class to implement the loader interface and call a routine once all the bytes have been loaded...
Definition: memoryloader.h:41
virtual bool data_received(DataReceivedEvent &event)
Overriden from Loader to populate the internal data buffer from the transfer.
Definition: memoryloader.cc:121