| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- //---------------------------------------------------------------------------
- #ifndef InterfaceH
- #define InterfaceH
- //---------------------------------------------------------------------------
- #include "Configuration.h"
- #include "SessionData.h"
- #define HELP_NONE ""
- //---------------------------------------------------------------------------
- TConfiguration * __fastcall CreateConfiguration();
- void __fastcall ShowExtendedException(Exception * E);
- UnicodeString __fastcall GetRegistryKey();
- void __fastcall Busy(bool Start);
- UnicodeString __fastcall AppNameString();
- UnicodeString __fastcall SshVersionString();
- void __fastcall CopyToClipboard(UnicodeString Text);
- int __fastcall StartThread(void * SecurityAttributes, unsigned StackSize,
- TThreadFunc ThreadFunc, void * Parameter, unsigned CreationFlags,
- TThreadID & ThreadId);
- const unsigned int qaYes = 0x00000001;
- const unsigned int qaNo = 0x00000002;
- const unsigned int qaOK = 0x00000004;
- const unsigned int qaCancel = 0x00000008;
- const unsigned int qaAbort = 0x00000010;
- const unsigned int qaRetry = 0x00000020;
- const unsigned int qaIgnore = 0x00000040;
- const unsigned int qaAll = 0x00000080;
- const unsigned int qaNoToAll = 0x00000100;
- const unsigned int qaYesToAll = 0x00000200;
- const unsigned int qaHelp = 0x00000400;
- const unsigned int qaSkip = 0x00000800;
- const unsigned int qaNeverAskAgain = 0x00010000;
- const int qpFatalAbort = 0x01;
- const int qpNeverAskAgainCheck = 0x02;
- const int qpAllowContinueOnError = 0x04;
- const int qpIgnoreAbort = 0x08;
- struct TQueryButtonAlias
- {
- TQueryButtonAlias();
- unsigned int Button;
- UnicodeString Alias;
- TNotifyEvent OnClick;
- int GroupWith;
- TShiftState GrouppedShiftState;
- };
- typedef void __fastcall (__closure *TQueryParamsTimerEvent)(unsigned int & Result);
- struct TQueryParams
- {
- TQueryParams(unsigned int AParams = 0, UnicodeString AHelpKeyword = HELP_NONE);
- const TQueryButtonAlias * Aliases;
- unsigned int AliasesCount;
- unsigned int Params;
- unsigned int Timer;
- TQueryParamsTimerEvent TimerEvent;
- UnicodeString TimerMessage;
- unsigned int TimerAnswers;
- unsigned int Timeout;
- unsigned int TimeoutAnswer;
- unsigned int NoBatchAnswers;
- UnicodeString HelpKeyword;
- };
- enum TQueryType { qtConfirmation, qtWarning, qtError, qtInformation };
- enum TPromptKind
- {
- pkPrompt,
- pkFileName,
- pkUserName,
- pkPassphrase,
- pkTIS,
- pkCryptoCard,
- pkKeybInteractive,
- pkPassword,
- pkNewPassword
- };
- enum TPromptUserParam { pupEcho = 0x01, pupRemember = 0x02 };
- bool __fastcall IsAuthenticationPrompt(TPromptKind Kind);
- //---------------------------------------------------------------------------
- typedef void __fastcall (__closure *TFileFoundEvent)
- (TTerminal * Terminal, const UnicodeString FileName, const TRemoteFile * File,
- bool & Cancel);
- typedef void __fastcall (__closure *TFindingFileEvent)
- (TTerminal * Terminal, const UnicodeString Directory, bool & Cancel);
- //---------------------------------------------------------------------------
- #endif
|