Back

1     //------------------------------------------------------------------------------
2     // Module: ThrConvert.h                                                       //
3     //                                                                            //
4     //    TThread derivate that calls TCpp2Html::Convert() in its Execute         //
5     //    function                                                                //
6     //                                                                            //
7     //    Copyright (c) 2000-2004 by Lars Haendel                                 //
8     //    home: http://www.newty.de                                               //
9     //                                                                            //
10    //    This program is free software; you can redistribute it and/or modify    //
11    //    it under the terms of the GNU General Public License as published by    //
12    //    the Free Software Foundation as version 2 of the License.               //
13    //                                                                            //
14    //    This program is distributed in the hope that it will be useful,         //
15    //    but WITHOUT ANY WARRANTY; without even the implied warranty of          //
16    //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           //
17    //    GNU General Public License for more details.                            //
18    //                                                                            //
19    //    You should have received a copy of the GNU General Public License       //
20    //    along with this program; if not, write to the Free Software             //
21    //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.               //
22    //                                                                            //
23    //------------------------------------------------------------------------------
24
25
26
27    #ifndef ThrConvertH
28    #define ThrConvertH
29    //---------------------------------------------------------------------------
30    #include <Classes.hpp>
31
32    #include "FMain.h"
33
34
35    //---------------------------------------------------------------------------
36    class ThreadFunc : public TThread
37    {
38    private:
39       TFMain*     form;       // pt to application´s mainform
40       AnsiString  msg;        // buffer for AddMessage()
41       int         fileId;     // id of actually converted file
42       int*        size;       // array with the filesizes
43
44    protected:
45       void __fastcall Execute();
46
47
48    public:
49       __fastcall ThreadFunc(bool CreateSuspended, TFMain* _form);
50
51       void __fastcall OnFinish(TObject *Sender);
52       void __fastcall AddMessage(void);
53       void __fastcall ShowFileName(void);
54    };
55    #endif

Top