Interface.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //---------------------------------------------------------------------------
  2. #ifndef InterfaceH
  3. #define InterfaceH
  4. //---------------------------------------------------------------------------
  5. #include "Configuration.h"
  6. #include "SessionData.h"
  7. #define HELP_NONE ""
  8. //---------------------------------------------------------------------------
  9. TConfiguration * __fastcall CreateConfiguration();
  10. void __fastcall ShowExtendedException(Exception * E);
  11. AnsiString __fastcall GetRegistryKey();
  12. void __fastcall Busy(bool Start);
  13. AnsiString __fastcall SshVersionString();
  14. const unsigned int qaYes = 0x00000001;
  15. const unsigned int qaNo = 0x00000002;
  16. const unsigned int qaOK = 0x00000004;
  17. const unsigned int qaCancel = 0x00000008;
  18. const unsigned int qaAbort = 0x00000010;
  19. const unsigned int qaRetry = 0x00000020;
  20. const unsigned int qaIgnore = 0x00000040;
  21. const unsigned int qaAll = 0x00000080;
  22. const unsigned int qaNoToAll = 0x00000100;
  23. const unsigned int qaYesToAll = 0x00000200;
  24. const unsigned int qaHelp = 0x00000400;
  25. const unsigned int qaSkip = 0x00000800;
  26. const unsigned int qaNeverAskAgain = 0x00010000;
  27. const int qpFatalAbort = 0x01;
  28. const int qpNeverAskAgainCheck = 0x02;
  29. const int qpAllowContinueOnError = 0x04;
  30. struct TQueryButtonAlias
  31. {
  32. unsigned int Button;
  33. AnsiString Alias;
  34. };
  35. typedef void __fastcall (__closure *TQueryParamsTimerEvent)(unsigned int & Result);
  36. struct TQueryParams
  37. {
  38. TQueryParams(unsigned int AParams = 0, AnsiString AHelpKeyword = HELP_NONE);
  39. const TQueryButtonAlias * Aliases;
  40. unsigned int AliasesCount;
  41. unsigned int Params;
  42. unsigned int Timer;
  43. TQueryParamsTimerEvent TimerEvent;
  44. AnsiString TimerMessage;
  45. unsigned int TimerAnswers;
  46. AnsiString HelpKeyword;
  47. };
  48. enum TQueryType { qtConfirmation, qtWarning, qtError, qtInformation };
  49. enum TPromptKind { pkPassword, pkPassphrase, pkServerPrompt };
  50. //---------------------------------------------------------------------------
  51. #endif