6 Windows, SysUtils, Classes, ComCtrls, IniFiles, {HTTPApp,} YofUtils, IdGlobal,
10 //
\83\8a\83X
\83g
\82Ì
\95\
\8e¦
\83A
\83C
\83e
\83\80\91I
\91ð
11 TGikoViewType = (gvtAll, gvtLog, gvtNew, gvtUser);
12 //
\83\8a\83X
\83g
\82Ì
\8eæ
\93¾
\8c\8f\90\94
13 //TGikoListCount = (glc50, glc100, glc200, glc500, glc1000, glcAll);
14 //
\8f\84\89ñ
\94Ô
\8d\86
15 //TGikoRoundNo = (grnNone, grn1, grn2, grn3, grn4, grn5, grnOnce);
16 //
\83\8a\83X
\83g
\82Ì
\8fã
\82°
\89º
\82°
17 TGikoAgeSage = (gasNone, gasAge, gasSage, gasNew);
21 FItemList: TList; //
\8eq
\83A
\83C
\83e
\83\80\83\8a\83X
\83g
22 FLeaf: Boolean; //
\89º
\82É
\83t
\83H
\83\8b\83_
\82ð
\8e\9d\82Â
\82±
\82Æ
\82ª
\8fo
\97\88\82é
\82©
24 function Add(Item: TFolder): Integer;
26 procedure Delete(Index: Integer);
27 procedure Exchange(Index1, Index2: Integer);
28 procedure Insert(Index: Integer; Item: TFolder);
29 procedure Move(CurIndex, NewIndex: Integer);
30 function Remove(Item: TFolder): Integer;
31 procedure Sort(Compare: TListSortCompare);
32 property Capacity: Integer read FCapacity write SetCapacity;
33 property Count: Integer read FCount write SetCount;
34 property Items[Index: Integer]: TFolder read Get write Put; default;
36 property Leaf: Boolean read FLeaf;
41 TCategory class(TFolder)
43 TBoard = class(TFolder)
45 TThreadItem = class(TFolder)
52 TBoard2ch = class(TBoard)
54 TThreadItem2ch = class(TThreadItem)
62 // ICategory = interface
66 // IThreadItem = interface
73 //
\82Æ
\82è
\82 \82¦
\82¸
\82Q
\82¿
\82á
\82ñ
\82Ë
\82é
\82Ì
\83\8b\81[
\83g
74 TBBS2ch = class(TList)
79 FKubetsuChk: Boolean; //
\8di
\8d\9e\82Ý
\8e\9e\91å
\95¶
\8e\9a\8f¬
\95¶
\8e\9a\8bæ
\95Ê
80 FSelectText: string; //
\8di
\8d\9e\82Ý
\95¶
\8e\9a\97ñ
81 FShortSelectText: string;
83 function GetCategory(index: integer): TCategory;
84 procedure SetCategory(index: integer; value: TCategory);
85 procedure SetSelectText(s: string);
87 constructor Create(LogFolder: string);
88 destructor Destroy; override;
90 procedure ReadBoardFile;
92 function GetBoardFromBBSID(BBSID: string): TBoard;
94 function Add(item: TCategory): integer;
95 procedure Delete(index: integer);
96 procedure Clear; override;
97 function Find(key: string): TCategory;
98 function FindBBSID(BBSID: string): TBoard;
99 function FindBoardFromTitle(Title: string): TBoard;
100 function FindBoardFromURL(inURL: string): TBoard;
101 function FindThreadItem(BBSID: string; FileName: string): TThreadItem;
102 function GetLogFolder: string;
104 property Items[index: integer]: TCategory read GetCategory write SetCategory;
105 property Title: string read FTitle write FTitle;
106 property NodeExpand: Boolean read FExpand write FExpand;
108 property KubetsuChk: Boolean read FKubetsuChk write FKubetsuChk;
109 property SelectText: string read FSelectText write SetSelectText;
110 property ShortSelectText: string read FShortSelectText write FShortSelectText;
114 TCategory = class(TList)
118 FParentBBS2ch: TBBS2ch;
121 function GetBoard(index: integer): TBoard;
122 procedure SetBoard(index: integer; value: TBoard);
125 destructor Destroy; override;
127 property No: Integer read FNo write FNo;
128 property Title: string read FTitle write FTitle;
129 property Items[index: integer]: TBoard read GetBoard write SetBoard;
130 property ParentBBS2ch: TBBS2ch read FParentBBS2ch write FParentBBS2ch;
132 function Add(item: TBoard): integer;
133 procedure Delete(index: integer);
134 procedure Clear; override;
135 function FindName(key: string): TBoard;
136 function FindBBSID(BBSID: string): TBoard;
137 function FindBoardFromTitle(Title: string): TBoard;
138 function FindBoardFromURL(inURL: string): TBoard;
139 function IsMidoku: Boolean;
141 property NodeExpand: Boolean read FExpand write FExpand;
145 TBoard = class(TList)
147 FContext: DWORD; //
\83v
\83\89\83O
\83C
\83\93\82ª
\8e©
\97R
\82É
\90Ý
\92è
\82µ
\82Ä
\82¢
\82¢
\92l(
\8eå
\82É
\83C
\83\93\83X
\83^
\83\93\83X
\82ª
\93ü
\82é)
149 FNo: Integer; //
\94Ô
\8d\86
150 FTitle: string; //
\83{
\81[
\83h
\83^
\83C
\83g
\83\8b
151 FBBSID: string; //BBSID
152 FURL: string; //
\83{
\81[
\83hURL
153 FRound: Boolean; //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8f\84\89ñ
\97\
\96ñ
154 FRoundName: string; //
\8f\84\89ñ
\96¼
155 FRoundDate: TDateTime; //
\83X
\83\8c\83b
\83h
\88ê
\97\97\82ð
\8eæ
\93¾
\82µ
\82½
\93ú
\8e\9e\81i
\8f\84\89ñ
\93ú
\8e\9e\81j
156 FLastModified: TDateTime; //
\83X
\83\8c\83b
\83h
\88ê
\97\97\82ª
\8dX
\90V
\82³
\82ê
\82Ä
\82¢
\82é
\93ú
\8e\9e\81i
\83T
\81[
\83o
\91¤
\93ú
\8e\9e\81j
157 FLastGetTime: TDateTime; //
\83X
\83\8c\83b
\83h
\82Ü
\82½
\82Í
\83X
\83\8c\83b
\83h
\88ê
\97\97\82ð
\8dÅ
\8cã
\82É
\8dX
\90V
\82µ
\82½
\93ú
\8e\9e\81i
\83T
\81[
\83o
\91¤
\93ú
\8e\9e\81E
\8f\91\82«
\8d\9e\82Ý
\8e\9e\82É
\8eg
\97p
\82·
\82é
\81j
158 FIsThreadDatRead: Boolean; //
\83X
\83\8c\83b
\83h
\83\8a\83X
\83g
\82Í
\93Ç
\82Ý
\8d\9e\82Ü
\82ê
\82Ä
\82¢
\82é
\82©
\81H
159 FUnRead: Integer; //
\83X
\83\8c\83b
\83h
\96¢
\93Ç
\90\94
160 FParentCategory: TCategory; //
\90e
\83J
\83e
\83S
\83\8a
161 FModified: Boolean; //
\8fC
\90³
\83t
\83\89\83O
162 FBoolData: Boolean; //
\82¢
\82ë
\82ñ
\82È
\97p
\93r
\82É
\8eg
\82¤yo
163 FSPID: string; //
\8f\91\82«
\8d\9e\82Ý
\97pSPID
164 FPON: string; //
\8f\91\82«
\8d\9e\82Ý
\97pPON
165 FKotehanName: string; //
\83R
\83e
\83n
\83\93\96¼
\91O
166 FKotehanMail: string; //
\83R
\83e
\83n
\83\93\83\81\81[
\83\8b
171 FBoardPlugIn : TBoardPlugIn; //
\82±
\82Ì
\94Â
\82ð
\83T
\83|
\81[
\83g
\82·
\82é
\83v
\83\89\83O
\83C
\83\93
172 FFilePath : string; //
\82±
\82Ì
\83X
\83\8c\88ê
\97\97\82ª
\95Û
\91¶
\82³
\82ê
\82Ä
\82¢
\82é
\83p
\83X
173 FIsLogFile : Boolean; //
\83\8d\83O
\91¶
\8dÝ
\83t
\83\89\83O
174 FIntData : Integer; //
\8dD
\82«
\82É
\82¢
\82¶
\82Á
\82Ä
\82æ
\82µ
\81B
\82¢
\82ë
\82ñ
\82È
\97p
\93r
\82É
\8eg
\82¤yo
175 FListData : TList; //
\8dD
\82«
\82É
\82¢
\82¶
\82Á
\82Ä
\82æ
\82µ
\81B
\82¢
\82ë
\82ñ
\82È
\97p
\93r
\82É
\8eg
\82¤yo
177 function GetThreadItem(index: integer): TThreadItem;
178 procedure SetThreadItem(index: integer; value: TThreadItem);
179 procedure SetRound(b: Boolean);
180 procedure SetRoundName(s: string);
181 procedure SetLastModified(d: TDateTime);
182 procedure SetLastGetTime(d: TDateTime);
183 procedure SetUnRead(i: Integer);
184 procedure SetKotehanName(s: string);
185 procedure SetKotehanMail(s: string);
187 constructor Create; overload;
188 constructor Create( inPlugIn : TBoardPlugIn; inURL : string = '' ); overload;
189 destructor Destroy; override;
191 property Context: DWORD read FContext write FContext;
193 property Items[index: integer]: TThreadItem read GetThreadItem write SetThreadItem;
194 property No: Integer read FNo write FNo;
195 property Title: string read FTitle write FTitle;
196 property BBSID: string read FBBSID write FBBSID;
197 property URL: string read FURL write FURL;
198 property Round: Boolean read FRound write SetRound;
199 property RoundName: string read FRoundName write SetRoundName;
200 property RoundDate: TDateTime read FRoundDate write FRoundDate;
201 property LastModified: TDateTime read FLastModified write SetLastModified;
202 property LastGetTime: TDateTime read FLastGetTime write SetLastGetTime;
203 property UnRead: Integer read FUnRead write SetUnRead;
204 property Modified: Boolean read FModified write FModified;
205 property IsThreadDatRead: Boolean read FIsThreadDatRead write FIsThreadDatRead;
206 property ParentCategory: TCategory read FParentCategory write FParentCategory;
208 property BoardPlugIn : TBoardPlugIn read FBoardPlugIn;
209 property FilePath : string read FFilePath write FFilePath;
210 property IsLogFile : Boolean read FIsLogFile write FIsLogFile;
211 property IntData : Integer read FIntData write FIntData;
212 property ListData : TList read FListData write FListData;
213 function IsBoardPlugInAvailable : Boolean;
215 function Add(item: TThreadItem): integer;
216 procedure Insert(Index: Integer; Item: TThreadItem);
217 procedure Delete(index: integer);
218 procedure DeleteList(index: integer);
219 procedure Clear; override;
220 function Find(ItemFileName: string): TThreadItem;
221 function GetIndex(ItemFileName: string): Integer;
222 function GetIndexFromURL(URL: string): Integer;
223 procedure LoadSettings;
224 procedure SaveSettings;
225 function GetReadCgiURL: string;
226 function GetSubjectFileName: string;
227 function GetFolderIndexFileName: string;
228 function GetSendURL: string;
230 function GetNewThreadCount: Integer;
231 function GetLogThreadCount: Integer;
232 function GetUserThreadCount: Integer;
233 function GetNewThread(Index: Integer): TThreadItem;
234 function GetLogThread(Index: Integer): TThreadItem;
235 function GetUserThread(Index: Integer): TThreadItem;
237 procedure BeginUpdate;
239 property NodeExpand: Boolean read FExpand write FExpand;
240 property BoolData: Boolean read FBoolData write FBoolData;
241 property SPID: string read FSPID write FSPID;
242 property PON: string read FPON write FPON;
243 property KotehanName: string read FKotehanName write SetKotehanName;
244 property KotehanMail: string read FKotehanMail write SetKotehanMail;
248 TThreadItem = class(TObject)
250 FContext: DWORD; //
\83v
\83\89\83O
\83C
\83\93\82ª
\8e©
\97R
\82É
\90Ý
\92è
\82µ
\82Ä
\82¢
\82¢
\92l(
\8eå
\82É
\83C
\83\93\83X
\83^
\83\93\83X
\82ª
\93ü
\82é)
252 FNo: Integer; //
\94Ô
\8d\86
253 FFileName: string; //
\83X
\83\8c\83b
\83h
\83t
\83@
\83C
\83\8b\96¼
254 FTitle: string; //
\83X
\83\8c\83b
\83h
\83^
\83C
\83g
\83\8b
255 FShortTitle: string; //
\92Z
\82¢
\83X
\83\8c\83b
\83h
\83^
\83C
\83g
\83\8b\81i
\8c\9f\8dõ
\97p
\81j
256 FRoundDate: TDateTime; //
\83X
\83\8c\83b
\83h
\82ð
\8eæ
\93¾
\82µ
\82½
\93ú
\8e\9e\81i
\8f\84\89ñ
\93ú
\8e\9e\81j
257 FLastModified: TDateTime; //
\83X
\83\8c\83b
\83h
\82ª
\8dX
\90V
\82³
\82ê
\82Ä
\82¢
\82é
\93ú
\8e\9e\81i
\83T
\81[
\83o
\91¤
\93ú
\8e\9e\81j
258 FCount: Integer; //
\83X
\83\8c\83b
\83h
\83J
\83E
\83\93\83g
\81i
\83\8d\81[
\83J
\83\8b\81j
259 FAllResCount: Integer; //
\83X
\83\8c\83b
\83h
\83J
\83E
\83\93\83g
\81i
\83T
\81[
\83o
\81j
260 FNewResCount: Integer; //
\83X
\83\8c\83b
\83h
\90V
\92\85\90\94
261 FSize: Integer; //
\83X
\83\8c\83b
\83h
\83T
\83C
\83Y
262 FRound: Boolean; //
\8f\84\89ñ
\83t
\83\89\83O
263 FRoundName: string; //
\8f\84\89ñ
\96¼
264 FIsLogFile: Boolean; //
\83\8d\83O
\91¶
\8dÝ
\83t
\83\89\83O
265 FParentBoard: TBoard; //
\90e
\83{
\81[
\83h
266 FKokomade: Integer; //
\83R
\83R
\82Ü
\82Å
\93Ç
\82ñ
\82¾
\94Ô
\8d\86
267 FNewReceive: Integer; //
\83R
\83R
\82©
\82ç
\90V
\8bK
\8eó
\90M
268 FNewArrival: Boolean; //
\90V
\92\85
269 FUnRead: Boolean; //
\96¢
\93Ç
\83t
\83\89\83O
270 FScrollTop: Integer; //
\83X
\83N
\83\8d\81[
\83\8b\88Ê
\92u
271 FDownloadHost: string; //
\8d¡
\82Ì
\83z
\83X
\83g
\82Æ
\88á
\82¤
\8fê
\8d\87\82Ì
\83z
\83X
\83g
272 FAgeSage: TGikoAgeSage; //
\83A
\83C
\83e
\83\80\82Ì
\8fã
\82°
\89º
\82°
273 // FSPID: string; //
\8f\91\82«
\8d\9e\82Ý
\97pSPID
277 FURL : string; //
\82±
\82Ì
\83X
\83\8c\82ð
\83u
\83\89\83E
\83U
\82Å
\95\
\8e¦
\82·
\82é
\8dÛ
\82Ì URL
278 FBoardPlugIn : TBoardPlugIn; //
\82±
\82Ì
\83X
\83\8c\82ð
\83T
\83|
\81[
\83g
\82·
\82é
\83v
\83\89\83O
\83C
\83\93
279 FFilePath : string; //
\82±
\82Ì
\83X
\83\8c\82ª
\95Û
\91¶
\82³
\82ê
\82Ä
\82¢
\82é
\83p
\83X
280 FSizeByte : Integer; // CreateHTML2
\82ð
\8eÀ
\8ds
\82µ
\82Ä
\82¢
\82é
\8dÅ
\92\86\82É
\88ê
\8e\9e\93I
\82É
\95Û
\91¶
\82³
\82ê
\82é
\92l
282 procedure SetLastModified(d: TDateTime);
283 procedure SetRound(b: Boolean);
284 procedure SetRoundName(s: string);
285 procedure SetKokomade(i: Integer);
286 procedure SetUnRead(b: Boolean);
287 procedure SetScrollTop(i: Integer);
288 function GetURLWrapper: string;
290 constructor Create; overload;
291 constructor Create( inPlugIn : TBoardPlugIn; inURL : string = '' ); overload;
292 destructor Destroy; override;
294 function GetDatURL: string;
295 function GetDatgzURL: string;
296 // function GetOldDatgzURL: string;
297 function GetOfflawCgiURL(SessionID: string): string;
298 function GetSendURL: string;
299 procedure DeleteLogFile;
300 function GetThreadFileName: string;
301 procedure BeginUpdate;
304 property Context: DWORD read FContext write FContext;
306 property No: Integer read FNo write FNo;
307 property FileName: string read FFileName write FFileName;
308 property Title: string read FTitle write FTitle;
309 property ShortTitle: string read FShortTitle write FShortTitle;
310 property RoundDate: TDateTime read FRoundDate write FRoundDate;
311 property LastModified: TDateTime read FLastModified write SetLastModified;
312 property Count: Integer read FCount write FCount;
313 property AllResCount: Integer read FAllResCount write FAllResCount;
314 property NewResCount: Integer read FNewResCount write FNewResCount;
315 property Size: Integer read FSize write FSize;
316 property Round: Boolean read FRound write SetRound;
317 property RoundName: string read FRoundName write SetRoundName;
319 property IsLogFile: Boolean read FIsLogFile write FIsLogFile;
320 property ParentBoard: TBoard read FParentBoard write FParentBoard;
321 property Kokomade: Integer read FKokomade write SetKokomade;
322 property NewReceive: Integer read FNewReceive write FNewReceive;
323 property NewArrival: Boolean read FNewArrival write FNewArrival;
324 property UnRead: Boolean read FUnRead write SetUnRead;
325 property ScrollTop: Integer read FScrollTop write SetScrollTop;
326 property Expand: Boolean read FExpand write FExpand;
327 property DownloadHost: string read FDownloadHost write FDownloadHost;
328 property AgeSage: TGikoAgeSage read FAgeSage write FAgeSage;
329 // property SPID: string read FSPID write FSPID;
331 property URL : string read GetURLWrapper write FURL;
332 property BoardPlugIn : TBoardPlugIn read FBoardPlugIn;
333 property FilePath : string read FFilePath write FFilePath;
334 property SizeByte : Integer read FSizeByte write FSizeByte;
335 function IsBoardPlugInAvailable : Boolean;
340 //
\8c\9f\8dõ
\8c\8b\89Ê
\83\8a\83X
\83g
341 { TSearchList = class(TList)
343 function GetThreadItem(index: integer): TThreadItem;
344 procedure SetThreadItem(index: integer; value: TThreadItem);
347 destructor Destroy; override;
349 property Items[index: integer]: TThreadItem read GetThreadItem write SetThreadItem;
351 function Add(item: TThreadItem): integer;
352 procedure Delete(index: integer);
353 procedure Clear; override;
362 GikoSystem, RoundData;
365 BBS2CH_NAME: string = '
\82Q
\82¿
\82á
\82ñ
\82Ë
\82é';
366 BBS2CH_LOG_FOLDER: string = '2ch';
368 FOLDER_INI_FILENAME: string = 'Folder.ini';
369 FOLDER_INDEX_FILENAME: string = 'Folder.idx';
370 SUBJECT_FILENAME: string = 'subject.txt';
371 PATH_DELIM: string = '\';
372 //DEFAULT_LIST_COUNT: Integer = 100;
374 // COLUMN_CATEGORY: array[0..0] of string = ('
\83J
\83e
\83S
\83\8a\96¼');
375 // COLUMN_BOARD: array[0..3] of string = ('
\94Â
\96¼', '
\8eæ
\93¾
\90\94', '
\8f\84\89ñ
\97\
\96ñ', '
\91O
\89ñ
\8f\84\89ñ
\93ú
\8e\9e');
376 // COLUMN_THREADITEM: array[0..3] of string = ('
\83X
\83\8c\83b
\83h
\96¼', '
\83J
\83E
\83\93\83g', '
\8f\84\89ñ
\97\
\96ñ', '
\91O
\89ñ
\8f\84\89ñ
\93ú
\8e\9e');
378 (*************************************************************************
379 *
\8b@
\94\
\96¼
\81FTBBS
\83R
\83\93\83X
\83g
\83\89\83N
\83^
381 *************************************************************************)
382 constructor TBBS2ch.Create(LogFolder: string);
384 Title := BBS2CH_NAME;
385 FLogFolder := LogFolder;
388 (*************************************************************************
389 *
\8b@
\94\
\96¼
\81FTBBS
\83f
\83X
\83g
\83\89\83N
\83^
391 *************************************************************************)
392 destructor TBBS2ch.Destroy;
398 (*************************************************************************
401 *************************************************************************)
402 function TBBS2ch.GetCategory(index: integer): TCategory;
404 Result := TCategory(inherited Items[index]);
407 procedure TBBS2ch.SetCategory(index: integer; value: TCategory);
409 inherited Items[index] := value;
412 function TBBS2ch.Add(item: TCategory): integer;
414 Item.ParentBBS2ch := self;
415 Result := inherited Add(item);
418 procedure TBBS2ch.Delete(index: integer);
420 if Items[index] <> nil then
421 TCategory(Items[index]).Free;
423 inherited Delete(index);
426 procedure TBBS2ch.Clear;
430 for i := Count - 1 downto 0 do
434 function TBBS2ch.Find(key: string): TCategory;
439 function TBBS2ch.FindBBSID(BBSID: string): TBoard;
446 for i := 0 to Count - 1 do begin
447 Category := Items[i];
448 Board := Category.FindBBSID(BBSID);
449 if Board <> nil then begin
456 function TBBS2ch.FindBoardFromTitle(Title: string): TBoard;
463 for i := 0 to Count - 1 do begin
464 Category := Items[i];
465 Board := Category.FindBoardFromTitle(Title);
466 if Board <> nil then begin
473 function TBBS2ch.FindBoardFromURL(inURL: string): TBoard;
480 for i := 0 to Count - 1 do begin
481 Category := Items[i];
482 Board := Category.FindBoardFromURL(inURL);
483 if Board <> nil then begin
490 function TBBS2ch.FindThreadItem(BBSID: string; FileName: string): TThreadItem;
495 Board := FindBBSID(BBSID);
498 Result := Board.Find(FileName);
501 (*************************************************************************
502 *
\8b@
\94\
\96¼
\81@
\81@
\81F
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\93Ç
\82Ý
\8d\9e\82Ý
503 *
\89Â
\8e\8b\81@
\81@
\81@
\81FPublic
504 *
\97\9a\97ð
\82P
\81@
\81@
\81F
\90V
\8bK
\8dì
\90¬
505 *************************************************************************)
506 procedure TBBS2ch.ReadBoardFile;
512 CategoryList: TStringList;
513 BoardList: TStringList;
517 RoundItem: TRoundItem;
518 BBSList: TStringList;
519 CustomList: TStringList;
520 BoardFileList: TStringList;
522 ini := TMemIniFile.Create('');
523 BBSList := TStringList.Create;
524 CustomList := TStringList.Create;
525 BoardFileList := TStringList.Create;
527 if FileExists(GikoSys.GetBoardFileName) then
528 BBSList.LoadFromFile(GikoSys.GetBoardFileName);
529 if FileExists(GikoSys.GetCustomBoardFileName) then
530 CustomList.LoadFromFile(GikoSys.GetCustomBoardFileName);
531 BBSList.AddStrings(CustomList);
532 if DirectoryExists(GikoSys.Setting.GetBoardDir) then begin
533 GikoSys.GetFileList( GikoSys.Setting.GetBoardDir, '*', BoardFileList, True, True );
534 for i := BoardFileList.Count - 1 downto 0 do begin
536 CustomList.LoadFromFile( BoardFileList[ i ] );
537 BBSList.AddStrings( CustomList );
540 ini.SetStrings(BBSList);
542 CategoryList := TStringList.Create;
543 BoardList := TStringList.Create;
545 ini.ReadSections(CategoryList);
546 for i := 0 to CategoryList.Count - 1 do begin
548 ini.ReadSection(CategoryList[i], BoardList);
549 Category := TCategory.Create;
550 Category.No := i + 1;
551 Category.Title := CategoryList[i];
553 for j := 0 to BoardList.Count - 1 do begin
555 inistr := ini.ReadString(CategoryList[i], BoardList[j], '');
557 //=====
\83v
\83\89\83O
\83C
\83\93
559 kbound := High( BoardPlugIns );
560 for k := Low( BoardPlugIns ) to kbound do begin
561 if Assigned( Pointer( BoardPlugIns[ k ].Module ) ) then begin
562 if BoardPlugIns[ k ].AcceptURL( inistr ) then begin
563 Board := TBoard.Create( BoardPlugIns[ k ], inistr );
570 // exception
\82ª
\94
\90¶
\82µ
\82½
\8fê
\8d\87\82Í
\93à
\95\94\8f\88\97\9d\82É
\94C
\82¹
\82½
\82¢
\82Ì
\82Å
\82±
\82±
\82Å
\82Í
\89½
\82à
\82µ
\82È
\82¢
573 if Board = nil then begin
574 Board := TBoard.Create;
579 Board.Title := BoardList[j];
580 Board.BBSID := GikoSys.UrlToID(inistr);
581 Board.RoundDate := ZERO_DATE;
583 idx := RoundList.Find(Board);
584 if idx <> -1 then begin
585 RoundItem := RoundList.Items[idx, grtBoard];
587 Board.RoundName := RoundItem.RoundName;
592 BBS2ch.Add(Category);
606 function TBBS2ch.GetBoardFromBBSID(BBSID: string): TBoard;
611 for i := 0 to BBS2ch.Count - 1 do begin
612 Result := BBS2ch.Items[i].FindBBSID(BBSID);
613 if Result <> nil then
618 (*************************************************************************
619 *
\83\8d\83O
\83t
\83H
\83\8b\83_
\8eæ
\93¾
621 *************************************************************************)
622 function TBBS2ch.GetLogFolder: string;
624 Result := IncludeTrailingPathDelimiter(FLogFolder)
625 + BBS2CH_LOG_FOLDER + PATH_DELIM;
628 procedure TBBS2ch.SetSelectText(s: string);
631 ShortSelectText := GikoSys.ZenToHan(s);
634 {class function TBBS2ch.GetColumnName(Index: Integer): string;
636 Result := COLUMN_CATEGORY[Index];
639 class function TBBS2ch.GetColumnCount: Integer;
641 Result := Length(COLUMN_CATEGORY);
644 //===================
646 //===================
647 constructor TCategory.Create;
651 destructor TCategory.Destroy;
657 function TCategory.GetBoard(index: integer): TBoard;
659 Result := TBoard(inherited Items[index]);
662 procedure TCategory.SetBoard(index: integer; value: TBoard);
664 inherited Items[index] := value;
667 function TCategory.Add(item: TBoard): integer;
669 Item.ParentCategory := self;
670 Result := inherited Add(item);
673 procedure TCategory.Delete(index: integer);
675 if Items[index] <> nil then
676 TBoard(Items[index]).Free;
678 inherited Delete(index);
681 procedure TCategory.Clear;
685 for i := Count - 1 downto 0 do
689 function TCategory.FindName(key: string): TBoard;
694 function TCategory.FindBBSID(BBSID: string): TBoard;
699 for i := 0 to Count - 1 do begin
700 if Items[i].FBBSID = BBSID then begin
707 function TCategory.FindBoardFromTitle(Title: string): TBoard;
712 for i := 0 to Count - 1 do begin
713 if Items[i].FTitle = Title then begin
720 function TCategory.FindBoardFromURL(inURL: string): TBoard;
725 for i := 0 to Count - 1 do begin
726 if Items[i].URL = inURL then begin
733 function TCategory.IsMidoku: Boolean;
739 for i := 0 to Count - 1 do begin
740 if Items[i] <> nil then begin
741 for j := 0 to Items[i].Count - 1 do begin
742 if Items[i].Items[j] <> nil then begin
743 // if (Items[i].Items[j].IsLogFile) and (Items[i].Items[j].Count > Items[i].Items[j].Kokomade) then begin
744 if (Items[i].Items[j].IsLogFile) and (Items[i].Items[j].UnRead) then begin
754 {class function TCategory.GetColumnName(Index: Integer): string;
756 Result := COLUMN_BOARD[Index];
759 class function TCategory.GetColumnCount: Integer;
761 Result := Length(COLUMN_BOARD);
764 //===================
766 //===================
767 constructor TBoard.Create;
774 FRoundDate := ZERO_DATE;
775 FLastModified := ZERO_DATE;
776 FLastGetTime := ZERO_DATE;
777 FIsThreadDatRead := False;
779 // FListStyle := vsReport;
780 // FItemNoVisible := True;
787 // *************************************************************************
788 //
\8aO
\95\94\94Â
\83v
\83\89\83O
\83C
\83\93\82ð
\8ew
\92è
\82µ
\82½
\83R
\83\93\83X
\83g
\83\89\83N
\83^
789 // *************************************************************************
790 constructor TBoard.Create(
791 inPlugIn : TBoardPlugIn;
798 FBoardPlugIn := inPlugIn;
801 //
\83v
\83\89\83O
\83C
\83\93\82É TBoardItem
\82ª
\8dì
\90¬
\82³
\82ê
\82½
\82±
\82Æ
\82ð
\93`
\82¦
\82é
802 inPlugIn.CreateBoardItem( DWORD( Self ) );
806 // *************************************************************************
807 //
\83f
\83X
\83g
\83\89\83N
\83^
808 // *************************************************************************
809 destructor TBoard.Destroy;
811 if FModified then begin
812 GikoSys.WriteThreadDat(Self);
816 //
\83v
\83\89\83O
\83C
\83\93\82É TBoardItem
\82ª
\94j
\8aü
\82³
\82ê
\82½
\82±
\82Æ
\82ð
\93`
\82¦
\82é
817 if IsBoardPlugInAvailable then
818 BoardPlugIn.DisposeBoardItem( DWORD( Self ) );
824 // *************************************************************************
825 //
\8aO
\95\94\94Â
\83v
\83\89\83O
\83C
\83\93\82ª
\8eg
\97p
\89Â
\94\
\82©
826 // *************************************************************************
827 function TBoard.IsBoardPlugInAvailable : Boolean;
831 if BoardPlugIn = nil then
834 if not Assigned( Pointer( BoardPlugIn.Module ) ) then
845 function TBoard.GetThreadItem(index: integer): TThreadItem;
847 Result := TThreadItem(inherited Items[index]);
850 procedure TBoard.SetThreadItem(index: integer; value: TThreadItem);
852 inherited Items[index] := value;
855 function TBoard.Add(Item: TThreadItem): Integer;
857 Item.ParentBoard := Self;
858 Result := inherited Add(Item);
861 procedure TBoard.Insert(Index: Integer; Item: TThreadItem);
863 Item.ParentBoard := Self;
864 inherited Insert(Index, Item);
867 //Index
\82Å
\8ew
\92è
\82³
\82ê
\82½
\83X
\83\8c\83b
\83h
\83I
\83u
\83W
\83F
\83N
\83g
\82ð
\94j
\8aü
868 procedure TBoard.Delete(index: Integer);
870 if Items[index] <> nil then
871 TThreadItem(Items[index]).Free;
873 inherited Delete(index);
876 //Index
\82Å
\8ew
\92è
\82³
\82ê
\82½
\83X
\83\8c\83b
\83h
\82ð
\83\8a\83X
\83g
\82©
\82ç
\8dí
\8f\9c\81i
\83X
\83\8c\83I
\83u
\83W
\83F
\83N
\83g
\82Í
\82Ì
\82±
\82·
\81j
877 procedure TBoard.DeleteList(index: integer);
879 inherited Delete(index);
882 procedure TBoard.Clear;
887 for i := Count - 1 downto 0 do
891 function TBoard.Find(ItemFileName: string): TThreadItem;
896 for i := 0 to Count - 1 do begin
897 if Items[i].FileName = ItemFileName then begin
904 function TBoard.GetIndex(ItemFileName: string): Integer;
909 for i := 0 to Count - 1 do begin
910 if Items[i].FileName = ItemFileName then begin
917 function TBoard.GetIndexFromURL(URL: string): Integer;
922 for i := 0 to Count - 1 do begin
923 if Items[i].URL = URL then begin
930 {function TBoard.GetMidokuCount: Integer;
935 for i := 0 to Count- 1 do begin
936 if Items[i] <> nil then begin
937 if (Items[i].IsLogFile) and (Items[i].Count > Items[i].Kokomade) then
944 procedure TBoard.LoadSettings;
949 if Length( FilePath ) > 0 then
950 FileName := ExtractFilePath( FilePath ) + FOLDER_INI_FILENAME
952 FileName := ParentCategory.ParentBBS2ch.GetLogFolder
953 + BBSID + PATH_DELIM + FOLDER_INI_FILENAME;
955 if not FileExists(FileName) then
957 ini := TMemIniFile.Create(FileName);
959 // Round := ini.ReadBool('Status', 'Round', False);
960 FRoundDate := ini.ReadDateTime('Status', 'RoundDate', ZERO_DATE);
961 FLastModified := ini.ReadDateTime('Status', 'LastModified', ZERO_DATE);
962 FLastGetTime := ini.ReadDateTime('Status', 'LastGetTime', ZERO_DATE);
963 FUnRead := ini.ReadInteger('Status', 'UnRead', 0);
964 FSPID := ini.ReadString('Cookie', 'SPID', '');
965 FPON := ini.ReadString('Cookie', 'PON', '');
966 FKotehanName := ini.ReadString('Kotehan', 'Name', '');
967 FKotehanMail := ini.ReadString('Kotehan', 'Mail', '');
968 // ListStyle := TViewStyle(Ord(ini.ReadInteger('Status', 'ListStyle', 3)));
969 // ItemNoVisible := ini.ReadBool('Status', 'ItemNoVisible', True);
970 // ViewType := TGikoViewType(Ord(ini.ReadInteger('Status', 'ViewType', 0)));
978 procedure TBoard.SaveSettings;
983 if Length( FilePath ) > 0 then
984 FileName := ExtractFilePath( FilePath )
986 FileName := ParentCategory.ParentBBS2ch.GetLogFolder
987 + BBSID + PATH_DELIM;
988 if not GikoSys.DirectoryExistsEx(FileName) then
989 GikoSys.ForceDirectoriesEx(FileName);
990 FileName := FileName + FOLDER_INI_FILENAME;
991 ini := TMemIniFile.Create(FileName);
995 // ini.WriteBool('Status', 'Round', Round);
996 ini.WriteDateTime('Status', 'RoundDate', FRoundDate);
997 ini.WriteDateTime('Status', 'LastModified', FLastModified);
998 ini.WriteDateTime('Status', 'LastGetTime', FLastGetTime);
999 ini.WriteInteger('Status', 'UnRead', FUnRead);
1000 ini.WriteString('Cookie', 'SPID', FSPID);
1001 ini.WriteString('Cookie', 'PON', FPON);
1002 ini.WriteString('Kotehan', 'Name', FKotehanName);
1003 ini.WriteString('Kotehan', 'Mail', FKotehanMail);
1004 // ini.WriteInteger('Status', 'ListStyle', Ord(ListStyle));
1005 // ini.WriteBool('Status', 'ItemNoVisible', ItemNoVisible);
1006 // ini.WriteInteger('Status', 'ViewType', Ord(ViewType));
1013 //
\83T
\83u
\83W
\83F
\83N
\83gURL
\8eæ
\93¾
1014 function TBoard.GetReadCgiURL: string;
1016 //Result := URL + SUBJECT_FILENAME;
1017 //Result := GikoSys.UrlToServer(URL)
1018 // + 'test/read.cgi/' + BBSID + '/?raw=0.0';
1019 Result := URL + SUBJECT_FILENAME;
1023 //
\83T
\83u
\83W
\83F
\83N
\83g
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1024 function TBoard.GetSubjectFileName: string;
1026 if Length( FilePath ) > 0 then
1029 Result := ParentCategory.ParentBBS2ch.GetLogFolder
1030 + BBSID + PATH_DELIM + SUBJECT_FILENAME;
1033 //
\83C
\83\93\83f
\83b
\83N
\83X
\83t
\83@
\83C
\83\8b\96¼(folder.idx)
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1034 function TBoard.GetFolderIndexFileName: string;
1036 if Length( FilePath ) > 0 then
1037 Result := ExtractFilePath( FilePath ) + FOLDER_INDEX_FILENAME
1039 Result := ParentCategory.ParentBBS2ch.GetLogFolder
1040 + BBSID + PATH_DELIM + FOLDER_INDEX_FILENAME;
1043 //
\83X
\83\8c\97§
\82Ä
\91\97\90MURL
1044 function TBoard.GetSendURL: string;
1046 Result := GikoSys.UrlToServer(URL) + 'test/subbbs.cgi';
1049 procedure TBoard.SetRound(b: Boolean);
1054 RoundList.Delete(Self);
1055 if FRound = b then Exit;
1061 procedure TBoard.SetRoundName(s: string);
1063 if FRoundName = s then Exit;
1069 procedure TBoard.SetLastModified(d: TDateTime);
1071 if FLastModified = d then Exit;
1077 procedure TBoard.SetLastGetTime(d: TDateTime);
1079 if FLastGetTime = d then Exit;
1085 procedure TBoard.SetUnRead(i: Integer);
1087 if FUnRead = i then Exit;
1088 if i < 0 then i := 0;
1094 procedure TBoard.SetKotehanName(s: string);
1096 if FKotehanName = s then Exit;
1102 procedure TBoard.SetKotehanMail(s: string);
1104 if FKotehanMail = s then Exit;
1110 function TBoard.GetNewThreadCount: Integer;
1115 if Length( ParentCategory.ParentBBS2ch.ShortSelectText ) = 0 then
1117 for i := 0 to Count - 1 do begin
1118 if Items[i].NewArrival then
1122 for i := 0 to Count - 1 do begin
1123 if Items[i].NewArrival then
1125 if Items[i].ShortTitle = '' then
1126 Items[i].ShortTitle := GikoSys.ZenToHan(Items[i].Title);
1127 if AnsiPos(ParentCategory.ParentBBS2ch.ShortSelectText, Items[i].ShortTitle) <> 0 then
1134 function TBoard.GetLogThreadCount: Integer;
1139 if Length( ParentCategory.ParentBBS2ch.ShortSelectText ) = 0 then
1141 for i := 0 to Count - 1 do begin
1142 if Items[i].IsLogFile then
1146 for i := 0 to Count - 1 do begin
1147 if Items[i].IsLogFile then
1149 if Items[i].ShortTitle = '' then
1150 Items[i].ShortTitle := GikoSys.ZenToHan(Items[i].Title);
1151 if AnsiPos(ParentCategory.ParentBBS2ch.ShortSelectText, Items[i].ShortTitle) <> 0 then
1158 function TBoard.GetUserThreadCount: Integer;
1163 if Length( ParentCategory.ParentBBS2ch.ShortSelectText ) = 0 then
1166 for i := 0 to Count - 1 do begin
1167 if Items[i].ShortTitle = '' then
1168 Items[i].ShortTitle := GikoSys.ZenToHan(Items[i].Title);
1169 if AnsiPos(ParentCategory.ParentBBS2ch.ShortSelectText, Items[i].ShortTitle) <> 0 then
1174 function TBoard.GetNewThread(Index: Integer): TThreadItem;
1181 if Length( ParentCategory.ParentBBS2ch.ShortSelectText ) = 0 then
1183 for i := 0 to Count - 1 do begin
1184 if Items[i].NewArrival then
1186 if Index = Cnt then begin
1194 for i := 0 to Count - 1 do begin
1195 if Items[i].NewArrival then
1197 if Items[i].ShortTitle = '' then
1198 Items[i].ShortTitle := GikoSys.ZenToHan(Items[i].Title);
1199 if AnsiPos(ParentCategory.ParentBBS2ch.ShortSelectText, Items[i].ShortTitle) <> 0 then begin
1200 if Index = Cnt then begin
1211 function TBoard.GetLogThread(Index: Integer): TThreadItem;
1217 if Length( ParentCategory.ParentBBS2ch.ShortSelectText ) = 0 then
1219 for i := 0 to Count - 1 do begin
1220 if Items[i].IsLogFile then
1222 if Index = Cnt then begin
1230 for i := 0 to Count - 1 do begin
1231 if Items[i].IsLogFile then
1233 if Items[i].ShortTitle = '' then
1234 Items[i].ShortTitle := GikoSys.ZenToHan(Items[i].Title);
1235 if AnsiPos(ParentCategory.ParentBBS2ch.ShortSelectText, Items[i].ShortTitle) <> 0 then begin
1236 if Index = Cnt then begin
1248 function TBoard.GetUserThread(Index: Integer): TThreadItem;
1255 if Length( ParentCategory.ParentBBS2ch.ShortSelectText ) = 0 then
1257 for i := 0 to Count - 1 do begin
1260 Result := Items[ i ];
1266 for i := 0 to Count - 1 do begin
1267 if Items[i].ShortTitle = '' then
1268 Items[i].ShortTitle := GikoSys.ZenToHan(Items[i].Title);
1269 if AnsiPos(ParentCategory.ParentBBS2ch.ShortSelectText, Items[i].ShortTitle) <> 0 then begin
1270 if Index = Cnt then begin
1280 procedure TBoard.BeginUpdate;
1285 procedure TBoard.EndUpdate;
1290 {class function TBoard.GetColumnName(Index: Integer): string;
1292 Result := COLUMN_THREADITEM[Index];
1295 class function TBoard.GetColumnCount: Integer;
1297 Result := Length(COLUMN_THREADITEM);
1300 //constructor TThreadItem.Create(AOwner: TComponent);
1301 constructor TThreadItem.Create;
1306 FRoundDate := ZERO_DATE;
1307 FLastModified := ZERO_DATE;
1313 FIsLogFile := False;
1314 FParentBoard := nil;
1317 FNewArrival := False;
1321 FBoardPlugIn := nil;
1324 // *************************************************************************
1325 //
\8aO
\95\94\94Â
\83v
\83\89\83O
\83C
\83\93\82ð
\8ew
\92è
\82µ
\82½
\83R
\83\93\83X
\83g
\83\89\83N
\83^
1326 // *************************************************************************
1327 constructor TThreadItem.Create(
1328 inPlugIn : TBoardPlugIn;
1335 FBoardPlugIn := inPlugIn;
1338 //
\83v
\83\89\83O
\83C
\83\93\82É TThreadItem
\82ª
\8dì
\90¬
\82³
\82ê
\82½
\82±
\82Æ
\82ð
\93`
\82¦
\82é
1339 inPlugIn.CreateThreadItem( DWORD( Self ) );
1343 // *************************************************************************
1344 //
\83f
\83X
\83g
\83\89\83N
\83^
1345 // *************************************************************************
1346 destructor TThreadItem.Destroy;
1349 //
\83v
\83\89\83O
\83C
\83\93\82É TThreadItem
\82ª
\94j
\8aü
\82³
\82ê
\82½
\82±
\82Æ
\82ð
\93`
\82¦
\82é
1350 if IsBoardPlugInAvailable then
1351 FBoardPlugIn.DisposeThreadItem( DWORD( Self ) );
1357 // *************************************************************************
1358 //
\8aO
\95\94\94Â
\83v
\83\89\83O
\83C
\83\93\82ª
\8eg
\97p
\89Â
\94\
\82©
1359 // *************************************************************************
1360 function TThreadItem.IsBoardPlugInAvailable : Boolean;
1364 if BoardPlugIn = nil then
1367 if not Assigned( Pointer( BoardPlugIn.Module ) ) then
1378 function TThreadItem.GetDatURL: string;
1380 Protocol, Host, Path, Document, Port, Bookmark: string;
1382 Result := ParentBoard.URL
1385 if FDownloadHost <> '' then begin
1386 GikoSys.ParseURI(Result, Protocol, Host, Path, Document, Port, Bookmark);
1387 Result := Format('%s://%s%s%s', [Protocol,
1392 // Result := GikoSys.UrlToServer(ParentBoard.URL)
1393 // + 'test/read.cgi/' + ParentBoard.BBSID + '/'
1394 // + ChangeFileExt(FileName, '') + '/?raw='
1395 // + IntToStr(ResNum) + '.' + IntToStr(ResSize);
1398 function TThreadItem.GetDatgzURL: string;
1399 function isOldKako(s: string): Boolean;
1402 if AnsiPos('piza.', s) <> 0 then
1404 else if AnsiPos('www.bbspink.', s) <> 0 then
1406 else if AnsiPos('tako.', s) <> 0 then
1410 Protocol, Host, Path, Document, Port, Bookmark: string;
1413 if FDownloadHost = '' then begin
1414 DatNo := ChangeFileExt(FileName, '');
1415 if isOldKako(ParentBoard.URL) then begin
1416 Result := Format('%s%s/%.3s/%s.dat', [ParentBoard.URL, 'kako', DatNo, DatNo]);
1418 if Length(DatNo) > 9 then begin
1419 //http://xxx.2ch.net/xxx/kako/9999/99999/999999999.dat.gz
1420 Result := Format('%s%s/%.4s/%.5s/%s.dat.gz', [ParentBoard.URL, 'kako', DatNo, DatNo, DatNo]);
1422 //http://xxx.2ch.net/xxx/kako/999/999999999.dat.gz
1423 Result := Format('%s%s/%.3s/%s.dat.gz', [ParentBoard.URL, 'kako', DatNo, DatNo]);
1427 Gikosys.ParseURI(Result, Protocol, Host, Path, Document, Port, Bookmark);
1428 DatNo := ChangeFileExt(Document, '');
1429 if isOldKako(DownloadHost) then begin
1430 Result := Format('%s://%s/%s/kako/%.3s/%s.dat', [Protocol, DownloadHost, ParentBoard.FBBSID, DatNo, DatNo]);
1432 if Length(DatNo) > 9 then begin
1433 Result := Format('%s://%s/%s/kako/%.4s/%.5s/%s.dat.gz', [Protocol, DownloadHost, ParentBoard.FBBSID, DatNo, DatNo, DatNo]);
1435 Result := Format('%s://%s/%s/kako/%.3s/%s.dat.gz', [Protocol, DownloadHost, ParentBoard.FBBSID, DatNo, DatNo]);
1441 {function TThreadItem.GetOldDatgzURL: string;
1443 Protocol, Host, Path, Document, Port, Bookmark: string;
1445 Result := Format('%s%s/%.3s/%s.gz', [ParentBoard.URL,
1449 if FDownloadHost <> '' then begin
1450 ParseURI(Result, Protocol, Host, Path, Document, Port, Bookmark);
1451 Result := Format('%s://%s%s%s', [Protocol,
1459 function TThreadItem.GetOfflawCgiURL(SessionID: string): string;
1461 // Protocol, Host, Path, Document, Port, Bookmark: string;
1463 // Result := GikoSys.UrlToServer(ParentBoard.URL)
1464 // + 'test/offlaw.cgi/' + ParentBoard.BBSID + '/'
1465 // + ChangeFileExt(FileName, '') + '/?raw=.0&sid=' + HttpEncode(SessionID);
1466 if FDownloadHost = '' then begin
1467 Result := GikoSys.UrlToServer(ParentBoard.URL)
1468 + 'test/offlaw.cgi/' + ParentBoard.BBSID + '/'
1469 + ChangeFileExt(FileName, '') + '/?raw=.0&sid=' + HttpEncode(SessionID);
1471 //http://news.2ch.net/test/offlaw.cgi/newsplus/1014038577/?raw=.196928&sid=
1472 //GikoSys.ParseURI(Result, Protocol, Host, Path, Document, Port, Bookmark);
1473 Result := 'http://' + FDownloadHost
1474 + '/test/offlaw.cgi/' + ParentBoard.BBSID + '/'
1475 + ChangeFileExt(FileName, '') + '/?raw=.0&sid=' + HttpEncode(SessionID);
1476 // Result := Format('%s://%s%s%s', [Protocol,
1483 function TThreadItem.GetSendURL: string;
1485 Result := GikoSys.UrlToServer(ParentBoard.URL)
1489 procedure TThreadItem.DeleteLogFile;
1491 DeleteFile(GetThreadFileName);
1492 if FileExists(ChangeFileExt(GetThreadFileName,'.NG')) = true then
1493 DeleteFile(ChangeFileExt(GetThreadFileName,'.NG'));
1494 FRoundDate := ZERO_DATE;
1495 FLastModified := ZERO_DATE;
1497 FIsLogFile := False;
1500 FNewArrival := False;
1504 FDownloadHost := '';
1505 FAgeSage := gasNone;
1512 function TThreadItem.GetThreadFileName: string;
1514 if Length( FilePath ) > 0 then
1517 Result := ParentBoard.ParentCategory.ParentBBS2ch.GetLogFolder
1518 + ParentBoard.BBSID + PATH_DELIM + FileName;
1521 procedure TThreadItem.SetLastModified(d: TDateTime);
1523 if FLastModified = d then Exit;
1525 if FUpdate and (ParentBoard <> nil) then
1526 ParentBoard.FModified := True;
1529 {procedure TThreadItem.SetRoundNo(i: Integer);
1531 if FRoundNo = i then Exit;
1533 if FUpdate and (ParentBoard <> nil) then
1534 ParentBoard.FModified := True;
1537 procedure TThreadItem.SetRound(b: Boolean);
1542 RoundList.Delete(Self);
1543 if FRound = b then Exit;
1545 if FUpdate and (ParentBoard <> nil) then
1546 ParentBoard.FModified := True;
1549 procedure TThreadItem.SetRoundName(s: string);
1551 if FRoundName = s then Exit;
1553 if FUpdate and (ParentBoard <> nil) then
1554 ParentBoard.FModified := True;
1557 procedure TThreadItem.SetKokomade(i: Integer);
1559 if FKokomade = i then Exit;
1561 if FUpdate and (ParentBoard <> nil) then
1562 ParentBoard.FModified := True;
1565 procedure TThreadItem.SetUnRead(b: Boolean);
1567 if FUnRead = b then Exit;
1569 if FUpdate and (ParentBoard <> nil) then
1570 ParentBoard.FModified := True;
1573 procedure TThreadItem.SetScrollTop(i: Integer);
1575 if FScrollTop = i then Exit;
1577 if FUpdate and (ParentBoard <> nil) then
1578 ParentBoard.FModified := True;
1581 procedure TThreadItem.BeginUpdate;
1586 procedure TThreadItem.EndUpdate;
1591 function TThreadItem.GetURLWrapper: string;
1595 Result := GikoSys.GetURL( ParentBoard.BBSID, FileName )
1602 BBS2ch := TBBS2ch.Create;
1605 if BBS2ch <> nil then