FrmIcsCameraF.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. #include "IcsView.hpp"
  10. //---------------------------------------------------------------------------
  11. #include "CDSCctvF.h"
  12. #include <ExtCtrls.hpp>
  13. #include <OleCtrls.hpp>
  14. #include <Menus.hpp>
  15. #include "cxContainer.hpp"
  16. #include "cxControls.hpp"
  17. #include "cxEdit.hpp"
  18. #include "cxGraphics.hpp"
  19. #include "cxLabel.hpp"
  20. #include "cxLookAndFeelPainters.hpp"
  21. #include "cxLookAndFeels.hpp"
  22. #include "dxSkinsCore.hpp"
  23. #include "dxSkinBlack.hpp"
  24. #include "dxSkinBlue.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. TcxLabel *LblName;
  39. void __fastcall MnuConnectClick(TObject *Sender);
  40. void __fastcall MnuDisconnectClick(TObject *Sender);
  41. void __fastcall MnuReleaseClick(TObject *Sender);
  42. void __fastcall TmrPlayTimer(TObject *Sender);
  43. void __fastcall TmrStopTimer(TObject *Sender);
  44. private: // User declarations
  45. TIcsView *IcsView;
  46. public: // User declarations
  47. __fastcall TFrmIcsCamera(TComponent* Owner, TXCctv *ACctv, bool AAutoPlay);
  48. bool FAutoPlay;
  49. bool FPlay;
  50. long FConHandle;
  51. bool FInstalled;
  52. String FId;
  53. String FGroup;
  54. String FName;
  55. String FStreamingType;
  56. String FViewAddress;
  57. String FFullAddress;
  58. String FWebCamIp;
  59. String FWebCamUser;
  60. String FWebCamPswd;
  61. void __fastcall InitCamera(TXCctv *ACctv, bool AAutoPlay=true);
  62. void __fastcall DisplayName(String AName);
  63. void __fastcall Connect();
  64. void __fastcall Disconnect();
  65. void __fastcall CameraRelease();
  66. };
  67. //---------------------------------------------------------------------------
  68. extern PACKAGE TFrmIcsCamera *FrmIcsCamera;
  69. //---------------------------------------------------------------------------
  70. #endif