Subversion Repositories autosfx

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
//---------------------------------------------------------------------------
2
 
3
#ifndef DZFrameH
4
#define DZFrameH
5
/*************************************************************************
6
 Copyright (C) 2009, 2010  by Russell J. Peters, Roger Aelbrecht
7
 
8
   This file is part of TZipMaster Version 1.9.
9
 
10
    TZipMaster is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU Lesser General Public License as published by
12
    the Free Software Foundation, either version 3 of the License, or
13
    (at your option) any later version.
14
 
15
    TZipMaster is distributed in the hope that it will be useful,
16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
    GNU Lesser General Public License for more details.
19
 
20
    You should have received a copy of the GNU Lesser General Public License
21
    along with TZipMaster.  If not, see <http://www.gnu.org/licenses/>.
22
 
23
    contact: problems@delphizip.org (include ZipMaster in the subject).
24
    updates: http://www.delphizip.org
25
    DelphiZip maillist subscribe at http://www.freelists.org/list/delphizip
26
************************************************************************/
27
#include "ZStrings.h"
28
 
29
#define ZIPOPER 0x01010101
30
#define UNZOPER 0x02020202
31
 
32
// abort flag values
33
#define GA_NONE 0               // no error
34
#define GA_ERROR 1              // processing error
35
#define GA_CANCEL 2             // callback signalled cancel
36
#define GA_ABORT 4              // Abort requested
37
#define GA_EXCEPT 0x10          // callback caught exception
38
#define GA_EXCEPT2 0x20         // callback caused exception
39
 
40
class DZFrame
41
{
42
    protected:
43
        OperKeys OpKey;
44
        int OpTyp;
45
                const DZFrame* ME;  // validity check
46
    public:
47
        unsigned Abort_Flag;
48
        int GVerbose;
49
        DZFrame(OperKeys C, int typ);
50
                virtual ~DZFrame(void);
51
        bool IsME(const DZFrame* p);
52
        bool SetME(const DZFrame *Op, int typ);
53
        protected:
54
        const TCHAR* TypStr(void) const;
55
    private:
56
        DZFrame(void);
57
        DZFrame(const DZFrame&);        // copy not allowed
58
        DZFrame& operator=(const DZFrame&);
59
};
60
 
61
int Set_Oper_Abort(OperKeys key);
62
void Set_Oper(DZFrame *Op, int typ);
63
 
64
extern void Cleanup_Process(void);
65
extern int Clear_Oper(DZFrame* Op);
66
extern int Clear_Oper1(DZFrame* Op);
67
 
68
#endif
69