FrmSamsungPlayer1F.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmSamsungPlayer1FH
  3. #define FrmSamsungPlayer1FH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <OleCtrls.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <ComCtrls.hpp>
  12. #include "XNSSDKDEVICELib_OCX.h"
  13. #include "XNSSDKWINDOWLib_OCX.h"
  14. #include "cxContainer.hpp"
  15. #include "cxControls.hpp"
  16. #include "cxEdit.hpp"
  17. #include "cxGraphics.hpp"
  18. #include "cxLabel.hpp"
  19. #include "cxLookAndFeelPainters.hpp"
  20. #include "cxLookAndFeels.hpp"
  21. #include "dxSkinBlack.hpp"
  22. #include "dxSkinMcSkin.hpp"
  23. #include "dxSkinsCore.hpp"
  24. //---------------------------------------------------------------------------
  25. class TFrmSamsungPlayer1 : public TForm
  26. {
  27. __published: // IDE-managed Components
  28. TPanel *PnlClient;
  29. TTimer *TmrShow;
  30. TXnsSdkDevice *XnsSdkDevice1;
  31. TXnsSdkWindow *XnsSdkWindow1;
  32. TcxLabel *LblErrMsg;
  33. void __fastcall FormShow(TObject *Sender);
  34. void __fastcall TmrShowTimer(TObject *Sender);
  35. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  36. void __fastcall FormDestroy(TObject *Sender);
  37. void __fastcall XnsSdkDevice1ConnectFailed(TObject *Sender, long nDeviceID, long nControlID);
  38. void __fastcall XnsSdkDevice1DeviceStatusChanged(TObject *Sender, long nDeviceID, long nErrorCode, long nDeviceStatus,
  39. long nHddCondition);
  40. private: // User declarations
  41. public:
  42. long m_hDevice; // Device handle
  43. long m_lDeviceId; // Device handle
  44. long m_hMediaSource; // Media stream ID
  45. long m_nControlId; // Control ID
  46. bool m_bIsMediaPlay; // Media play or stop
  47. bool FInitialize;
  48. public: // User declarations
  49. String FStrmAddr;
  50. String FId;
  51. String FLoc;
  52. WideString FDefModel;
  53. WideString FModelName;
  54. WideString FIpAddress;
  55. int FPort;
  56. WideString FConnId;
  57. WideString FConnPass;
  58. __fastcall TFrmSamsungPlayer1(TComponent* Owner, TWinControl* AParent);
  59. void __fastcall CommClose();
  60. void __fastcall WebCamPlay();
  61. void __fastcall WebCamStop();
  62. bool __fastcall SetupWebCamera();
  63. void __fastcall ReleaseWebCamera();
  64. bool __fastcall ConnectWebCamera();
  65. bool __fastcall OpenWebCamera();
  66. void __fastcall DisconnectWebCamera();
  67. void __fastcall CloseWebCamera();
  68. int __fastcall CameraControl(int ACommand, int ASpeed);
  69. void __fastcall ErrorMsg(String AErrMsg);
  70. };
  71. //---------------------------------------------------------------------------
  72. //extern PACKAGE TFrmSamsungPlayer1 *FrmSamsungPlayer1;
  73. //---------------------------------------------------------------------------
  74. #endif