コード例 #1
0
ファイル: Options.cpp プロジェクト: kocicjelena/Far-NetBox
//---------------------------------------------------------------------------
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
ファイル: Options.cpp プロジェクト: kocicjelena/Far-NetBox
//---------------------------------------------------------------------------
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;
}