SASC-NG
DVBSoftCAM

cSystemLinkScViaccess Class Reference

Inheritance diagram for cSystemLinkScViaccess:

List of all members.

Public Member Functions

 cSystemLinkScViaccess (void)
virtual bool CanHandle (unsigned short SysId)
virtual cSystem * Create (void)

Detailed Description

Definition at line 85 of file sc-viaccess.c.


Constructor & Destructor Documentation

cSystemLinkScViaccess::cSystemLinkScViaccess ( void  )

Definition at line 94 of file sc-viaccess.c.

References cOpts::Add(), disableParental, Feature, cFeature::NeedsSmartCard(), cSystemLink::opts, SYSTEM_NAME, and trNOOP.

:cSystemLink(SYSTEM_NAME,SYSTEM_PRI)
{
  static const char *rat[] = {
    trNOOP("don't touch"),
    trNOOP("disable")
    };

  opts=new cOpts(SYSTEM_NAME,1);
  opts->Add(new cOptSel("DisableParental",trNOOP("SC-Viaccess: Parental lock"),&disableParental,sizeof(rat)/sizeof(char *),rat));
  Feature.NeedsSmartCard();
}

Member Function Documentation

bool cSystemLinkScViaccess::CanHandle ( unsigned short  SysId) [virtual]

Implements cSystemLink.

Definition at line 107 of file sc-viaccess.c.

References cSmartCards::HaveCard(), SC_ID, smartcards, and SYSTEM_CAN_HANDLE.

{
  return smartcards.HaveCard(SC_ID) && SYSTEM_CAN_HANDLE(SysId);
}
virtual cSystem* cSystemLinkScViaccess::Create ( void  ) [inline, virtual]

Implements cSystemLink.

Definition at line 89 of file sc-viaccess.c.

{ return new cSystemScViaccess; }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines