TRoundItem = class(TObject)
private
-//
FItem : TObject;
-// FBBSType: TGikoBBSType;
FRoundName: string;
FRoundType: TGikoRoundType;
- //Item : TObject;
- //FURL : string;
- //FBoardTitle: string;
- //FThreadTitle: string;
- //FFileName: string;
FTmpURL : string;
FBoolData: Boolean; //\82¢\82ë\82¢\82ë\8eg\82¤\82å\82£
function GetBoardTitle : string;
function GetThreadTitle : string;
function GetURL : string;
function GetFileName : string;
+ //! \8f\84\89ñ\96¼\8eæ\93¾
+ function GetRoundName : string;
public
-
constructor Create;
property Item : TObject read FItem;
- //property BBSType: TGikoBBSType read FBBSType write FBBSType;
- property RoundName: string read FRoundName write FRoundName;
+ property RoundName: string read GetRoundName;
property RoundType: TGikoRoundType read FRoundType write FRoundType;
- //property Item : TObject read FItem write FItem;
property URL : string read GetURL;
property TmpURL : string read FTmpURL write FTmpURL;
property BoardTitle: string read GetBoardTitle;
end;
end;
end;
+//! \8f\84\89ñ\96¼\8eæ\93¾
+function TRoundItem.GetRoundName : string;
+begin
+ Result := '';
+ if( Self.FItem <> nil) then begin
+ if( Self.FItem is TBoard) then begin
+ Result := TBoard(Self.FItem).RoundName;
+ end else if( Self.FItem is TThreadItem) then begin
+ Result := TThreadItem(Self.FItem).RoundName;
+ end;
+ end;
+end;
+
constructor TRoundList.Create;
begin
inherited;
//Item.BoardTitle := Board.Title;
//Item.ThreadTitle := '';
//Item.FileName := '';
- Item.RoundName := Board.RoundName;
+ //Item.RoundName := Board.RoundName;
Result := FBoardList.Add(Item);
end;
end;
//Item.BoardTitle := ThreadItem.ParentBoard.Title;
//Item.ThreadTitle := ThreadItem.Title;
//Item.FileName := ThreadItem.FileName;
- Item.RoundName := ThreadItem.RoundName;
+ //Item.RoundName := ThreadItem.RoundName;
Result := FItemList.Add(Item);
end;
end;