FrmCctvCamF.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCctvCamFH
  3. #define FrmCctvCamFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <OleCtrls.hpp>
  11. #include "CDSFacilityF.h"
  12. #include <ADODB.hpp>
  13. #include <DB.hpp>
  14. #include "AcesTechXPlayer2Lib_OCX.h"
  15. #include <Menus.hpp>
  16. //---------------------------------------------------------------------------
  17. class TFrmCctvCam : public TForm
  18. {
  19. __published: // IDE-managed Components
  20. TPanel *PnlBack;
  21. TTimer *TmrShow;
  22. TPanel *PnlBlob;
  23. TADOQuery *pADO;
  24. TImage *ImgBlob;
  25. TAcesTechXPlayer2 *AcesTechXPlayer21;
  26. TPopupMenu *PopupMenu1;
  27. TMenuItem *MnuConnect;
  28. TMenuItem *MnuDisconnect;
  29. void __fastcall TmrShowTimer(TObject *Sender);
  30. void __fastcall FormShow(TObject *Sender);
  31. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  32. void __fastcall FormDestroy(TObject *Sender);
  33. void __fastcall MnuConnectClick(TObject *Sender);
  34. void __fastcall MnuDisconnectClick(TObject *Sender);
  35. private: // User declarations
  36. bool FDispBlob;
  37. DWORD FProcessId;
  38. HWND FWnd;
  39. public: // User declarations
  40. TItsCctv *FObj;
  41. TForm *FPalyerForm;
  42. //String FTitle;
  43. bool FAutoPlay;
  44. bool FPlay;
  45. long FConHandle;
  46. //bool FInstalled;
  47. String FId;
  48. String FGroup;
  49. String FName;
  50. String FStreamingType;
  51. String FViewAddress;
  52. String FFullAddress;
  53. void __fastcall InitCamera(void *ACctv, bool AAutoPlay=true);
  54. void __fastcall Connect();
  55. void __fastcall Disconnect();
  56. void __fastcall CameraRelease();
  57. void __fastcall RefreshCctv();
  58. __fastcall TFrmCctvCam(TComponent* Owner);
  59. };
  60. //---------------------------------------------------------------------------
  61. //extern PACKAGE TFrmCctvCam *FrmCctvCam;
  62. //---------------------------------------------------------------------------
  63. #endif