//--------------------------------------------------------------------------- #include "stdafx.h" #include #include #include //--------------------------------------------------------------------------- CString COptions::GetInstanceOption(CApiLog * Instance, int OptionID) { ASSERT(Instance); ASSERT(dynamic_cast(Instance) != NULL); TFileZillaIntern * Intern = (TFileZillaIntern *)Instance; const TFileZillaIntf * Intf = Intern->GetOwner(); ASSERT(Intf != NULL); CString Result = Intf->Option(OptionID); switch (OptionID) { case OPTION_PROXYPASS: case OPTION_FWPASS: Result = CCrypt::encrypt(Result); break; } return Result; } //--------------------------------------------------------------------------- int COptions::GetInstanceOptionVal(CApiLog * Instance, int OptionID) { ASSERT(Instance); ASSERT(dynamic_cast(Instance) != NULL); TFileZillaIntern * Intern = (TFileZillaIntern *)Instance; const TFileZillaIntf * Intf = Intern->GetOwner(); ASSERT(Intf != NULL); return Intf->OptionVal(OptionID); }