//---------------------------------------------------------------------------

#ifndef FrameTruenActiveXFH
#define FrameTruenActiveXFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtons.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinsCore.hpp"
#include "ImageBtn.h"
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxLabel.hpp"
#include "AcesTechXPlayer2Lib_OCX.h"
#include <OleCtrls.hpp>
#include "IdBaseComponent.hpp"
#include "IdComponent.hpp"
#include "IdHTTP.hpp"
#include "IdTCPClient.hpp"
#include "IdTCPConnection.hpp"
#include "IdAuthenticationDigest.hpp"
#include "cxTextEdit.hpp"   /* idhttp 권한 설정을 위해 필요함 */

//---------------------------------------------------------------------------
class TFrameTruenActiveX : public TFrame
{
__published:	// IDE-managed Components
    TPanel *PnlCamConrtol;
    TcxButton *BtnImageSave;
    TPanel *PnlPTZ;
    TImageBtn *BtnUpLeft;
    TImageBtn *BtnUp;
    TImageBtn *BtnUpRight;
    TImageBtn *BtnLeft;
    TImageBtn *BtnHome;
    TImageBtn *BtnRight;
    TImageBtn *BtnDownLeft;
    TImageBtn *BtnDown;
    TImageBtn *BtnDownRight;
    TImageBtn *BtnZoomIn;
    TImageBtn *BtnZoomOut;
    TImageBtn *BtnFocusIn;
    TImageBtn *BtnFocusOut;
    TLabel *Label20;
    TTrackBar *PTZSpeed;
    TMemo *reMsg;
    TPanel *PnlBack;
    TPanel *PnlStreamInfo;
    TPanel *PnlCameraBack;
    TcxLabel *cxLabel1;
    TcxButton *BtnCameraConDisconn;
    TPanel *PnlCamera;
    TcxLabel *LblErrMsg;
    TAcesTechXPlayer2 *AcesTechXPlayer21;
    TIdHTTP *IdHTTP1;
    TcxTextEdit *EdStreamUrl;
    TcxLabel *cxLabel2;
    TcxLabel *cxLabel3;
    TcxTextEdit *EdStreamId;
    TcxTextEdit *EdStreamPswd;
    TcxLabel *cxLabel4;
    TcxTextEdit *EdHttpUrl;
    void __fastcall BtnWebCamControlMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
    void __fastcall BtnWebCamControlMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
    void __fastcall BtnCameraConDisconnClick(TObject *Sender);
    void __fastcall IdHTTP1Authorization(TObject *Sender, TIdAuthentication *Authentication, bool &Handled);
    void __fastcall reMsgDblClick(TObject *Sender);
private:	// User declarations

    bool   FStrmPlay;
    String FStrmUser;
    String FStrmPswd;
    String FStrmUrl;
    String FStrmHttp;
    String FStrmAddr;
    long   FStrmHandle;

public:
    void __fastcall OpenStream();
    void __fastcall CloseStream();

public:		// User declarations
    __fastcall TFrameTruenActiveX(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFrameTruenActiveX *FrameTruenActiveX;
//---------------------------------------------------------------------------
#endif
