javamanager/javacaptain/extensionplugins/javacertstore/src.s60/smartcardcryptotokenreader.cpp
changeset 61 bf7ee68962da
parent 21 2a9601315dfc
child 83 26b2b12093af
equal deleted inserted replaced
48:e0d6e9bd3ca7 61:bf7ee68962da
    57     {
    57     {
    58     case EStart:
    58     case EStart:
    59         NextState(Initialize());
    59         NextState(Initialize());
    60         break;
    60         break;
    61     case EListTokenTypes:
    61     case EListTokenTypes:
    62         NextState(ListTokenTypes());
    62         NextState(ListTokenTypesL());
    63         break;
    63         break;
    64     case EOpenTokenType:
    64     case EOpenTokenType:
    65         NextState(OpenTokenType());
    65         NextState(OpenTokenType());
    66         break;
    66         break;
    67     case EOpenToken:
    67     case EOpenToken:
   130     CompleteRequest(KErrNone);
   130     CompleteRequest(KErrNone);
   131     // the operation did succeed
   131     // the operation did succeed
   132     return true;
   132     return true;
   133 }
   133 }
   134 
   134 
   135 bool SmartCardCryptoTokenReader::ListTokenTypes()
   135 bool SmartCardCryptoTokenReader::ListTokenTypesL()
   136 {
   136 {
   137     TCTTokenTypeAttribute att = { KCTRemovable , 1 };
   137     TCTTokenTypeAttribute att = { KCTRemovable , 1 };
   138     iSmartCardTokensAttributes.Append(att);
   138     iSmartCardTokensAttributes.AppendL(att);
   139     iSmartCardTokensInterfaces.Append(TUid::Uid(KInterfaceCertStore));
   139     iSmartCardTokensInterfaces.AppendL(TUid::Uid(KInterfaceCertStore));
   140     TCTFindTokenTypesByInterfaceAndAttribute findByIAndA(
   140     TCTFindTokenTypesByInterfaceAndAttribute findByIAndA(
   141         iSmartCardTokensInterfaces.Array(), iSmartCardTokensAttributes.Array());
   141         iSmartCardTokensInterfaces.Array(), iSmartCardTokensAttributes.Array());
   142     CCTTokenTypeInfo::ListL(iSmartCardTokenTypes, findByIAndA);
   142     CCTTokenTypeInfo::ListL(iSmartCardTokenTypes, findByIAndA);
   143     if (iSmartCardTokenTypes.Count() > 0)
   143     if (iSmartCardTokenTypes.Count() > 0)
   144     {
   144     {