// CodeGear C++Builder
// Copyright (c) 1995, 2012 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'SMI2ADO.pas' rev: 24.00 (Win32)

#ifndef Smi2adoHPP
#define Smi2adoHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <Winapi.Windows.hpp>	// Pascal unit
#include <System.SysUtils.hpp>	// Pascal unit
#include <System.Classes.hpp>	// Pascal unit
#include <Vcl.Graphics.hpp>	// Pascal unit
#include <Data.DB.hpp>	// Pascal unit
#include <SMIBase.hpp>	// Pascal unit
#include <SMI2OLE.hpp>	// Pascal unit
#include <System.Variants.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Smi2ado
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TSMImportFromADO;
class PASCALIMPLEMENTATION TSMImportFromADO : public Smi2ole::TSMImportFromADODOA
{
	typedef Smi2ole::TSMImportFromADODOA inherited;
	
private:
	System::UnicodeString FSQL;
	
protected:
	virtual void __fastcall BeforeImport(void);
	virtual void __fastcall AfterImport(void);
	virtual bool __fastcall NotDefined(System::UnicodeString &strProperty);
	
public:
	__fastcall virtual TSMImportFromADO(System::Classes::TComponent* AOwner);
	__classmethod virtual System::UnicodeString __fastcall Extension();
	__classmethod virtual System::UnicodeString __fastcall FillFileFilters();
	virtual void __fastcall DetectAutoMapping(void);
	
__published:
	__property System::UnicodeString SQL = {read=FSQL, write=FSQL};
public:
	/* TSMImportBaseComponent.Destroy */ inline __fastcall virtual ~TSMImportFromADO(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE System::WideString __fastcall PromptDataSource(NativeUInt ParentHandle, System::WideString InitialString);
extern PACKAGE void __fastcall GetADOTables(System::Classes::TStrings* lst, const System::UnicodeString ConnectionString, bool SystemTables);
extern PACKAGE void __fastcall GetADOTableFields(System::Classes::TStrings* lst, const System::UnicodeString ConnectionString, const System::UnicodeString TableName);
}	/* namespace Smi2ado */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMI2ADO)
using namespace Smi2ado;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Smi2adoHPP
