//--------------------------------------------------------------------------- #ifndef VerifyCodeFormUnitH #define VerifyCodeFormUnitH //--------------------------------------------------------------------------- #include #include #include #include #include "GeneralDialogPanel.h" #include #include "LineEdit.h" #include "TextButton.h" #include #include #include #include //--------------------------------------------------------------------------- class TVerifyCodeForm : public TForm { __published: // IDE-managed Components TGeneralDialogPanel *GeneralDialogPanel1; TImage *m_imgCode; TLineEdit *m_editCode; TTextButton *m_btnOk; TRESTClient *RESTClient; TRESTRequest *RESTRequest; TRESTResponse *RESTResponse; void __fastcall FormCreate(TObject *Sender); void __fastcall CodeImgClick(TObject *Sender); void __fastcall OkClick(TObject *Sender); void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift); private: // User declarations String m_sKey; String m_sCode; void __fastcall RefreshCode(); public: // User declarations String __fastcall GetCode(){return m_sCode;}; String __fastcall GetKey(){return m_sKey;}; __fastcall TVerifyCodeForm(TComponent* Owner, String baseUrl); }; //--------------------------------------------------------------------------- extern PACKAGE TVerifyCodeForm *VerifyCodeForm; //--------------------------------------------------------------------------- #endif