FTP.h
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:3k
源码类别:

Delphi/CppBuilder

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef FTPH
  3. #define FTPH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <NMFtp.hpp>
  11. #include <Psock.hpp>
  12. //---------------------------------------------------------------------------
  13. class TFormMain : public TForm
  14. {
  15. __published: // IDE-managed Components
  16.         TPageControl *PageControl1;
  17.         TTabSheet *TabSheet1;
  18.         TLabel *Label1;
  19.         TLabel *Label2;
  20.         TLabel *Label3;
  21.         TLabel *Label4;
  22.         TLabel *Label16;
  23.         TLabel *Label17;
  24.         TEdit *HostTxt;
  25.         TEdit *PortTxt;
  26.         TButton *Button1;
  27.         TButton *Button2;
  28.         TEdit *UserTxt;
  29.         TEdit *PassTxt;
  30.         TCheckBox *CheckBox1;
  31.         TEdit *Edit6;
  32.         TEdit *Edit7;
  33.         TTabSheet *TabSheet2;
  34.         TMemo *Memo1;
  35.         TButton *Button3;
  36.         TButton *Button4;
  37.         TTabSheet *TabSheet3;
  38.         TLabel *Label6;
  39.         TEdit *DirTxt;
  40.         TButton *Button5;
  41.         TStatusBar *StatusBar1;
  42.         TNMFTP *NMFTP1;
  43.         TButton *Button6;
  44.         TButton *Button7;
  45.         TEdit *LocalTxt;
  46.         TEdit *RemoteTxt;
  47.         TLabel *Label7;
  48.         TLabel *Label8;
  49.         void __fastcall Button1Click(TObject *Sender);
  50.         void __fastcall Button2Click(TObject *Sender);
  51.         void __fastcall Button3Click(TObject *Sender);
  52.         void __fastcall Button4Click(TObject *Sender);
  53.         void __fastcall Button5Click(TObject *Sender);
  54.         void __fastcall Button6Click(TObject *Sender);
  55.         void __fastcall Button7Click(TObject *Sender);
  56.         void __fastcall Button8Click(TObject *Sender);
  57.         void __fastcall Button17Click(TObject *Sender);
  58.         void __fastcall Button9Click(TObject *Sender);
  59.         void __fastcall NMFTP1Connect(TObject *Sender);
  60.         void __fastcall NMFTP1ConnectionFailed(TObject *Sender);
  61.         void __fastcall NMFTP1Disconnect(TObject *Sender);
  62.         void __fastcall NMFTP1Error(TComponent *Sender, WORD Errno,
  63.       AnsiString Errmsg);
  64.         void __fastcall NMFTP1Failure(bool &handled, TCmdType Trans_Type);
  65.         void __fastcall NMFTP1HostResolved(TComponent *Sender);
  66.         void __fastcall NMFTP1InvalidHost(bool &handled);
  67.         void __fastcall NMFTP1ListItem(AnsiString Listing);
  68.         void __fastcall NMFTP1PacketRecvd(TObject *Sender);
  69.         void __fastcall NMFTP1PacketSent(TObject *Sender);
  70.         void __fastcall NMFTP1Status(TComponent *Sender,
  71.       AnsiString Status);
  72.         void __fastcall NMFTP1Success(TCmdType Trans_Type);
  73.         void __fastcall NMFTP1TransactionStart(TObject *Sender);
  74.         void __fastcall NMFTP1TransactionStop(TObject *Sender);
  75.         void __fastcall NMFTP1UnSupportedFunction(TCmdType Trans_Type);
  76.         void __fastcall FormCreate(TObject *Sender);
  77. private: // User declarations
  78. public: // User declarations
  79.         __fastcall TFormMain(TComponent* Owner);
  80. };
  81. //---------------------------------------------------------------------------
  82. extern PACKAGE TFormMain *FormMain;
  83. //---------------------------------------------------------------------------
  84. #endif