| 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 <neilh@scintilla.org> | 
| 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 | namespace Scintilla { | 
| 14 |  | 
| 15 | class ILoader { | 
| 16 | public: | 
| 17 | 	virtual int SCI_METHOD Release() = 0; | 
| 18 | 	// Returns a status code from SC_STATUS_* | 
| 19 | 	virtual int SCI_METHOD AddData(const char *data, Sci_Position length) = 0; | 
| 20 | 	virtual void * SCI_METHOD ConvertToDocument() = 0; | 
| 21 | }; | 
| 22 |  | 
| 23 | } | 
| 24 |  | 
| 25 | #endif | 
| 26 |  |