Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

//---------------------------------------------------------------------------

#ifndef UdTransferH
#define UdTransferH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <Registry.hpp>
#include "AdvDirectoryEdit.hpp"
#include "AdvEdBtn.hpp"
#include "AdvEdit.hpp"
#include "UdTransferManager.h"
#include "AdvPageControl.hpp"
//---------------------------------------------------------------------------

class TUdTransferForm : public TForm
{
__published:    // IDE-managed Components
    TBitBtn *btnOk;
    TBitBtn *btnCancel;
    TBitBtn *btnDefault;
    TAdvPageControl *PageControl;
    TAdvTabSheet *tabTask;
    TAdvTabSheet *tabSettings;
    TLabel *Label1;
    TLabel *Label6;
    TGroupBox *gbRampTest;
    TLabel *Label5;
    TLabel *lblRatioDescription;
    TLabel *lblGradient;
    TGroupBox *gbRampStart;
    TRadioButton *rbStartNow;
    TRadioButton *rbSchedule;
    TDateTimePicker *dtScheduleTime;
    TDateTimePicker *dtScheduleDate;
    TComboBox *coRampTestType;
    TEdit *edGradient;
    TAdvDirectoryEdit *edSourcePath;
    TAdvDirectoryEdit *edDestination;
    TGroupBox *gbParams;
    TLabel *Label2;
    TLabel *Label3;
    TLabel *Label4;
    TEdit *edBatchSize;
    TCheckBox *cbRecurring;
    TComboBox *coDurationType;
    TEdit *edUploadDuration;
    TEdit *edUploadFrequency;
    TComboBox *coFrequencyType;
    TGroupBox *GroupBox1;
    TGroupBox *GroupBox2;
    TComboBox *coMaxDevices;
    TEdit *edStartingDeviceId;
    TEdit *edDeviceType;
    TEdit *edDeviceTimeout;
    TLabel *Label7;
    TLabel *Label8;
    TLabel *Label9;
    TLabel *Label10;
    TCheckBox *cbRename;
    TCheckBox *cbIgnoreSent;
    void __fastcall coRampTestTypeChange(TObject *Sender);
    void __fastcall btnOkClick(TObject *Sender);
    void __fastcall rbStartNowClick(TObject *Sender);
    void __fastcall rbScheduleClick(TObject *Sender);
    void __fastcall btnDefaultClick(TObject *Sender);
    void __fastcall edSourcePathChange(TObject *Sender);
    void __fastcall cbIgnoreSentClick(TObject *Sender);
private:        // User declarations
    void __fastcall InitialiseValuesFromRegistry();
    void __fastcall InitialiseValuesFromTask( const UdTransferTask & task );
    void __fastcall SetDefaultBatchSize();
    bool __fastcall ValidateInputs();
    bool __fastcall ValidateEditControl( TCustomEdit * ctrl, const AnsiString & name,
                                         const Variant & dataType );

    TRegistry *         m_Registry;
    UdTransferManager * m_manager;

public:         // User declarations
    __fastcall TUdTransferForm(TComponent* Owner);
        __fastcall virtual ~TUdTransferForm();

    int __fastcall ShowForm( UdTransferManager * manager );
};
//---------------------------------------------------------------------------
extern PACKAGE TUdTransferForm *UdTransferForm;
//---------------------------------------------------------------------------
#endif