Ignore:
Timestamp:
Aug 16, 2012, 12:59:53 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Classes using TCommPin class now inherits from TCommNode which inherits from TComponent. All TCommNodes are now registred as components in PinConnection group on component palette.
  • Modified: TCommPin now have reference to parent TCommNode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommTelnet.pas

    r412 r413  
    6767  { TCommTelnet }
    6868
    69   TCommTelnet = class
     69  TCommTelnet = class(TCommNode)
    7070  private
    7171    FResponses: TListObject; // TListObject<TListByte>
     
    9292    procedure SendSubCommand(OptionCode: TTelnetCommand; Request, Response: TListByte);
    9393    procedure SendCommand(Code: TTelnetCode; Request, Response: TListByte);
    94     constructor Create;
     94    constructor Create(AOwner: TComponent); override;
    9595    destructor Destroy; override;
    9696    property Active: Boolean read FActive write SetActive;
     
    399399end;
    400400
    401 constructor TCommTelnet.Create;
    402 begin
     401constructor TCommTelnet.Create(AOwner: TComponent);
     402begin
     403  inherited;
    403404  FResponses := TListObject.Create;
    404405  FCommandData := TBinarySerializer.Create;
     
    407408  TelnetPin := TCommPin.Create;
    408409  TelnetPin.OnReceive := TelnetDataReceive;
     410  TelnetPin.Node := Self;
    409411  RawPin := TCommPin.Create;
    410412  RawPin.OnReceive := RawDataReceive;
     413  RawPin.Node := Self;
    411414  Options := TListObject.Create;
    412415  Options.OwnsObjects := False;
Note: See TracChangeset for help on using the changeset viewer.