RemoteTransfer.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #include <Vcl.ExtCtrls.hpp>
  11. #include <Vcl.Imaging.pngimage.hpp>
  12. //---------------------------------------------------------------------------
  13. class TRemoteTransferDialog : public TForm
  14. {
  15. __published:
  16. TGroupBox *SymlinkGroup;
  17. TLabel *SessionLabel;
  18. TLabel *Label2;
  19. TComboBox *SessionCombo;
  20. THistoryComboBox *DirectoryEdit;
  21. TButton *OkButton;
  22. TButton *CancelButton;
  23. TButton *HelpButton;
  24. TCheckBox *NotDirectCopyCheck;
  25. TImage *Image;
  26. void __fastcall ControlChange(TObject *Sender);
  27. void __fastcall FormShow(TObject *Sender);
  28. void __fastcall HelpButtonClick(TObject *Sender);
  29. void __fastcall SessionComboChange(TObject *Sender);
  30. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  31. void __fastcall NotDirectCopyCheckClick(TObject *Sender);
  32. public:
  33. __fastcall TRemoteTransferDialog(TComponent * Owner);
  34. void __fastcall Init(TStrings * Sessions, TStrings * Directories,
  35. TDirectRemoteCopy AllowDirectCopy);
  36. bool __fastcall Execute(void *& Session, UnicodeString & Target,
  37. UnicodeString & FileMask, bool & DirectCopy);
  38. protected:
  39. void __fastcall UpdateControls();
  40. private:
  41. TStrings * FDirectories;
  42. int FCurrentSession;
  43. bool FDirectCopy;
  44. TDirectRemoteCopy FAllowDirectCopy;
  45. };
  46. //---------------------------------------------------------------------------
  47. extern PACKAGE TRemoteTransferDialog * RemoteTransferDialog;
  48. //---------------------------------------------------------------------------
  49. #endif