| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //---------------------------------------------------------------------------
- #ifndef SynchronizeProgressH
- #define SynchronizeProgressH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include "PathLabel.hpp"
- #include <ExtCtrls.hpp>
- //---------------------------------------------------------------------------
- class TSynchronizeProgressForm : public TForm
- {
- __published:
- TLabel *Label1;
- TLabel *Label2;
- TPathLabel *RemoteDirectoryLabel;
- TPathLabel *LocalDirectoryLabel;
- TLabel *StartTimeLabel;
- TLabel *Label4;
- TLabel *Label3;
- TLabel *TimeElapsedLabel;
- TButton *CancelButton;
- TTimer *UpdateTimer;
- void __fastcall CancelButtonClick(TObject *Sender);
- void __fastcall UpdateTimerTimer(TObject *Sender);
- public:
- __fastcall TSynchronizeProgressForm(TComponent* Owner);
- virtual __fastcall ~TSynchronizeProgressForm();
- void __fastcall Start();
- void __fastcall Stop();
- void __fastcall SetData(const AnsiString LocalDirectory,
- const AnsiString RemoteDirectory, bool & Continue);
- private:
- TDateTime FStartTime;
- TDateTime FElapsed;
- bool FStarted;
- bool FCanceled;
- void * FShowAsModalStorage;
- void __fastcall UpdateControls();
- };
- //---------------------------------------------------------------------------
- #endif
|