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 b13e2e7c2b #pragma package(smart_init) is not useful out of packages
Source commit: 7635ac3b532214f27ea2b6fe6aa80398c857cfcd
2025-08-23 01:06:48 +02:00

58 lines
1.7 KiB
C++

//---------------------------------------------------------------------------
#include "FileZillaPCH.h"
//---------------------------------------------------------------------------
#include "FileZillaIntern.h"
#include "FileZillaIntf.h"
//---------------------------------------------------------------------------
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;
}
//---------------------------------------------------------------------------