⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myftp.h

📁 C++Builder网络应用例程. C++Builder网络应用例程.
💻 H
字号:
///////////////////////////////////////
// FTP.h
// FTP Component
// Copyright (c) 1998 by Charlie Calvert
//
#ifndef MyFtpH
#define MyFtpH

class PACKAGE TMyFtp : public Classes::TComponent
{
  typedef Classes::TComponent* inherited;
private:
  int FContext;
  bool FConnected;
  void *FINet;
  void *FFtpHandle;
  Classes::TStringList* FCurFiles;
  System::AnsiString FServer;
  Classes::TNotifyEvent FOnNewDir;
  System::AnsiString FCurDir;
  System::AnsiString FUserID;
  System::AnsiString FPassword;
  System::AnsiString __fastcall GetCurrentDirectory(void);
  void __fastcall SetUpNewDir(void);
protected:
  __fastcall virtual ~TMyFtp(void);
public:
  __fastcall TMyFtp(Classes::TComponent* AOwner);
  void __fastcall Connect(void);
  Classes::TStringList* __fastcall FindFiles(void);
  bool __fastcall BackOneDir(void);
  bool __fastcall ChangeDir(System::AnsiString *S);
  bool __fastcall ChangeDirCustom(System::AnsiString *S);
  bool __fastcall CreateDirectory(AnsiString S);
  bool __fastcall RemoveDir(System::AnsiString S);
  bool __fastcall RemoveDirCustom(System::AnsiString S);
  bool __fastcall DeleteFile(System::AnsiString S);
  bool __fastcall DeleteFileCustom(System::AnsiString S);
  bool __fastcall GetFile(System::AnsiString FTPFile,  System::AnsiString NewFile);
  bool __fastcall SendFile1(System::AnsiString FTPFile,  System::AnsiString NewFile);
  bool __fastcall SendFile2(System::AnsiString FTPFile,  System::AnsiString NewFile);
  System::AnsiString *__fastcall CustomToFileName(System::AnsiString *S);
__published:
  __property Classes::TStringList* CurFiles = {read=FCurFiles, nodefault};
  __property System::AnsiString CurDir = {read=GetCurrentDirectory, nodefault};
  __property System::AnsiString UserID = {read=FUserID, write=FUserID, nodefault};
  __property System::AnsiString Password = {read=FPassword, write=FPassword, nodefault};
  __property System::AnsiString Server = {read=FServer, write=FServer, nodefault};
  __property Classes::TNotifyEvent OnNewDir = {read=FOnNewDir, write=FOnNewDir};
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -