2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef THREAD_MODEL_LOADER_H
6 #define THREAD_MODEL_LOADER_H
8 #include "AbstractModelLoader.h"
15 class ThreadModelLoader
: public AbstractModelLoader
{
17 ThreadModelLoader(Model
* model
,
18 Model::Thread
* thread
,
19 const BMessenger
& target
,
26 ThreadModel
* DetachModel();
29 virtual status_t
PrepareForLoading();
30 virtual status_t
Load();
31 virtual void FinishLoading(bool success
);
34 // shorthands for the longish structure names
35 typedef system_profiler_thread_enqueued_in_run_queue
36 thread_enqueued_in_run_queue
;
37 typedef system_profiler_thread_removed_from_run_queue
38 thread_removed_from_run_queue
;
45 Model::Thread
* fThread
;
46 ThreadModel
* fThreadModel
;
50 #endif // THREAD_MODEL_LOADER_H