1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/filezilla/FileZillaIntern.cpp
Martin Prikryl b55e9565da Function call-line syntax for DebugFail + Replacing all DebugAssert(false) with DebugFail
Source commit: 358df59fa46a04bd1b2a141b826fa5c499303ae6
2018-01-24 20:47:51 +01:00

60 lines
1.8 KiB
C++

//---------------------------------------------------------------------------
#include "stdafx.h"
//---------------------------------------------------------------------------
#include "FileZillaIntern.h"
#include "FileZillaIntf.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
TFileZillaIntern::TFileZillaIntern(TFileZillaIntf * AOwner) :
FOwner(AOwner)
{
FDebugLevel = 0;
}
//---------------------------------------------------------------------------
bool TFileZillaIntern::PostMessage(WPARAM wParam, LPARAM lParam) const
{
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;
default:
DebugFail();
Result = false;
break;
}
return Result;
}
//---------------------------------------------------------------------------
CString TFileZillaIntern::GetOption(int OptionID) const
{
return FOwner->Option(OptionID);
}
//---------------------------------------------------------------------------
int TFileZillaIntern::GetOptionVal(int OptionID) const
{
return FOwner->OptionVal(OptionID);
}
//---------------------------------------------------------------------------
int TFileZillaIntern::GetDebugLevel() const
{
return FDebugLevel;
}
//---------------------------------------------------------------------------
void TFileZillaIntern::SetDebugLevel(int DebugLevel)
{
FDebugLevel = DebugLevel;
}
//---------------------------------------------------------------------------