//--------------------------------------------------------------------------- #include "stdafx.h" //--------------------------------------------------------------------------- #include "FileZillaIntern.h" #include "FileZillaIntf.h" //--------------------------------------------------------------------------- #pragma package(smart_init) //--------------------------------------------------------------------------- TFileZillaIntern::TFileZillaIntern(TFileZillaIntf * AOwner) : FOwner(AOwner) { // not being initialied by CApiLog m_nLogMessage = 0; } //--------------------------------------------------------------------------- BOOL TFileZillaIntern::PostMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) const { ASSERT(hWnd == NULL); ASSERT(Msg == 0); bool Result; unsigned int MessageID = FZ_MSG_ID(wParam); switch (MessageID) { case FZ_MSG_STATUS: case FZ_MSG_ASYNCREQUEST: case FZ_MSG_LISTDATA: case FZ_MSG_TRANSFERSTATUS: case FZ_MSG_REPLY: case FZ_MSG_CAPABILITIES: Result = FOwner->PostMessage(wParam, lParam); break; // ignored for performace case FZ_MSG_SOCKETSTATUS: Result = false; break; // ignore // not useful. although FTP allows switching between secure and unsecure // connection during session, filezilla does not support it, // so we are either secure or not for whole session case FZ_MSG_SECURESERVER: ASSERT(lParam == 0); Result = false; break; // should never get here, call compiled out in filezilla code case FZ_MSG_QUITCOMPLETE: default: ASSERT(FALSE); Result = false; break; } return (Result ? TRUE : FALSE); } //---------------------------------------------------------------------------