FrmAcesCamF.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmAcesCamFH
  3. #define FrmAcesCamFH
  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. typedef struct tagPlayerinfo
  18. {
  19. bool Installed;
  20. bool IsCctv;
  21. String ID;
  22. String NAME;
  23. String RTSP_ADDR;
  24. void **Data;
  25. } PLAYER_INFO;
  26. class TFrmAcesCam : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TPanel *PnlBack;
  30. TTimer *TmrShow;
  31. TPanel *PnlBlob;
  32. TADOQuery *pADO;
  33. TImage *ImgBlob;
  34. TAcesTechXPlayer2 *AcesTechXPlayer21;
  35. TPopupMenu *PopupMenu1;
  36. TMenuItem *MnuConnect;
  37. TMenuItem *MnuDisconnect;
  38. void __fastcall TmrShowTimer(TObject *Sender);
  39. void __fastcall FormShow(TObject *Sender);
  40. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  41. void __fastcall FormDestroy(TObject *Sender);
  42. void __fastcall MnuConnectClick(TObject *Sender);
  43. void __fastcall MnuDisconnectClick(TObject *Sender);
  44. private: // User declarations
  45. bool FDispBlob;
  46. DWORD FProcessId;
  47. HWND FWnd;
  48. public: // User declarations
  49. PLAYER_INFO FObj;
  50. bool FAutoPlay;
  51. bool FPlay;
  52. long FConHandle;
  53. //bool FInstalled;
  54. String FId;
  55. String FGroup;
  56. String FName;
  57. String FStreamingType;
  58. String FViewAddress;
  59. String FFullAddress;
  60. void __fastcall InitCamera(void *ACctv, bool AAutoPlay=true);
  61. void __fastcall Connect();
  62. void __fastcall Disconnect();
  63. void __fastcall CameraRelease();
  64. void __fastcall RefreshPlayer();
  65. __fastcall TFrmAcesCam(TComponent* Owner);
  66. };
  67. //---------------------------------------------------------------------------
  68. //extern PACKAGE TFrmAcesCam *FrmAcesCam;
  69. //---------------------------------------------------------------------------
  70. #endif