Пример #1
0
//---------------------------------------------------------------------------
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);
}
Пример #2
0
//---------------------------------------------------------------------------
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);
}
Пример #3
0
//---------------------------------------------------------------------------
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;
}