unit ULNObju;
{ Generated by MakeComp 1.02 from ULNTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, UlanType, ULRecTyp, ULObju, 
  ULNDType,
  ULNType;

type
  TULNObj = class(TULObj)
  protected
    function GetChannelName: TChannelName;
    procedure SetChannelName(AChannelName: TChannelName);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property ChannelName: TChannelName
      read GetChannelName write SetChannelName;
  end;

const
  ULNChildRecIDs: array[0..0] of TULRecID = (
    ULNDID
  );
  ULNFldDescs: array[0..0] of TULFldDesc = (
    (
     Caption: 'Channel name';
     Hint: 'User defined unique name of the channel (=set of devices)';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    )
  );
  ULNRecDesc: TULRecDesc = (
    Caption: 'Channel';
    ChildRecIDsStr: 'ULNDID';
    ChildRecIDs: @ULNChildRecIDs;
    ChildRecIDCount: 1;
    FldCount: 1;
    Flds: @ULNFldDescs;
    Flags: rfChildAllowed + rfRootChild + rfHasRecName + rfEnabled + rfVisible;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: ''
   );

implementation

{TULNObj}
function TULNObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TULNRec);
end;

constructor TULNObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), ULNID);
end;

function TULNObj.GetULRecDesc: PULRecDesc;
begin
  Result := @ULNRecDesc;
end;

procedure TULNObj.SetChannelName(AChannelName: TChannelName);
begin
  if PULNRec(Rec)^.ChannelName <> AChannelName then begin
    PULNRec(Rec)^.ChannelName := AChannelName;
    DoChange;
  end;
end;

function TULNObj.GetChannelName: TChannelName;
begin
  GetChannelName := PULNRec(Rec)^.ChannelName;
end;

{/TULNObj}

end.
