-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMikModThread.h
More file actions
35 lines (29 loc) · 1.02 KB
/
MikModThread.h
File metadata and controls
35 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//---------------------------------------------------------------------------
#ifndef MikModThreadH
#define MikModThreadH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
//---------------------------------------------------------------------------
namespace Mikmod
{
/**
* The thread where TMikMod is updated.
*/
class TMikModThread : public Classes::TThread
{
typedef Classes::TThread inherited;
private:
TNotifyEvent FOnModuleCompleted;
void __fastcall CallModuleCompleted(void);
protected:
void __fastcall Execute();
void __fastcall DoModuleCompleted(void);
public:
__fastcall TMikModThread(bool ACreateSuspended = true);
inline __fastcall virtual ~TMikModThread(void) { }
__property TNotifyEvent OnModuleCompleted = {read=FOnModuleCompleted, write=FOnModuleCompleted};
};
} /* namespace Mikmod */
using namespace Mikmod;
//---------------------------------------------------------------------------
#endif