Interface.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //---------------------------------------------------------------------------
  2. #ifndef InterfaceH
  3. #define InterfaceH
  4. //---------------------------------------------------------------------------
  5. #include "Configuration.h"
  6. #include "SessionData.h"
  7. //---------------------------------------------------------------------------
  8. TConfiguration * __fastcall CreateConfiguration();
  9. void __fastcall ShowExtendedException(Exception * E, TObject * Sender = NULL);
  10. void __fastcall HandleExtendedException(Exception * E, TObject * Sender = NULL);
  11. int __fastcall GetSessionPassword(AnsiString Prompt, AnsiString & Password);
  12. AnsiString __fastcall GetRegistryKey();
  13. void __fastcall Busy(bool Start);
  14. AnsiString __fastcall SshVersionString();
  15. const int qaYes = 0x0001;
  16. const int qaNo = 0x0002;
  17. const int qaOK = 0x0004;
  18. const int qaCancel = 0x0008;
  19. const int qaAbort = 0x0010;
  20. const int qaRetry = 0x0020;
  21. const int qaIgnore = 0x0040;
  22. const int qaAll = 0x0080;
  23. const int qaNoToAll = 0x0100;
  24. const int qaYesToAll = 0x0200;
  25. const int qaHelp = 0x0400;
  26. const int qaSkip = 0x0800;
  27. const int qaPrev = 0x1000;
  28. const int qaNext = 0x2000;
  29. const int qaCustom = 0x4000; // reserved for "More" button in VCL interface
  30. const int qaNeverAskAgain = 0x8000;
  31. const int qpFatalAbort = 0x01;
  32. const int qpNeverAskAgainCheck = 0x02;
  33. const int qpAllowContinueOnError = 0x04;
  34. enum TQueryType { qtConfirmation, qtWarning, qtError, qtInformation };
  35. //---------------------------------------------------------------------------
  36. #endif