home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'CoolDBUtils.pas' rev: 3.00
-
- #ifndef CoolDBUtilsHPP
- #define CoolDBUtilsHPP
- #include <Registry.hpp>
- #include <DBTables.hpp>
- #include <Db.hpp>
- #include <Bde.hpp>
- #include <FileCtrl.hpp>
- #include <Forms.hpp>
- #include <Classes.hpp>
- #include <SysUtils.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Cooldbutils
- {
- //-- type declarations -------------------------------------------------------
- enum TTablesAction { taAll, taFromMask, taFromList };
-
- typedef SmallString<128> TBDEString;
-
- typedef void __fastcall (__closure *TActionInProgress)(System::TObject* Sender, int TablesNum, System::AnsiString
- CurName, int CurNum);
-
- class DELPHICLASS TDBCUAboutBox;
- class PASCALIMPLEMENTATION TDBCUAboutBox : public System::TObject
- {
- typedef System::TObject inherited;
-
- public:
- /* TObject.Create */ __fastcall TDBCUAboutBox(void) : System::TObject() { }
- /* TObject.Destroy */ __fastcall virtual ~TDBCUAboutBox(void) { }
-
- };
-
- class DELPHICLASS TCoolDBComponent;
- class PASCALIMPLEMENTATION TCoolDBComponent : public Classes::TComponent
- {
- typedef Classes::TComponent inherited;
-
- private:
- TDBCUAboutBox* FAboutBox;
- TBDEString FDatabaseName;
- TTablesAction FTablesAction;
- Classes::TStrings* FTables;
- System::AnsiString FTablesMask;
- TActionInProgress FOnActionInProgress;
- Classes::TNotifyEvent FOnExecuteBegin;
- Classes::TNotifyEvent FOnExecuteEnd;
- void __fastcall SetDatabaseName( TBDEString &Value);
- void __fastcall SetTables(Classes::TStrings* Value);
-
- protected:
- DYNAMIC void __fastcall BeginExecute(void);
- DYNAMIC void __fastcall EndExecute(void);
-
- public:
- __fastcall virtual TCoolDBComponent(Classes::TComponent* AOwner);
- __fastcall virtual ~TCoolDBComponent(void);
- DYNAMIC void __fastcall Execute(void) = 0;
- __property TBDEString DatabaseName = {read=FDatabaseName, write=SetDatabaseName};
- __property TTablesAction TablesAction = {read=FTablesAction, write=FTablesAction, default=0};
- __property Classes::TStrings* Tables = {read=FTables, write=SetTables};
- __property System::AnsiString TablesMask = {read=FTablesMask, write=FTablesMask};
- __property TActionInProgress OnActionInProgress = {read=FOnActionInProgress, write=FOnActionInProgress
- };
- __property Classes::TNotifyEvent OnExecuteBegin = {read=FOnExecuteBegin, write=FOnExecuteBegin};
- __property Classes::TNotifyEvent OnExecuteEnd = {read=FOnExecuteEnd, write=FOnExecuteEnd};
-
- __published:
- __property TDBCUAboutBox* About = {read=FAboutBox, write=FAboutBox};
- };
-
- class DELPHICLASS TCoolDBBackup;
- class PASCALIMPLEMENTATION TCoolDBBackup : public Cooldbutils::TCoolDBComponent
- {
- typedef Cooldbutils::TCoolDBComponent inherited;
-
- private:
- TBDEString FDatabaseBackupName;
- bool FDeleteOnDone;
- bool FPackOnProgress;
- void __fastcall SetDatabaseBackupName( TBDEString &Value);
-
- public:
- __fastcall virtual TCoolDBBackup(Classes::TComponent* AOwner);
- DYNAMIC void __fastcall Execute(void);
-
- __published:
- __property TBDEString DatabaseBackupName = {read=FDatabaseBackupName, write=SetDatabaseBackupName};
-
- __property bool DeleteOnDone = {read=FDeleteOnDone, write=FDeleteOnDone, default=0};
- __property bool PackOnProgress = {read=FPackOnProgress, write=FPackOnProgress, default=0};
- __property DatabaseName ;
- __property TablesAction ;
- __property Tables ;
- __property TablesMask ;
- __property OnActionInProgress ;
- __property OnExecuteBegin ;
- __property OnExecuteEnd ;
- public:
- /* TCoolDBComponent.Destroy */ __fastcall virtual ~TCoolDBBackup(void) { }
-
- };
-
- class DELPHICLASS TCoolDBPack;
- class PASCALIMPLEMENTATION TCoolDBPack : public Cooldbutils::TCoolDBComponent
- {
- typedef Cooldbutils::TCoolDBComponent inherited;
-
- public:
- DYNAMIC void __fastcall Execute(void);
-
- __published:
- __property DatabaseName ;
- __property TablesAction ;
- __property Tables ;
- __property TablesMask ;
- __property OnActionInProgress ;
- __property OnExecuteBegin ;
- __property OnExecuteEnd ;
- public:
- /* TCoolDBComponent.Create */ __fastcall virtual TCoolDBPack(Classes::TComponent* AOwner) : Cooldbutils::
- TCoolDBComponent(AOwner) { }
- /* TCoolDBComponent.Destroy */ __fastcall virtual ~TCoolDBPack(void) { }
-
- };
-
- class DELPHICLASS TCoolDBStructureExporter;
- class PASCALIMPLEMENTATION TCoolDBStructureExporter : public Cooldbutils::TCoolDBComponent
- {
- typedef Cooldbutils::TCoolDBComponent inherited;
-
- private:
- System::AnsiString FFileName;
-
- public:
- DYNAMIC void __fastcall Execute(void);
-
- __published:
- __property System::AnsiString FileName = {read=FFileName, write=FFileName};
- __property DatabaseName ;
- __property TablesAction ;
- __property Tables ;
- __property TablesMask ;
- __property OnActionInProgress ;
- __property OnExecuteBegin ;
- __property OnExecuteEnd ;
- public:
- /* TCoolDBComponent.Create */ __fastcall virtual TCoolDBStructureExporter(Classes::TComponent* AOwner
- ) : Cooldbutils::TCoolDBComponent(AOwner) { }
- /* TCoolDBComponent.Destroy */ __fastcall virtual ~TCoolDBStructureExporter(void) { }
-
- };
-
- class DELPHICLASS TCoolDBStructureRestorer;
- class PASCALIMPLEMENTATION TCoolDBStructureRestorer : public Cooldbutils::TCoolDBComponent
- {
- typedef Cooldbutils::TCoolDBComponent inherited;
-
- private:
- System::AnsiString FFileName;
-
- public:
- DYNAMIC void __fastcall Execute(void);
-
- __published:
- __property System::AnsiString FileName = {read=FFileName, write=FFileName};
- __property DatabaseName ;
- __property TablesAction ;
- __property Tables ;
- __property TablesMask ;
- __property OnActionInProgress ;
- __property OnExecuteBegin ;
- __property OnExecuteEnd ;
- public:
- /* TCoolDBComponent.Create */ __fastcall virtual TCoolDBStructureRestorer(Classes::TComponent* AOwner
- ) : Cooldbutils::TCoolDBComponent(AOwner) { }
- /* TCoolDBComponent.Destroy */ __fastcall virtual ~TCoolDBStructureRestorer(void) { }
-
- };
-
- class DELPHICLASS TCoolDBUpdater;
- class PASCALIMPLEMENTATION TCoolDBUpdater : public Cooldbutils::TCoolDBComponent
- {
- typedef Cooldbutils::TCoolDBComponent inherited;
-
- private:
- TBDEString FDatabaseImporterName;
- bool FDeleteOnDone;
- void __fastcall SetDatabaseImporterName( TBDEString &Value);
-
- public:
- __fastcall virtual TCoolDBUpdater(Classes::TComponent* AOwner);
- DYNAMIC void __fastcall Execute(void);
-
- __published:
- __property TBDEString DatabaseImporterName = {read=FDatabaseImporterName, write=SetDatabaseImporterName
- };
- __property bool DeleteOnDone = {read=FDeleteOnDone, write=FDeleteOnDone, default=0};
- __property DatabaseName ;
- __property TablesAction ;
- __property Tables ;
- __property TablesMask ;
- __property OnActionInProgress ;
- __property OnExecuteBegin ;
- __property OnExecuteEnd ;
- public:
- /* TCoolDBComponent.Destroy */ __fastcall virtual ~TCoolDBUpdater(void) { }
-
- };
-
- class DELPHICLASS TCoolDBUpdater2;
- class PASCALIMPLEMENTATION TCoolDBUpdater2 : public Cooldbutils::TCoolDBUpdater
- {
- typedef Cooldbutils::TCoolDBUpdater inherited;
-
- public:
- DYNAMIC void __fastcall Execute(void);
- public:
- /* TCoolDBUpdater.Create */ __fastcall virtual TCoolDBUpdater2(Classes::TComponent* AOwner) : Cooldbutils::
- TCoolDBUpdater(AOwner) { }
-
- public:
- /* TCoolDBComponent.Destroy */ __fastcall virtual ~TCoolDBUpdater2(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE void __fastcall CopyTable(Dbtables::TTable* &Table, System::AnsiString SrcTableName,
- System::AnsiString DestName);
- extern PACKAGE void __fastcall AddPrimaryIndex(Dbtables::TTable* Table);
- extern PACKAGE bool __fastcall AliasExists(System::AnsiString AliasName);
- extern PACKAGE bool __fastcall TableExists(System::AnsiString AliasName, System::AnsiString TableName
- );
- extern PACKAGE System::AnsiString __fastcall GetAliasPath(System::AnsiString AliasName);
- extern PACKAGE void __fastcall ChangeField(Dbtables::TTable* Table, Db::TField* Field, Bde::pFLDDesc
- FieldsDesc);
- extern PACKAGE void __fastcall AddField(Dbtables::TTable* Table, Bde::pFLDDesc FieldsDesc);
- extern PACKAGE void __fastcall DeleteField(Dbtables::TTable* Table, Db::TField* Field);
- extern PACKAGE void __fastcall TableRestructure(Dbtables::TTable* tblSource, Dbtables::TTable* tblDestination
- );
- extern PACKAGE void __fastcall ChangeIndex(Dbtables::TTable* Table, const Bde::IDXDesc &IndexDesc, int
- Index);
- extern PACKAGE Classes::TStringList* __fastcall GetIndexes(Dbtables::TTable* Table);
- extern PACKAGE bool __fastcall GetIndexDesc(Dbtables::TTable* Table, System::AnsiString IndexName, Bde::IDXDesc
- &IndexDesc);
- extern PACKAGE void __fastcall IndexesRestructure(Dbtables::TTable* tblSource, Dbtables::TTable* tblDestination
- );
-
- } /* namespace Cooldbutils */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Cooldbutils;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // CoolDBUtils
-