RemoteTransfer.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //---------------------------------------------------------------------------
  2. #ifndef RemoteTransferH
  3. #define RemoteTransferH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "HistoryComboBox.hpp"
  10. //---------------------------------------------------------------------------
  11. class TRemoteTransferDialog : public TForm
  12. {
  13. __published:
  14. TGroupBox *SymlinkGroup;
  15. TLabel *SessionLabel;
  16. TLabel *Label2;
  17. TComboBox *SessionCombo;
  18. THistoryComboBox *DirectoryEdit;
  19. TButton *OkButton;
  20. TButton *CancelButton;
  21. TButton *HelpButton;
  22. TCheckBox *NotDirectCopyCheck;
  23. void __fastcall ControlChange(TObject *Sender);
  24. void __fastcall FormShow(TObject *Sender);
  25. void __fastcall HelpButtonClick(TObject *Sender);
  26. void __fastcall SessionComboChange(TObject *Sender);
  27. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  28. void __fastcall NotDirectCopyCheckClick(TObject *Sender);
  29. public:
  30. __fastcall TRemoteTransferDialog(TComponent * Owner);
  31. void __fastcall Init(TStrings * Sessions, TStrings * Directories,
  32. TDirectRemoteCopy AllowDirectCopy);
  33. bool __fastcall Execute(void *& Session, UnicodeString & Target,
  34. UnicodeString & FileMask, bool & DirectCopy);
  35. protected:
  36. void __fastcall UpdateControls();
  37. private:
  38. TStrings * FDirectories;
  39. int FCurrentSession;
  40. bool FDirectCopy;
  41. TDirectRemoteCopy FAllowDirectCopy;
  42. };
  43. //---------------------------------------------------------------------------
  44. extern PACKAGE TRemoteTransferDialog * RemoteTransferDialog;
  45. //---------------------------------------------------------------------------
  46. #endif