xref: /MusicPlayer2/scintilla/include/ILoader.h (revision 443d2d2511be730d1b1dd3181942b7fa6539aa1a)
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