FrmCameraPlayerF.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCameraPlayerFH
  3. #define FrmCameraPlayerFH
  4. //---------------------------------------------------------------------------
  5. #include "FFBaseComponent.hpp"
  6. #include "FFBasePlay.hpp"
  7. #include "FFPlay.hpp"
  8. #include <Classes.hpp>
  9. #include <Controls.hpp>
  10. #include <StdCtrls.hpp>
  11. #include <Forms.hpp>
  12. #include <ExtCtrls.hpp>
  13. #include <OleCtrls.hpp>
  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 "dxSkinBlue.hpp"
  23. #include "dxSkinsCore.hpp"
  24. #include <Menus.hpp>
  25. #include "dxGDIPlusClasses.hpp"
  26. #include "IdBaseComponent.hpp"
  27. #include "IdComponent.hpp"
  28. #include "IdExplicitTLSClientServerBase.hpp"
  29. #include "IdFTP.hpp"
  30. #include "IdTCPClient.hpp"
  31. #include "IdTCPConnection.hpp"
  32. #include "FFLog.hpp"
  33. //---------------------------------------------------------------------------
  34. class TFrmCameraPlayer : public TForm
  35. {
  36. __published: // IDE-managed Components
  37. TTimer *TmrShow;
  38. TPopupMenu *PopupMenu1;
  39. TMenuItem *MnuConnect;
  40. TMenuItem *MnuDisconnect;
  41. TFFPlayer *FFPlayer1;
  42. TPanel *PnlCamera;
  43. TImage *ImgNoData;
  44. TPanel *PnlName;
  45. TMenuItem *MnuInfo;
  46. TMenuItem *N1;
  47. void __fastcall TmrShowTimer(TObject *Sender);
  48. void __fastcall FormShow(TObject *Sender);
  49. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  50. void __fastcall FormDestroy(TObject *Sender);
  51. void __fastcall MnuConnectClick(TObject *Sender);
  52. void __fastcall MnuDisconnectClick(TObject *Sender);
  53. void __fastcall PnlCameraDblClick(TObject *Sender);
  54. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  55. void __fastcall MnuInfoClick(TObject *Sender);
  56. private: // User declarations
  57. public: // User declarations
  58. bool FFullScreen;
  59. TRect FLastBounds;
  60. TWinControl *FParent;
  61. bool FPlay;
  62. bool FAutoPlay;
  63. long FConHandle;
  64. String FId;
  65. String FName;
  66. String FStreamingType;
  67. String FViewAddress;
  68. String FFullAddress;
  69. bool IsTerm;
  70. bool Installed;
  71. String CTLR_NMBR;
  72. String NAME;
  73. String STRM_ADDR;
  74. String FULL_STRM_ADDR;
  75. int VIEW_MODE;
  76. void __fastcall InitCamera(bool AInstalled, String ACtlrNmbr, String AName, String AStrmAddr, String AFullStrmAddr, int AViewMode);
  77. void __fastcall LoadEmptyImage();
  78. void __fastcall AutoPlay();
  79. void __fastcall Play();
  80. void __fastcall Stop();
  81. void __fastcall Term();
  82. __fastcall TFrmCameraPlayer(TComponent* Owner);
  83. };
  84. //---------------------------------------------------------------------------
  85. extern PACKAGE TFrmCameraPlayer *FrmCameraPlayer;
  86. //---------------------------------------------------------------------------
  87. #endif