1 // Scintilla source code edit control 2 /** @file ILoader.h 3 ** Interface for loading into a Scintilla document from a background thread. 4 **/ 5 // Copyright 1998-2017 by Neil Hodgson <[email protected]> 6 // The License.txt file describes the conditions under which this software may be distributed. 7 8 #ifndef ILOADER_H 9 #define ILOADER_H 10 11 #include "Sci_Position.h" 12 13 class ILoader { 14 public: 15 virtual int SCI_METHOD Release() = 0; 16 // Returns a status code from SC_STATUS_* 17 virtual int SCI_METHOD AddData(const char *data, Sci_Position length) = 0; 18 virtual void * SCI_METHOD ConvertToDocument() = 0; 19 }; 20 21 #endif 22