unit dmBasic; {basic WebHub data module} (* Copyright (c) 1997-2003 HREF Tools Corp. Permission is hereby granted, on 1-Nov-2003, free of charge, to any person obtaining a copy of this file (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Author of original version of this file: Michael Ax *) interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, UpdateOk, tpAction, IniLink, WebStLst, TpMenu; type TdmBasicDatamodule = class(TDataModule) dm: TtpDataModule; private fList: TWebStoreList; procedure SetList(Value:TWebStoreList); public constructor Create(aOwner:TComponent); override; destructor Destroy; override; function Init:Boolean; virtual; property List:TWebStoreList read fList write SetList; end; var dmBasicDatamodule: TdmBasicDatamodule; implementation {$R *.DFM} function TdmBasicDatamodule.Init:Boolean; begin Result:=True; end; procedure TdmBasicDatamodule.SetList(Value:TWebStoreList); begin fList.Assign(Value); end; constructor TdmBasicDatamodule.Create(aOwner:TComponent); begin fList:=TWebStoreList.Create; inherited Create(aOwner); end; destructor TdmBasicDatamodule.Destroy; begin fList.Free; fList:=nil; inherited Destroy; end; //------------------------------------------------------------------------------ end.