javamanager/javacaptain/extensionplugins/javacertstore/src.s60/smartcardcryptotokenreader.cpp
equal
deleted
inserted
replaced
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 { |