Cleanup.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //----------------------------------------------------------------------------
  2. #ifndef CleanupH
  3. #define CleanupH
  4. //----------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.ComCtrls.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. //----------------------------------------------------------------------------
  10. #include <Configuration.h>
  11. #include <SessionData.h>
  12. #include <WinInterface.h>
  13. //---------------------------------------------------------------------
  14. enum TWinSCPData {wdConfiguration = 1, wdStoredSessions, wdHostKeys,
  15. wdConfigurationIniFile, wdRandomSeedFile, wdTemporaryFolders };
  16. //---------------------------------------------------------------------
  17. class TCleanupDialog : public TForm
  18. {
  19. __published:
  20. TButton *OKButton;
  21. TButton *CancelButton;
  22. TListView *DataListView;
  23. TLabel *Label1;
  24. TButton *CheckAllButton;
  25. TButton *HelpButton;
  26. void __fastcall DataListViewMouseDown(TObject *Sender,
  27. TMouseButton Button, TShiftState Shift, int X, int Y);
  28. void __fastcall DataListViewKeyUp(TObject *Sender, WORD &Key,
  29. TShiftState Shift);
  30. void __fastcall FormShow(TObject *Sender);
  31. void __fastcall CheckAllButtonClick(TObject *Sender);
  32. void __fastcall DataListViewInfoTip(TObject *Sender,
  33. TListItem *Item, UnicodeString &InfoTip);
  34. void __fastcall HelpButtonClick(TObject *Sender);
  35. private:
  36. TStoredSessionList *FSessionList;
  37. TConfiguration * FConfiguration;
  38. void __fastcall InitControls();
  39. void __fastcall UpdateControls();
  40. bool __fastcall GetCleanupData(TWinSCPData Data);
  41. public:
  42. virtual __fastcall TCleanupDialog(TComponent* AOwner);
  43. __property TStoredSessionList *SessionList = { read=FSessionList, write=FSessionList };
  44. __property TConfiguration * Configuration = { read=FConfiguration, write=FConfiguration };
  45. __property Boolean CleanupData[TWinSCPData Data] = { read=GetCleanupData };
  46. };
  47. //----------------------------------------------------------------------------
  48. #endif