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

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

#ifndef Smi2bdeHPP
#define Smi2bdeHPP

#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 <Classes.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <Dbtables.hpp>	// Pascal unit
#include <Smibase.hpp>	// Pascal unit

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

namespace Smi2bde
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TSMImportFromBDE;
class PASCALIMPLEMENTATION TSMImportFromBDE : public Smibase::TSMImportBaseComponent
{
	typedef Smibase::TSMImportBaseComponent inherited;
	
private:
	Db::TDataSet* SourceTable;
	Dbtables::TTableType FTableType;
	
protected:
	virtual void __fastcall BeforeImport(void);
	virtual void __fastcall AfterImport(void);
	virtual void __fastcall GoFirst(void);
	virtual void __fastcall GoNext(void);
	virtual bool __fastcall NeedMore(void);
	virtual int __fastcall GetTotalCount(void);
	virtual System::Variant __fastcall GetFieldValue(const System::Variant &v);
	virtual bool __fastcall FieldIsTruncated(void);
	virtual bool __fastcall NotDefined(System::UnicodeString &strProperty);
	
public:
	__fastcall virtual TSMImportFromBDE(Classes::TComponent* AOwner);
	virtual void __fastcall DetectAutoMapping(void);
	
__published:
	__property SourceFileName;
	__property Dbtables::TTableType TableType = {read=FTableType, write=FTableType, nodefault};
public:
	/* TSMImportBaseComponent.Destroy */ inline __fastcall virtual ~TSMImportFromBDE(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool __fastcall IsBDEAvailable(void);
extern PACKAGE void __fastcall LoadBDEPreview(System::TObject* grid, System::UnicodeString strFieldList, System::UnicodeString strFileName, bool IsDBase, Db::TDataSet* Dataset, bool IsASCII, Classes::TStrings* lstFields, Smibase::TPreviewCallback CallBack);

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

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