unit GESTISHOP_TLB;

// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// PASTLWTR : 1.2
// File generated on 29/09/2010 20:36:37 from Type Library described below.

// ************************************************************************  //
// Type Lib: J:\db2\fuentes\Servidor Gestishop\SGESTISHOP.tlb (1)
// LIBID: {1E299054-8DEE-439F-A10D-1896D21DBF83}
// LCID: 0
// Helpfile: 
// HelpString: GESTISHOP Library
// DepndLst: 
//   (1) v1.0 Midas, (C:\WINDOWS\system32\midas.dll)
//   (2) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
  

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLASS_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
const
  // TypeLibrary Major and minor versions
  GESTISHOPMajorVersion = 1;
  GESTISHOPMinorVersion = 0;

  LIBID_GESTISHOP: TGUID = '{1E299054-8DEE-439F-A10D-1896D21DBF83}';

  IID_IGESTISHOP3: TGUID = '{484002B8-9DE6-4D38-AF6A-CA7CD6C04711}';
  CLASS_AGESTISHOP: TGUID = '{F66B33AA-8B49-4301-8D74-CDD98EA1FA4A}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IGESTISHOP3 = interface;
  IGESTISHOP3Disp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  AGESTISHOP = IGESTISHOP3;


// *********************************************************************//
// Interface: IGESTISHOP3
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {484002B8-9DE6-4D38-AF6A-CA7CD6C04711}
// *********************************************************************//
  IGESTISHOP3 = interface(IAppServer)
    ['{484002B8-9DE6-4D38-AF6A-CA7CD6C04711}']
  end;

// *********************************************************************//
// DispIntf:  IGESTISHOP3Disp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {484002B8-9DE6-4D38-AF6A-CA7CD6C04711}
// *********************************************************************//
  IGESTISHOP3Disp = dispinterface
    ['{484002B8-9DE6-4D38-AF6A-CA7CD6C04711}']
    function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; MaxErrors: Integer; 
                             out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                           Options: Integer; const CommandText: WideString; var Params: OleVariant; 
                           var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function AS_GetProviderNames: OleVariant; dispid 20000003;
    function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                           var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

// *********************************************************************//
// The Class CoAGESTISHOP provides a Create and CreateRemote method to          
// create instances of the default interface IGESTISHOP3 exposed by              
// the CoClass AGESTISHOP. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoAGESTISHOP = class
    class function Create: IGESTISHOP3;
    class function CreateRemote(const MachineName: string): IGESTISHOP3;
  end;

implementation

uses ComObj;

class function CoAGESTISHOP.Create: IGESTISHOP3;
begin
  Result := CreateComObject(CLASS_AGESTISHOP) as IGESTISHOP3;
end;

class function CoAGESTISHOP.CreateRemote(const MachineName: string): IGESTISHOP3;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_AGESTISHOP) as IGESTISHOP3;
end;

end.
