FileZillaIntern.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //---------------------------------------------------------------------------
  2. #include "FileZillaPCH.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. FDebugLevel = 0;
  13. }
  14. //---------------------------------------------------------------------------
  15. bool TFileZillaIntern::PostMessage(WPARAM wParam, LPARAM lParam) const
  16. {
  17. bool Result;
  18. unsigned int MessageID = FZ_MSG_ID(wParam);
  19. switch (MessageID)
  20. {
  21. case FZ_MSG_STATUS:
  22. case FZ_MSG_ASYNCREQUEST:
  23. case FZ_MSG_LISTDATA:
  24. case FZ_MSG_TRANSFERSTATUS:
  25. case FZ_MSG_REPLY:
  26. case FZ_MSG_CAPABILITIES:
  27. Result = FOwner->PostMessage(wParam, lParam);
  28. break;
  29. default:
  30. DebugFail();
  31. Result = false;
  32. break;
  33. }
  34. return Result;
  35. }
  36. //---------------------------------------------------------------------------
  37. CString TFileZillaIntern::GetOption(int OptionID) const
  38. {
  39. return FOwner->Option(OptionID);
  40. }
  41. //---------------------------------------------------------------------------
  42. int TFileZillaIntern::GetOptionVal(int OptionID) const
  43. {
  44. return FOwner->OptionVal(OptionID);
  45. }
  46. //---------------------------------------------------------------------------
  47. int TFileZillaIntern::GetDebugLevel() const
  48. {
  49. return FDebugLevel;
  50. }
  51. //---------------------------------------------------------------------------
  52. void TFileZillaIntern::SetDebugLevel(int DebugLevel)
  53. {
  54. FDebugLevel = DebugLevel;
  55. }
  56. //---------------------------------------------------------------------------