FileZillaIntern.cpp 1.7 KB

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