123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //---------------------------------------------------------------------------
- #ifndef RemoteTransferH
- #define RemoteTransferH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include "HistoryComboBox.hpp"
- #include <Vcl.ExtCtrls.hpp>
- #include <Vcl.Imaging.pngimage.hpp>
- //---------------------------------------------------------------------------
- class TRemoteTransferDialog : public TForm
- {
- __published:
- TGroupBox *Group;
- TLabel *SessionLabel;
- TLabel *Label3;
- TComboBox *SessionCombo;
- THistoryComboBox *DirectoryEdit;
- TButton *OkButton;
- TButton *CancelButton;
- TButton *HelpButton;
- TCheckBox *NotDirectCopyCheck;
- TImage *Image;
- void __fastcall ControlChange(TObject *Sender);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall HelpButtonClick(TObject *Sender);
- void __fastcall SessionComboChange(TObject *Sender);
- void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
- void __fastcall NotDirectCopyCheckClick(TObject *Sender);
- public:
- __fastcall TRemoteTransferDialog(TComponent * Owner);
- void __fastcall Init(bool Multi, TStrings * Sessions, TStrings * Directories,
- TDirectRemoteCopy AllowDirectCopy, void * CurrentSession);
- bool __fastcall Execute(void *& Session, UnicodeString & Target,
- UnicodeString & FileMask, bool & DirectCopy);
- protected:
- void __fastcall UpdateControls();
- UnicodeString __fastcall GetFileMask();
- bool __fastcall IsCurrentSessionSelected();
- void __fastcall UpdateNotDirectCopyCheck();
- private:
- TStrings * FDirectories;
- void * FCurrentSession;
- bool FDirectCopy;
- bool FMulti;
- TDirectRemoteCopy FAllowDirectCopy;
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TRemoteTransferDialog * RemoteTransferDialog;
- //---------------------------------------------------------------------------
- #endif
|