FrmVmsCamOldF.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmVmsCamOldFH
  3. #define FrmVmsCamOldFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <OleCtrls.hpp>
  10. #include "CDSFacilityF.h"
  11. #include <ExtCtrls.hpp>
  12. #include <ComCtrls.hpp>
  13. #include "XNSSDKWINDOWLib_OCX.h"
  14. #include "XNSSDKDEVICELib_OCX.h"
  15. //---------------------------------------------------------------------------
  16. class TFrmVmsCamOld : public TForm
  17. {
  18. __published: // IDE-managed Components
  19. TPanel *PnlClient;
  20. TTimer *TmrShow;
  21. TXnsSdkDevice *XnsSdkDevice1;
  22. TXnsSdkWindow *XnsSdkWindow1;
  23. void __fastcall FormShow(TObject *Sender);
  24. void __fastcall TmrShowTimer(TObject *Sender);
  25. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  26. void __fastcall FormDestroy(TObject *Sender);
  27. void __fastcall XnsSdkDevice1ConnectFailed(TObject *Sender, long nDeviceID, long nControlID);
  28. void __fastcall XnsSdkDevice1DeviceStatusChanged(TObject *Sender, long nDeviceID, long nErrorCode, long nDeviceStatus,
  29. long nHddCondition);
  30. private: // User declarations
  31. public:
  32. TItsVms *FObj;
  33. long m_hDevice; // Device handle
  34. long m_lDeviceId; // Device handle
  35. long m_hMediaSource; // Media stream ID
  36. long m_nControlId; // Control ID
  37. bool m_bIsMediaPlay; // Media play or stop
  38. bool FDispBlob;
  39. public: // User declarations
  40. __fastcall TFrmVmsCamOld(TComponent* Owner);
  41. void __fastcall CommClose();
  42. void __fastcall WebCamPlay();
  43. void __fastcall WebCamStop();
  44. bool __fastcall SetupWebCamera();
  45. void __fastcall ReleaseWebCamera();
  46. bool __fastcall ConnectWebCamera();
  47. bool __fastcall OpenWebCamera();
  48. void __fastcall DisconnectWebCamera();
  49. void __fastcall CloseWebCamera();
  50. void __fastcall RefreshVms();
  51. };
  52. //---------------------------------------------------------------------------
  53. //extern PACKAGE TFrmVmsCam *FrmVmsCam;
  54. //---------------------------------------------------------------------------
  55. #endif