equal
deleted
inserted
replaced
26 #include <ssl.h> |
26 #include <ssl.h> |
27 #ifdef __SERIES60_30__ |
27 #ifdef __SERIES60_30__ |
28 #include <CMenuClient.h> |
28 #include <CMenuClient.h> |
29 #endif |
29 #endif |
30 #include "amsmlhelper.h" |
30 #include "amsmlhelper.h" |
|
31 #include "APGCLI.H" |
|
32 #include "APMREC.h" |
|
33 #include "APMSTD.H" |
31 |
34 |
32 using namespace NApplicationManagement; |
35 using namespace NApplicationManagement; |
33 |
36 |
34 _LIT8( KAMDCDataSuffix, "_D.txt"); |
37 _LIT8( KAMDCDataSuffix, "_D.txt"); |
35 _LIT8( KAMDCMetaDataSuffix, "_M.txt"); |
38 _LIT8( KAMDCMetaDataSuffix, "_M.txt"); |
701 void CDeploymentComponent::SuccessStatusUpdateL(const TDesC &aDlFileName, |
704 void CDeploymentComponent::SuccessStatusUpdateL(const TDesC &aDlFileName, |
702 const TDesC8& aDlMimeType) |
705 const TDesC8& aDlMimeType) |
703 { |
706 { |
704 RDEBUG( "CDeploymentComponent::SuccessStatusUpdateL : start"); |
707 RDEBUG( "CDeploymentComponent::SuccessStatusUpdateL : start"); |
705 SetDataL(aDlFileName, aDlMimeType); |
708 SetDataL(aDlFileName, aDlMimeType); |
706 |
709 |
|
710 TBuf<256> FileType; |
|
711 TBuf8<256> FileType8; |
|
712 |
|
713 RApaLsSession RSession; |
|
714 if(RSession.Connect() == KErrNone) |
|
715 { |
|
716 TDataRecognitionResult FileDataType; |
|
717 RSession.RecognizeData(aDlFileName,iData->Data(),*&FileDataType); |
|
718 |
|
719 FileType.Copy(FileDataType.iDataType.Des()); |
|
720 |
|
721 } |
|
722 RSession.Close(); |
|
723 |
|
724 FileType8.Copy(FileType); |
|
725 |
|
726 SetDataL(FileType8); |
|
727 |
707 // Set PkgID same as MiME type of downloaded content |
728 // Set PkgID same as MiME type of downloaded content |
708 SetPkgTypeL(aDlMimeType); |
729 SetPkgTypeL(FileType8); |
709 |
730 |
710 CDeploymentComponent* conflict( NULL); |
731 CDeploymentComponent* conflict( NULL); |
711 TBool dlOk(ETrue); |
732 TBool dlOk(ETrue); |
712 if (iUid != TUid::Null() ) |
733 if (iUid != TUid::Null() ) |
713 { |
734 { |
717 } |
738 } |
718 } |
739 } |
719 else |
740 else |
720 { |
741 { |
721 RDEBUG( "CDeploymentComponent::StatusUpdateL - WARNING cannot detect uid" ); |
742 RDEBUG( "CDeploymentComponent::StatusUpdateL - WARNING cannot detect uid" ); |
722 if (IsJavaMimeL(aDlMimeType) ||IsSisMimeL(aDlMimeType) ) |
743 if (IsJavaMimeL(FileType8) ||IsSisMimeL(FileType8) ) |
723 { |
744 { |
724 RDEBUG( "CDeploymentComponent::StatusUpdateL - Ignoring prev warning because it's java" ); |
745 RDEBUG( "CDeploymentComponent::StatusUpdateL - Ignoring prev warning because it's java" ); |
725 } |
746 } |
726 else |
747 else |
727 { |
748 { |