Files
AC_Pro/VerifyCodeFormUnit.h
2026-06-13 00:05:19 +08:00

49 lines
1.6 KiB
C++

//---------------------------------------------------------------------------
#ifndef VerifyCodeFormUnitH
#define VerifyCodeFormUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "GeneralDialogPanel.h"
#include <Vcl.ExtCtrls.hpp>
#include "LineEdit.h"
#include "TextButton.h"
#include <Data.Bind.Components.hpp>
#include <Data.Bind.ObjectScope.hpp>
#include <REST.Client.hpp>
#include <REST.Types.hpp>
//---------------------------------------------------------------------------
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