2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef ABSTRACT_MODEL_LOADER_H
6 #define ABSTRACT_MODEL_LOADER_H
12 class AbstractModelLoader
{
14 AbstractModelLoader(const BMessenger
& target
,
18 virtual ~AbstractModelLoader();
21 virtual status_t
StartLoading();
22 virtual void Abort(bool wait
);
23 virtual void Delete();
26 virtual status_t
PrepareForLoading();
27 virtual status_t
Load();
28 virtual void FinishLoading(bool success
);
30 void NotifyTarget(bool success
);
33 static status_t
_LoaderEntry(void* data
);
40 thread_id fLoaderThread
;
46 #endif // ABSTRACT_MODEL_LOADER_H