Interface.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. enum TPasswordKind { pkPassword, pkPassphrase, pkServerPrompt };
  12. int __fastcall GetSessionPassword(AnsiString Prompt, TPasswordKind Kind,
  13. AnsiString & Password);
  14. AnsiString __fastcall GetRegistryKey();
  15. void __fastcall Busy(bool Start);
  16. AnsiString __fastcall SshVersionString();
  17. const unsigned int qaYes = 0x00000001;
  18. const unsigned int qaNo = 0x00000002;
  19. const unsigned int qaOK = 0x00000004;
  20. const unsigned int qaCancel = 0x00000008;
  21. const unsigned int qaAbort = 0x00000010;
  22. const unsigned int qaRetry = 0x00000020;
  23. const unsigned int qaIgnore = 0x00000040;
  24. const unsigned int qaAll = 0x00000080;
  25. const unsigned int qaNoToAll = 0x00000100;
  26. const unsigned int qaYesToAll = 0x00000200;
  27. const unsigned int qaHelp = 0x00000400;
  28. const unsigned int qaSkip = 0x00000800;
  29. const unsigned int qaPrev = 0x00001000;
  30. const unsigned int qaNext = 0x00002000;
  31. // reserved for "More" button in VCL interface
  32. const unsigned int qaAppend = 0x00004000;
  33. const unsigned int qaCustom = 0x00008000;
  34. const unsigned int qaNeverAskAgain = 0x00010000;
  35. const int qpFatalAbort = 0x01;
  36. const int qpNeverAskAgainCheck = 0x02;
  37. const int qpAllowContinueOnError = 0x04;
  38. enum TQueryType { qtConfirmation, qtWarning, qtError, qtInformation };
  39. //---------------------------------------------------------------------------
  40. #endif