|
SASC
DVBSoftCAM
|
#include <smartcard.h>
Public Member Functions | |
| void | Shutdown (void) |
| void | Disable (void) |
| cSmartCardData * | FindCardData (cSmartCardData *param) |
| bool | HaveCard (int id) |
| cSmartCard * | LockCard (int id) |
| void | ReleaseCard (cSmartCard *sc) |
| bool | ListCard (int num, char *str, int len) |
| bool | CardInfo (int num, char *str, int len) |
| void | CardReset (int num) |
| void | Shutdown (void) |
| void | Disable (void) |
| cSmartCardData * | FindCardData (cSmartCardData *param) |
| bool | HaveCard (int id) |
| cSmartCard * | LockCard (int id) |
| void | ReleaseCard (cSmartCard *sc) |
| bool | ListCard (int num, char *str, int len) |
| bool | CardInfo (int num, char *str, int len) |
| void | CardReset (int num) |
Static Public Member Functions | |
| static cSmartCardLink * | First (void) |
| static cSmartCardLink * | Next (cSmartCardLink *scl) |
| static cSmartCardLink * | First (void) |
| static cSmartCardLink * | Next (cSmartCardLink *scl) |
Friends | |
| class | cSmartCardLink |
Definition at line 164 of file smartcard.h.
| bool cSmartCards::CardInfo | ( | int | num, |
| char * | str, | ||
| int | len | ||
| ) |
Definition at line 2080 of file smartcard.c.
References cSmartCardSlot::GetCardInfoStr(), cSmartCardSlots::GetSlot(), and cSmartCardSlots::Release().
Referenced by cMenuInfoCard::cMenuInfoCard().
{
cSmartCardSlot *slot=cardslots.GetSlot(num);
str[0]=0;
bool res=false;
if(slot) res=slot->GetCardInfoStr(str,len);
cardslots.Release();
return res;
}
| bool cSmartCards::CardInfo | ( | int | num, |
| char * | str, | ||
| int | len | ||
| ) |
| void cSmartCards::CardReset | ( | int | num | ) |
Definition at line 2090 of file smartcard.c.
References cSmartCardSlots::GetSlot(), cSmartCardSlots::Release(), and cSmartCardSlot::TriggerReset().
Referenced by cMenuInfoCard::ProcessKey().
{
cSmartCardSlot *slot=cardslots.GetSlot(num);
if(slot) slot->TriggerReset();
cardslots.Release();
}
| void cSmartCards::CardReset | ( | int | num | ) |
| void cSmartCards::Disable | ( | void | ) |
Definition at line 2034 of file smartcard.c.
References cStructLoader::Disable().
Referenced by InitAll(), and cSoftCAM::Load().
| void cSmartCards::Disable | ( | void | ) |
| cSmartCardData* cSmartCards::FindCardData | ( | cSmartCardData * | param | ) |
| cSmartCardData * cSmartCards::FindCardData | ( | cSmartCardData * | param | ) |
Definition at line 2040 of file smartcard.c.
References cSmartCardDatas::Find().
Referenced by cSmartCardConax::Decode(), cSmartCardVideoGuard2::Init(), cSmartCardViaccess::Init(), cSmartCardNagra::Init(), cSmartCardIrdeto::Init(), and cSmartCardCryptoworks::Init().
| static cSmartCardLink* cSmartCards::First | ( | void | ) | [inline, static] |
Definition at line 173 of file smartcard.h.
Referenced by cSmartCardSlot::Action(), cSmartCardSlot::GetCardIdStr(), and cSmartCardDatas::ParseLine().
{ return first; }
| static cSmartCardLink* cSmartCards::First | ( | void | ) | [inline, static] |
Definition at line 173 of file smartcard.h.
{ return first; }
| bool cSmartCards::HaveCard | ( | int | id | ) |
| bool cSmartCards::HaveCard | ( | int | id | ) |
Definition at line 2045 of file smartcard.c.
References cSmartCardSlots::FirstSlot(), cStructListPlain< T >::Next(), and cSmartCardSlots::Release().
Referenced by cSystemLinkScViaccess::CanHandle(), and cSystemLinkScSeca::CanHandle().
| bool cSmartCards::ListCard | ( | int | num, |
| char * | str, | ||
| int | len | ||
| ) |
Definition at line 2070 of file smartcard.c.
References cSmartCardSlot::GetCardIdStr(), cSmartCardSlots::GetSlot(), and cSmartCardSlots::Release().
Referenced by cMenuSetupSc::cMenuSetupSc().
{
cSmartCardSlot *slot=cardslots.GetSlot(num);
str[0]=0;
bool res=false;
if(slot) { slot->GetCardIdStr(str,len); res=true; }
cardslots.Release();
return res;
}
| bool cSmartCards::ListCard | ( | int | num, |
| char * | str, | ||
| int | len | ||
| ) |
| cSmartCard* cSmartCards::LockCard | ( | int | id | ) |
| cSmartCard * cSmartCards::LockCard | ( | int | id | ) |
Definition at line 2054 of file smartcard.c.
References cSmartCardSlots::FirstSlot(), cStructListPlain< T >::Next(), cSmartCardSlots::Release(), and sc.
Referenced by cSystemLinkScVideoGuard2::CanHandle(), cSystemLinkScNagra::CanHandle(), cSystemLinkScIrdeto::CanHandle(), cSystemLinkScCryptoworks::CanHandle(), cSystemLinkScConax::CanHandle(), cSystemScCore::ProcessECM(), and cSystemScCore::ProcessEMM().
{
cSmartCard *sc=0;
for(cSmartCardSlot *slot=cardslots.FirstSlot(); slot; slot=cardslots.Next(slot))
if((sc=slot->LockCard(id))) break;
cardslots.Release();
return sc;
}
| static cSmartCardLink* cSmartCards::Next | ( | cSmartCardLink * | scl | ) | [inline, static] |
Definition at line 174 of file smartcard.h.
Referenced by cSmartCardSlot::Action(), cSmartCardSlot::GetCardIdStr(), and cSmartCardDatas::ParseLine().
{ return scl->next; }
| static cSmartCardLink* cSmartCards::Next | ( | cSmartCardLink * | scl | ) | [inline, static] |
Definition at line 174 of file smartcard.h.
{ return scl->next; }
| void cSmartCards::ReleaseCard | ( | cSmartCard * | sc | ) |
Definition at line 2063 of file smartcard.c.
References cSmartCardSlots::FirstSlot(), cStructListPlain< T >::Next(), and cSmartCardSlots::Release().
Referenced by cSystemLinkScVideoGuard2::CanHandle(), cSystemLinkScNagra::CanHandle(), cSystemLinkScIrdeto::CanHandle(), cSystemLinkScCryptoworks::CanHandle(), cSystemLinkScConax::CanHandle(), cSystemScCore::ProcessECM(), and cSystemScCore::ProcessEMM().
| void cSmartCards::ReleaseCard | ( | cSmartCard * | sc | ) |
| void cSmartCards::Shutdown | ( | void | ) |
Definition at line 2028 of file smartcard.c.
References cStructLoader::SafeClear().
Referenced by cSoftCAM::Shutdown().
| void cSmartCards::Shutdown | ( | void | ) |
cSmartCardLink [friend] |
Definition at line 165 of file smartcard.h.