FTP.h
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:3k
- //---------------------------------------------------------------------------
- #ifndef FTPH
- #define FTPH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ComCtrls.hpp>
- #include <NMFtp.hpp>
- #include <Psock.hpp>
- //---------------------------------------------------------------------------
- class TFormMain : public TForm
- {
- __published: // IDE-managed Components
- TPageControl *PageControl1;
- TTabSheet *TabSheet1;
- TLabel *Label1;
- TLabel *Label2;
- TLabel *Label3;
- TLabel *Label4;
- TLabel *Label16;
- TLabel *Label17;
- TEdit *HostTxt;
- TEdit *PortTxt;
- TButton *Button1;
- TButton *Button2;
- TEdit *UserTxt;
- TEdit *PassTxt;
- TCheckBox *CheckBox1;
- TEdit *Edit6;
- TEdit *Edit7;
- TTabSheet *TabSheet2;
- TMemo *Memo1;
- TButton *Button3;
- TButton *Button4;
- TTabSheet *TabSheet3;
- TLabel *Label6;
- TEdit *DirTxt;
- TButton *Button5;
- TStatusBar *StatusBar1;
- TNMFTP *NMFTP1;
- TButton *Button6;
- TButton *Button7;
- TEdit *LocalTxt;
- TEdit *RemoteTxt;
- TLabel *Label7;
- TLabel *Label8;
- void __fastcall Button1Click(TObject *Sender);
- void __fastcall Button2Click(TObject *Sender);
- void __fastcall Button3Click(TObject *Sender);
- void __fastcall Button4Click(TObject *Sender);
- void __fastcall Button5Click(TObject *Sender);
- void __fastcall Button6Click(TObject *Sender);
- void __fastcall Button7Click(TObject *Sender);
- void __fastcall Button8Click(TObject *Sender);
- void __fastcall Button17Click(TObject *Sender);
- void __fastcall Button9Click(TObject *Sender);
- void __fastcall NMFTP1Connect(TObject *Sender);
- void __fastcall NMFTP1ConnectionFailed(TObject *Sender);
- void __fastcall NMFTP1Disconnect(TObject *Sender);
- void __fastcall NMFTP1Error(TComponent *Sender, WORD Errno,
- AnsiString Errmsg);
- void __fastcall NMFTP1Failure(bool &handled, TCmdType Trans_Type);
- void __fastcall NMFTP1HostResolved(TComponent *Sender);
- void __fastcall NMFTP1InvalidHost(bool &handled);
- void __fastcall NMFTP1ListItem(AnsiString Listing);
- void __fastcall NMFTP1PacketRecvd(TObject *Sender);
- void __fastcall NMFTP1PacketSent(TObject *Sender);
- void __fastcall NMFTP1Status(TComponent *Sender,
- AnsiString Status);
- void __fastcall NMFTP1Success(TCmdType Trans_Type);
- void __fastcall NMFTP1TransactionStart(TObject *Sender);
- void __fastcall NMFTP1TransactionStop(TObject *Sender);
- void __fastcall NMFTP1UnSupportedFunction(TCmdType Trans_Type);
- void __fastcall FormCreate(TObject *Sender);
- private: // User declarations
- public: // User declarations
- __fastcall TFormMain(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TFormMain *FormMain;
- //---------------------------------------------------------------------------
- #endif