Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2263 kivins 1
//---------------------------------------------------------------------------
2
 
3
#ifndef UdTransferH
4
#define UdTransferH
5
//---------------------------------------------------------------------------
6
#include <Classes.hpp>
7
#include <Controls.hpp>
8
#include <StdCtrls.hpp>
9
#include <Forms.hpp>
10
#include <Buttons.hpp>
11
#include <ComCtrls.hpp>
12
#include <Registry.hpp>
13
#include "AdvDirectoryEdit.hpp"
14
#include "AdvEdBtn.hpp"
15
#include "AdvEdit.hpp"
16
#include "UdTransferManager.h"
17
#include "AdvPageControl.hpp"
18
//---------------------------------------------------------------------------
19
 
20
class TUdTransferForm : public TForm
21
{
22
__published:	// IDE-managed Components
23
    TBitBtn *btnOk;
24
    TBitBtn *btnCancel;
25
    TBitBtn *btnDefault;
26
    TAdvPageControl *PageControl;
27
    TAdvTabSheet *tabTask;
28
    TAdvTabSheet *tabSettings;
29
    TLabel *Label1;
30
    TLabel *Label6;
31
    TGroupBox *gbRampTest;
32
    TLabel *Label5;
33
    TLabel *lblRatioDescription;
34
    TLabel *lblGradient;
35
    TGroupBox *gbRampStart;
36
    TRadioButton *rbStartNow;
37
    TRadioButton *rbSchedule;
38
    TDateTimePicker *dtScheduleTime;
39
    TDateTimePicker *dtScheduleDate;
40
    TComboBox *coRampTestType;
41
    TEdit *edGradient;
42
    TAdvDirectoryEdit *edSourcePath;
43
    TAdvDirectoryEdit *edDestination;
44
    TGroupBox *gbParams;
45
    TLabel *Label2;
46
    TLabel *Label3;
47
    TLabel *Label4;
48
    TEdit *edBatchSize;
49
    TCheckBox *cbRecurring;
50
    TComboBox *coDurationType;
51
    TEdit *edUploadDuration;
52
    TEdit *edUploadFrequency;
53
    TComboBox *coFrequencyType;
54
    TGroupBox *GroupBox1;
55
    TGroupBox *GroupBox2;
56
    TComboBox *coMaxDevices;
57
    TEdit *edStartingDeviceId;
58
    TEdit *edDeviceType;
59
    TEdit *edDeviceTimeout;
60
    TLabel *Label7;
61
    TLabel *Label8;
62
    TLabel *Label9;
63
    TLabel *Label10;
64
    TCheckBox *cbRename;
65
    TCheckBox *cbIgnoreSent;
66
    void __fastcall coRampTestTypeChange(TObject *Sender);
67
    void __fastcall btnOkClick(TObject *Sender);
68
    void __fastcall rbStartNowClick(TObject *Sender);
69
    void __fastcall rbScheduleClick(TObject *Sender);
70
    void __fastcall btnDefaultClick(TObject *Sender);
71
    void __fastcall edSourcePathChange(TObject *Sender);
72
    void __fastcall cbIgnoreSentClick(TObject *Sender);
73
private:	// User declarations
74
    void __fastcall InitialiseValuesFromRegistry();
75
    void __fastcall InitialiseValuesFromTask( const UdTransferTask & task );
76
    void __fastcall SetDefaultBatchSize();
77
    bool __fastcall ValidateInputs();
78
    bool __fastcall ValidateEditControl( TCustomEdit * ctrl, const AnsiString & name,
79
                                         const Variant & dataType );
80
 
81
    TRegistry *         m_Registry;
82
    UdTransferManager * m_manager;
83
 
84
public:		// User declarations
85
    __fastcall TUdTransferForm(TComponent* Owner);
86
	__fastcall virtual ~TUdTransferForm();
87
 
88
    int __fastcall ShowForm( UdTransferManager * manager );
89
};
90
//---------------------------------------------------------------------------
91
extern PACKAGE TUdTransferForm *UdTransferForm;
92
//---------------------------------------------------------------------------
93
#endif