equal
deleted
inserted
replaced
45 #include "SenDateUtils.h" |
45 #include "SenDateUtils.h" |
46 #include "senwsdescription.h" |
46 #include "senwsdescription.h" |
47 #include "senwebservicesession.h" |
47 #include "senwebservicesession.h" |
48 |
48 |
49 #include <SenServiceConnection.h> // KErrSenNoPermission ( -30315 ) |
49 #include <SenServiceConnection.h> // KErrSenNoPermission ( -30315 ) |
50 #include <xmlengnodelist.h> |
50 #include <xml/dom/xmlengnodelist.h> |
51 #include <SenCredential.h> |
51 #include <SenCredential.h> |
52 |
52 |
53 #include <SenXmlUtils.h> |
53 #include <SenXmlUtils.h> |
54 #ifdef __CRYPTO_HW__ |
54 #ifdef __CRYPTO_HW__ |
55 #include "sencryptoutils.h" |
55 #include "sencryptoutils.h" |
1334 } |
1334 } |
1335 |
1335 |
1336 RSenCredentialPtr CSenCredentialManager::CredentialL( TInt aInternalCredentialId, |
1336 RSenCredentialPtr CSenCredentialManager::CredentialL( TInt aInternalCredentialId, |
1337 TInt& aErrorTo ) |
1337 TInt& aErrorTo ) |
1338 { |
1338 { |
|
1339 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"CSenCredentialManager::CredentialL()"); |
1339 TInt count = iCredentialArray.Count(); |
1340 TInt count = iCredentialArray.Count(); |
1340 for (TInt i=0; i<count; i++) |
1341 for (TInt i=0; i<count; i++) |
1341 { |
1342 { |
1342 if ( iCredentialArray[i].Credential() && iCredentialArray[i].Credential()->IdentifierL().IdL() == aInternalCredentialId ) |
1343 if ( iCredentialArray[i].Credential() && iCredentialArray[i].Credential()->IdentifierL().IdL() == aInternalCredentialId ) |
1343 { |
1344 { |
1389 // (permission was granted) |
1390 // (permission was granted) |
1390 aErrorTo = KErrNone; |
1391 aErrorTo = KErrNone; |
1391 return iCredentialArray[i]; |
1392 return iCredentialArray[i]; |
1392 } |
1393 } |
1393 } |
1394 } |
1394 aErrorTo = KErrNotFound; |
1395 aErrorTo = KErrNotFound; |
|
1396 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"CSenCredentialManager::CredentialL() Completed"); |
1395 return RSenCredentialPtr(); |
1397 return RSenCredentialPtr(); |
1396 } |
1398 } |
1397 |
1399 |
1398 RSenCredentialPtr CSenCredentialManager::UpdateCredentialL( TInt aInternalCredentialId, |
1400 RSenCredentialPtr CSenCredentialManager::UpdateCredentialL( TInt aInternalCredentialId, |
1399 CSenInternalCredential* apCredential, |
1401 CSenInternalCredential* apCredential, |