SASC
DVBSoftCAM

cSystemLinkScCryptoworks Class Reference

Inheritance diagram for cSystemLinkScCryptoworks:

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 72 of file sc-cryptoworks.c.


Constructor & Destructor Documentation

cSystemLinkScCryptoworks::cSystemLinkScCryptoworks ( void  )

Definition at line 81 of file sc-cryptoworks.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-Cryptoworks: Parental rating"),&disableParental,sizeof(rat)/sizeof(char *),rat));
  Feature.NeedsSmartCard();
}
cSystemLinkScCryptoworks::cSystemLinkScCryptoworks ( void  )

Member Function Documentation

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

Implements cSystemLink.

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

References cSmartCard::CanHandle(), cSmartCards::LockCard(), cSmartCards::ReleaseCard(), SC_ID, and smartcards.

{
  bool res=false;
  cSmartCard *card=smartcards.LockCard(SC_ID);
  if(card) {
    res=card->CanHandle(SysId);
    smartcards.ReleaseCard(card);
    }
  return res;
}
virtual bool cSystemLinkScCryptoworks::CanHandle ( unsigned short  SysId) [virtual]

Implements cSystemLink.

virtual cSystem* cSystemLinkScCryptoworks::Create ( void  ) [inline, virtual]

Implements cSystemLink.

Definition at line 76 of file sc-cryptoworks.c.

{ return new cSystemScCryptoworks; }
virtual cSystem* cSystemLinkScCryptoworks::Create ( void  ) [inline, virtual]

Implements cSystemLink.

Definition at line 76 of file sc-cryptoworks.c.

{ return new cSystemScCryptoworks; }

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