FileZillaIntern.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //---------------------------------------------------------------------------
  2. #include "stdafx.h"
  3. //---------------------------------------------------------------------------
  4. #include "FileZillaIntern.h"
  5. #include "FileZillaIntf.h"
  6. //---------------------------------------------------------------------------
  7. #pragma package(smart_init)
  8. //---------------------------------------------------------------------------
  9. TFileZillaIntern::TFileZillaIntern(TFileZillaIntf * AOwner) :
  10. FOwner(AOwner)
  11. {
  12. // not being initialied by CApiLog
  13. m_nLogMessage = 0;
  14. }
  15. //---------------------------------------------------------------------------
  16. BOOL TFileZillaIntern::PostMessage(HWND hWnd, UINT Msg, WPARAM wParam,
  17. LPARAM lParam) const
  18. {
  19. ASSERT(hWnd == NULL);
  20. ASSERT(Msg == 0);
  21. bool Result;
  22. unsigned int MessageID = FZ_MSG_ID(wParam);
  23. switch (MessageID)
  24. {
  25. case FZ_MSG_STATUS:
  26. case FZ_MSG_ASYNCREQUEST:
  27. case FZ_MSG_LISTDATA:
  28. case FZ_MSG_TRANSFERSTATUS:
  29. case FZ_MSG_REPLY:
  30. Result = FOwner->PostMessage(wParam, lParam);
  31. break;
  32. // ignored for performace
  33. case FZ_MSG_SOCKETSTATUS:
  34. Result = false;
  35. break;
  36. // should never get here, no GSS/SSL support, only on close the secure-off is reported
  37. case FZ_MSG_SECURESERVER:
  38. ASSERT(FZ_MSG_PARAM(wParam) == FALSE);
  39. ASSERT(lParam == 0);
  40. Result = false;
  41. break;
  42. // should never get here, call compiled out in filezilla code
  43. case FZ_MSG_QUITCOMPLETE:
  44. default:
  45. ASSERT(FALSE);
  46. Result = false;
  47. break;
  48. }
  49. return (Result ? TRUE : FALSE);
  50. }
  51. //---------------------------------------------------------------------------