home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / DBXCTRL.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  2.3 KB  |  64 lines

  1. //----------------------------------------------------------------------------
  2. // DbXCtrl.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
  3. // From: DbXCtrl.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef DbXCtrlHPP
  6. #define DbXCtrlHPP
  7. //----------------------------------------------------------------------------
  8. #ifndef DBHPP
  9. #include <DB.hpp>
  10. #endif
  11.  
  12. #ifndef BdeHPP
  13. #include <Bde.hpp>
  14. #endif
  15.  
  16. #ifndef WindowsHPP
  17. #include <Windows.hpp>
  18. #endif
  19.  
  20. #ifndef SystemHPP
  21. #include <System.hpp>
  22. #endif
  23.  
  24. namespace Dbxctrl
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. enum TDbXEvent { dbxCreate, dbxDestroy, dbxException, dbxOpenDbName, dbxCloseDbName, dbxAddAlias, dbxRemoveAlias, 
  28.     dbxAddDb, dbxRemoveDb, dbxOpenDbH, dbxCloseDbH, dbxBDEOwnsDb };
  29.  
  30. typedef void __fastcall (*TDbXNotifyProc)(TDbXEvent AEvent, const void *Param);
  31.  
  32. typedef void __fastcall (*TDbXRegisterProc)(System::Integer AHandle, const System::ShortString &ARegKey
  33.     , TDbXNotifyProc ANotifyProc);
  34.  
  35. class __declspec(delphiclass) TDbXCtrl;
  36. class __declspec(pascalimplementation) TDbXCtrl : public System::TObject
  37. {
  38.     typedef TDbXCtrl ThisClass;
  39.     typedef System::TObject inherited;
  40.     
  41. public:
  42.     virtual void __fastcall DbEvent(Db::TDatabaseEvent DBEvent, const void *Param) = 0;
  43.     virtual void __fastcall DbListChange(const System::ShortString &AName, System::Boolean Add) = 0;
  44.     virtual void __fastcall DbSetHandle(Bde::hDBIDb DbHandle, System::Boolean Active) = 0;
  45.     virtual void __fastcall Show(void) = 0;
  46.     virtual void __fastcall ViewDR(System::Boolean ViewDR) = 0;
  47.     virtual System::Pointer __fastcall FindObject(System::Pointer AParent, const System::ShortString &AName
  48.         , const System::ShortString &AClass) = 0;
  49.     virtual void __fastcall SetSelection(System::Pointer AObject) = 0;
  50. public:
  51.     /* !! TObject.Create */ __fastcall TDbXCtrl(void) : System::TObject() { }
  52.     /* !! TObject.Destroy */ __fastcall virtual ~TDbXCtrl(void) { }
  53.     
  54. };
  55.  
  56. //-- var, const, procedure ---------------------------------------------------
  57.  
  58. }    /* namespace Dbxctrl */
  59. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  60. using namespace Dbxctrl;
  61. #endif
  62. //-- end unit ----------------------------------------------------------------
  63. #endif    // DbXCtrl
  64.