FrmIcsCameraF.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmIcsCameraFH
  3. #define FrmIcsCameraFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. //---------------------------------------------------------------------------
  10. #include "CDSCctvF.h"
  11. #include <ExtCtrls.hpp>
  12. #include <OleCtrls.hpp>
  13. #include <Menus.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 "dxSkinsCore.hpp"
  22. #include "dxSkinBlack.hpp"
  23. #include "dxSkinBlue.hpp"
  24. #include <SHDocVw.hpp>
  25. //---------------------------------------------------------------------------
  26. class TFrmIcsCamera : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TPanel *PnlCamera;
  30. TPopupMenu *PopupMenu1;
  31. TMenuItem *MnuConnect;
  32. TMenuItem *MnuDisconnect;
  33. TMenuItem *MnuRelease;
  34. TMenuItem *N2;
  35. TTimer *TmrPlay;
  36. TTimer *TmrStop;
  37. TImage *ImgNoData;
  38. TPanel *PnlName;
  39. TWebBrowser *WebBrowser1;
  40. void __fastcall MnuConnectClick(TObject *Sender);
  41. void __fastcall MnuDisconnectClick(TObject *Sender);
  42. void __fastcall MnuReleaseClick(TObject *Sender);
  43. void __fastcall TmrPlayTimer(TObject *Sender);
  44. void __fastcall TmrStopTimer(TObject *Sender);
  45. void __fastcall FormDestroy(TObject *Sender);
  46. void __fastcall WebBrowser1BeforeNavigate2(TObject *ASender, const IDispatch *pDisp,
  47. OleVariant &URL, OleVariant &Flags, OleVariant &TargetFrameName,
  48. OleVariant &PostData, OleVariant &Headers, WordBool &Cancel);
  49. private: // User declarations
  50. public: // User declarations
  51. __fastcall TFrmIcsCamera(TComponent* Owner, TXCctv *ACctv, bool AAutoPlay);
  52. bool FAutoPlay;
  53. bool FPlay;
  54. long FConHandle;
  55. bool FInstalled;
  56. String FId;
  57. String FGroup;
  58. String FName;
  59. String FStreamingType;
  60. String FViewAddress;
  61. String FFullAddress;
  62. String FWebCamIp;
  63. String FWebCamUser;
  64. String FWebCamPswd;
  65. void __fastcall InitCamera(TXCctv *ACctv, bool AAutoPlay=true);
  66. void __fastcall DisplayName(String AName);
  67. void __fastcall Connect();
  68. void __fastcall Disconnect();
  69. void __fastcall CameraRelease();
  70. String FCamUrl;
  71. void __fastcall OpenUrl(bool AOpen);
  72. void __fastcall BrowserShow(bool AShow);
  73. bool FHtmlCompleted;
  74. void *fJSExec;
  75. bool __fastcall ExecScript(String AScript);
  76. };
  77. //---------------------------------------------------------------------------
  78. extern PACKAGE TFrmIcsCamera *FrmIcsCamera;
  79. //---------------------------------------------------------------------------
  80. #endif