qbbsdefs.hpp 4.37 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* QuickBBS Structure Definitions, Source: STRUCT.290 from QuickBBS v2.90 */

/****************************************************************************
 * @format.tab-size 4		(Plain Text/Source Code File Header)			*
 * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
 *																			*
 * Copyright Rob Swindell - http://www.synchro.net/copyright.html			*
 *																			*
 * This library is free software; you can redistribute it and/or			*
 * modify it under the terms of the GNU Lesser General Public License		*
 * as published by the Free Software Foundation; either version 2			*
 * of the License, or (at your option) any later version.					*
 * See the GNU Lesser General Public License for more details: lgpl.txt or	*
 * http://www.fsf.org/copyleft/lesser.html									*
 *																			*
 * For Synchronet coding style and modification guidelines, see				*
 * http://www.synchro.net/source.html										*
 *																			*
 * Note: If this box doesn't appear square, then you need to fix your tabs.	*
 ****************************************************************************/

22
23
#ifndef QBBSDEFS_HPP_
#define QBBSDEFS_HPP_
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

#include "pascal_types.hpp"

namespace QBBS {

using Pascal::String;
using Pascal::Byte;
using Pascal::Word;
using Pascal::Boolean;
using Pascal::Integer;
using Pascal::LongInt;
using Pascal::LongWord;

static const int USER_NAME_LEN			= 35;

static const int USER_ATTRIB_DELETED	= (1<<0);
static const int USER_ATTRIB_CLRSCRN	= (1<<1);
static const int USER_ATTRIB_MORE		= (1<<2);
static const int USER_ATTRIB_ANSI		= (1<<3);
static const int USER_ATTRIB_NO_KILL	= (1<<4);
static const int USER_ATTRIB_IGN_DL_HRS	= (1<<5);
static const int USER_ATTRIB_ANSI_FSED	= (1<<6);
static const int USER_ATTRIB_FEMALE		= (1<<7);

static const int USER_ATTRIB2_GUEST		= (1<<0);
static const int USER_ATTRIB2_SSR		= (1<<1);
static const int USER_ATTRIB2_DIRTY		= (1<<7);

#pragma pack(push,1)	// Disk image structures must be packed

struct sysinfo {
	LongInt	CallCount;
	String<USER_NAME_LEN> LastCallerName; // Just "LastCaller" in QuickBBS v2.75
	String<USER_NAME_LEN> LastCallerAlias; // Not present in QuickBBS v2.75
	Byte ExtraSpace[92];
};

struct timelog {
	String<8> StartDate;	// MM-DD-YY
	Word BusyPerHour[24];
	Word BusyPerDay[7];
};

struct user {
	String<USER_NAME_LEN> Name;
	String<25> Location; // "City"
	// End of commonality with RemoteAccess
	Byte	Reserved; // Reserved, should always be 0 (used to be the password string length)
	Byte	Language;
	LongInt	PwdCrc;	// Was PascalString<15> Password in QuickBBS v2.75
	Word	PwdChangeData,
			ExpireData; // Number of days since 1/1/1900
	LongInt	HighMsgRead;
	Byte Attrib2;
	Byte ExtraSpace;
	String<12> DataPhone;
	String<12> HomePhone;
	String<5> LastTime;
	String<8> LastDate;
	Byte Attrib;
	LongWord Flags; // Byte[4]
	Word	Credit,
			Pending,
			TimesPosted,
			ObsoleteField, // Was HighMsgRead in QuickBBS v2.75
			SecLvl,
			Times,
			Ups,
			Downs,
			UpK,
			DownK,
			TodayK;
	Integer	Elapsed,
			ScreenLength; // "Len" in QuickBBS STRUCT.*, "ScreenLength" in RemoteAccess STUCT.* (at different offset)
	Word	CombinedPtr; // Record number in COMBINED.BBS, Note:  0 signifies no combined record assigned
	Word	AliasPtr; // Record number in ALIAS.BBS, Note:  0 signifies no alias record assigned
	LongInt	Birthday; // Number of days since 1/1/1600
};

struct exitinfo {
	Word		BaudRate;
	sysinfo		SysInfo;
	timelog		TimeLogInfo;
	user		UserInfo;
	Byte		EventInfo[19]; // *NO LONGER* used, It should be initialized to NULL
	Boolean		NetMailEntered;
	Boolean		EchoMailEntered;
	String<5>	LoginTime;
	String<8>	LoginDate;
	Integer		TimeLimit; // TmLimit
	LongInt		LoginSec;
	// End of commonality with RemoteAccess v2.52 EXITINFO.BBS definition (STRUCT.252)
	LongInt		Credit;
	Integer		UserRecNum;
	Word		ReadThru;
	Integer		PageTimes;
	Integer		DownLimit;
	Boolean		WantChat;
	Byte		GosubLevel;
	String<8>	GoSubDataType[20];
	String<8>	Menu;
	// End of QuickBBS v2.75 EXITINFO.BBS definition (STRUCT.275)
	Boolean		ScreenClear,
				MorePrompts,
				GraphicsMode,
				ExternEdit;
	Integer		ScreenLength;
	Boolean		MNP_Connect;
	String<48>	ChatReason;
	Boolean		ExternLogoff;
	Boolean		ANSI_Capable;
	// End of Synchronet v3.19b EXITINFO.BBS generation
	Byte		CurrentLanguage;
	Boolean		RIP_Active;
	Byte		ExtraSpace[199];
};

#pragma pack(pop)		// original packing

} // namespace QBBS

#endif // Don't add anything after this line