//--------------------------------------------------------------------------- int COptions::GetInstanceOptionVal(CApiLog * Instance, int OptionID) { ASSERT(Instance); ASSERT(NB_STATIC_DOWNCAST(TFileZillaIntern, Instance) != NULL); TFileZillaIntern * Intern = NB_STATIC_DOWNCAST(TFileZillaIntern, Instance); const TFileZillaIntf * Intf = Intern->GetOwner(); ASSERT(Intf != NULL); return (int)Intf->OptionVal(OptionID); }
//--------------------------------------------------------------------------- int COptions::GetInstanceOptionVal(CApiLog * Instance, int OptionID) { ASSERT(Instance); ASSERT(dynamic_cast<TFileZillaIntern *>(Instance) != NULL); TFileZillaIntern * Intern = (TFileZillaIntern *)Instance; const TFileZillaIntf * Intf = Intern->GetOwner(); ASSERT(Intf != NULL); return Intf->OptionVal(OptionID); }
//--------------------------------------------------------------------------- CString COptions::GetInstanceOption(CApiLog * Instance, int OptionID) { ASSERT(Instance); ASSERT(NB_STATIC_DOWNCAST(TFileZillaIntern, Instance) != NULL); TFileZillaIntern * Intern = NB_STATIC_DOWNCAST(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; }