-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTHPROCFG.HPP
166 lines (138 loc) · 5.49 KB
/
THPROCFG.HPP
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/* ------------------------------------------------------------
* Filename ............... ThProCfg.Hpp
*
* General Purpose ........ main include file
* ------------------------------------------------------------
* First date ............. 15 dec 1993
*
* First in version ....... 2.00
*
* Written by ............. Alain Schellinck
* ------------------------------------------------------------
* Revisions:
* ----------
*
* Date | By | Purpose |
* ---------+----+--------------------------------------------+
* | | |
* | | |
* | | |
*/
/*-------------------------------------------------------------------------*/
#include <ProBoard.Hpp>
#include "ProCfg.Hpp"
/*-------------------------------------------------------------------------*/
const BytT nBlack = 0; const BytT hBlack = 8;
const BytT nBlue = 1; const BytT hBlue = 9;
const BytT nGreen = 2; const BytT hGreen = 10;
const BytT nCyan = 3; const BytT hCyan = 11;
const BytT nRed = 4; const BytT hRed = 12;
const BytT nMagenta = 5; const BytT hMagenta = 13;
const BytT nYellow = 6; const BytT hYellow = 14;
const BytT nWhite = 7; const BytT hWhite = 15;
inline setFBColor(BytT fg, BytT bg)
{
return((bg << 4) + fg);
}
/*--] Structures [-------------------------------] userFilter [------------*/
_StructType(userFilter)
struct userFilter
{
ChrT name[36];
ChrT location[26];
PbFlags flagsOn;
PbFlags flagsOff;
WrdT lowerLevel;
WrdT higherLevel;
userFilter ( )
{
clear();
}
void clear ( )
{
CLEAR_OBJECT(name);
CLEAR_OBJECT(location);
flagsOn = "";
flagsOff = "";
lowerLevel = 0;
higherLevel = WrdT(65535L);
}
};
/*--] Structures [-------------------------------] globalChange [----------*/
_StructType(globalChange)
struct globalChange
{
enum what
{
chExpFlagsOn, // expiration flags on
chExpFlagsOff, // expiration flags off
chSecFlags, // security flags
chSecLevel, // security level
chExpLevel, // expiration level
chNetCredit // netmail credit
};
enum who
{
chEqualTo, // equal to specified level
chLessThan, // less than specified level
chGreaterThan, // greater than specified level
chAllUsers // all users
};
ShrtT changeWhat;
ShrtT changeWho;
UShrtT changeLevel;
PbFlags expFlagsOn;
PbFlags expFlagsOff;
PbFlags secFlags;
UShrtT secLevel;
UShrtT expLevel;
LngT netCredit;
globalChange ( )
{
changeWhat = chSecLevel;
changeWho = chAllUsers;
changeLevel = 0;
expFlagsOn = "";
expFlagsOff = "";
secFlags = "";
secLevel = 0;
expLevel = 0;
netCredit = 0;
}
};
/*--] Classes [----------------------------------] fileEntry [-------------*/
_ClassType(fileEntry)
class fileEntry : public Object
{
public:
FileName fname;
LngT size;
Date date;
Time time;
virtual ~fileEntry ( )
{
}
};
/*--] External variables [-------------------------------------------------*/
extern ChrT usrFind[80];
extern LngP userList;
extern UShrtT userListCount;
extern UShrtT NumUsers;
/*--] prototypes [-------------------------------] EditUser.Cpp [----------*/
void clearUserList ( );
ShrtT fillUserList ( userFilter& filter );
ShrtT getDiskRecNo ( ShrtT recno );
ShrtT getListRecNo ( ShrtT recno );
ShrtT filterUser ( );
ShrtT searchUser ( ShrtT startRec );
void listUser ( IntT recno, IntT x, IntT y );
ShrtT pickUser ( ShrtT curRecNo );
/*--] prototypes [-------------------------------] EditVTpl.Cpp [----------*/
ShrtT pickTemplate ( ShrtT curRecNo = 0 );
/*--] prototypes [-------------------------------] ProMisc.Cpp [-----------*/
KEY enterPwd ( IntT mode, Window& w, IntT x, IntT y, ChrT attr,
AnyP data );
ShrtT askYesNo ( ChrP title );
void showHelp ( ChrP hlp[], char *pTitle=NULL, FlgT center = FALSE );
/*--] prototypes [---------------------------------------------------------*/
/*---------------------------] END OF THE CODE [---------------------------*/