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

// (DO NOT EDIT: machine generated header) 'Smi2ado.pas' rev: 21.00

#ifndef Smi2adoHPP
#define Smi2adoHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <Smibase.hpp>	// Pascal unit
#include <Smi2ole.hpp>	// Pascal unit
#include <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(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(unsigned ParentHandle, System::WideString InitialString);
extern PACKAGE void __fastcall GetADOTables(Classes::TStrings* lst, const System::UnicodeString ConnectionString, bool SystemTables);
extern PACKAGE void __fastcall GetADOTableFields(Classes::TStrings* lst, const System::UnicodeString ConnectionString, const System::UnicodeString TableName);

}	/* namespace Smi2ado */
using namespace Smi2ado;
#pragma pack(pop)
#pragma option pop

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