mainform.h
来自「著名的SecureBlackBox控件完整源码」· C头文件 代码 · 共 74 行
H
74 行
//---------------------------------------------------------------------------
#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include "SBSSHCommon.hpp"
#include "SBSimpleSSH.hpp"
#include "SBSSHConstants.hpp"
#include "SBSSHKeyStorage.hpp"
#include "SBUtils.hpp"
#include "PromptForm.h"
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TLabel *Label5;
TGroupBox *GroupBox1;
TLabel *Label1;
TLabel *Label2;
TEdit *Edit1;
TEdit *Edit2;
TCheckBox *CheckBox1;
TCheckBox *CheckBox2;
TButton *Button1;
TGroupBox *GroupBox2;
TLabel *Label3;
TLabel *Label4;
TLabel *Label6;
TSpeedButton *SpeedButton1;
TEdit *Edit3;
TEdit *Edit4;
TEdit *Edit6;
TMemo *Memo1;
TMemo *Memo2;
TEdit *Edit5;
TButton *Button2;
TOpenDialog *OpenDialog1;
TTimer *Timer1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall Button2Click(TObject *Sender);
void __fastcall SpeedButton1Click(TObject *Sender);
void __fastcall Timer1Timer(TObject *Sender);
private: // User declarations
void __fastcall HandleClientCloseConnection(TObject* Sender);
void __fastcall HandleClientError(TObject* Sender, int Error);
void __fastcall HandleClientAuthenticationSuccess(TObject* Sender);
void __fastcall HandleClientAuthenticationFailed(TObject* Sender, int AuthType);
void __fastcall HandleKeyValidate(TObject* Sender, TElSSHKey* ServerKey, bool &Validate);
public: // User declarations
__fastcall TForm1(TComponent* Owner);
void __fastcall HandleClientAuthenticationKeyboard(TObject* Sender, TStringList* Prompts, TBits* Echo, TStringList* Responses);
};
//---------------------------------------------------------------------------
TElSimpleSSHClient* Client;
bool Connected = false;
TElSSHMemoryKeyStorage* KeyStorage;
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?