1 #include "filezilla.h"
2 
CDirectoryListingNotification(CServerPath const & path,bool const primary,bool const failed)3 CDirectoryListingNotification::CDirectoryListingNotification(CServerPath const& path, bool const primary, bool const failed)
4 	: primary_(primary), m_failed(failed), m_path(path)
5 {
6 }
7 
GetRequestID() const8 RequestId CFileExistsNotification::GetRequestID() const
9 {
10 	return reqId_fileexists;
11 }
12 
CInteractiveLoginNotification(type t,std::wstring const & challenge,bool repeated)13 CInteractiveLoginNotification::CInteractiveLoginNotification(type t, std::wstring const& challenge, bool repeated)
14 	: m_challenge(challenge)
15 	, m_type(t)
16 	, m_repeated(repeated)
17 {
18 }
19 
GetRequestID() const20 RequestId CInteractiveLoginNotification::GetRequestID() const
21 {
22 	return reqId_interactiveLogin;
23 }
24 
CTransferStatusNotification(CTransferStatus const & status)25 CTransferStatusNotification::CTransferStatusNotification(CTransferStatus const& status)
26 	: status_(status)
27 {
28 }
29 
GetStatus() const30 CTransferStatus const& CTransferStatusNotification::GetStatus() const
31 {
32 	return status_;
33 }
34 
CHostKeyNotification(std::wstring const & host,int port,CSftpEncryptionDetails const & details,bool changed)35 CHostKeyNotification::CHostKeyNotification(std::wstring const& host, int port, CSftpEncryptionDetails const& details, bool changed)
36 	: CSftpEncryptionDetails(details)
37 	, m_host(host)
38 	, m_port(port)
39 	, m_changed(changed)
40 {
41 }
42 
GetRequestID() const43 RequestId CHostKeyNotification::GetRequestID() const
44 {
45 	return m_changed ? reqId_hostkeyChanged : reqId_hostkey;
46 }
47 
GetHost() const48 std::wstring CHostKeyNotification::GetHost() const
49 {
50 	return m_host;
51 }
52 
GetPort() const53 int CHostKeyNotification::GetPort() const
54 {
55 	return m_port;
56 }
57 
CCertificateNotification(fz::tls_session_info && info)58 CCertificateNotification::CCertificateNotification(fz::tls_session_info&& info)
59 	: info_(info)
60 {
61 }
62 
CInsecureConnectionNotification(CServer const & server)63 CInsecureConnectionNotification::CInsecureConnectionNotification(CServer const& server)
64 	: server_(server)
65 {
66 }
67