equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
36 { |
36 { |
37 public: |
37 public: |
38 static CSoftwareTypeRegInfoParser* NewL(); |
38 static CSoftwareTypeRegInfoParser* NewL(); |
39 virtual ~CSoftwareTypeRegInfoParser(); |
39 virtual ~CSoftwareTypeRegInfoParser(); |
40 |
40 |
41 void ParseL(const TDesC8& aDocument, RPointerArray<CSoftwareTypeRegInfo>& aSwTypeRegInfoArray); |
41 void ParseL(const TDesC8& aDocument, RPointerArray<Usif::CSoftwareTypeRegInfo>& aSwTypeRegInfoArray); |
42 |
42 |
43 private: |
43 private: |
44 // From MContentHandler |
44 // From MContentHandler |
45 virtual void OnStartDocumentL(const Xml::RDocumentParameters& aDocParam, TInt aErrorCode); |
45 virtual void OnStartDocumentL(const Xml::RDocumentParameters& aDocParam, TInt aErrorCode); |
46 virtual void OnEndDocumentL(TInt aErrorCode); |
46 virtual void OnEndDocumentL(TInt aErrorCode); |
56 virtual TAny* GetExtendedInterface(const TInt32 aUid); |
56 virtual TAny* GetExtendedInterface(const TInt32 aUid); |
57 |
57 |
58 private: |
58 private: |
59 CSoftwareTypeRegInfoParser(); |
59 CSoftwareTypeRegInfoParser(); |
60 |
60 |
61 RPointerArray<CSoftwareTypeRegInfo>* iSwTypeRegInfoArray; |
61 RPointerArray<Usif::CSoftwareTypeRegInfo>* iSwTypeRegInfoArray; |
62 HBufC8* iContentChunks; |
62 HBufC8* iContentChunks; |
63 TLanguage iLocalizedNameLanguage; |
63 TLanguage iLocalizedNameLanguage; |
|
64 TSecureId iSecureId; |
|
65 TInt iAccessMode; |
64 |
66 |
65 enum TXmlNode |
67 enum TXmlNode |
66 { |
68 { |
67 ENodeNone, |
69 ENodeNone, |
68 ENodeSoftwareTypeRegistrationData, |
70 ENodeSoftwareTypeRegistrationData, |
69 ENodeSoftwareType, |
71 ENodeSoftwareType, |
70 ENodeLocalizedName, |
72 ENodeLocalizedName, |
71 ENodeMimeType, |
73 ENodeMimeType, |
72 ENodeSifPluginUid, |
74 ENodeSifPluginUid, |
73 ENodeInstallerSecureId, |
75 ENodeCustomAccess, |
74 ENodeExecutionLayerSecureId |
76 ENodeLauncherExecutable |
75 }; |
77 }; |
76 RArray<TXmlNode> iNodes; |
78 RArray<TXmlNode> iNodes; |
77 |
79 |
78 TXmlNode ElementNameToNode(const TDesC8& aName) const; |
80 TXmlNode ElementNameToNode(const TDesC8& aName) const; |
79 void PushNodeL(TXmlNode aNew, TXmlNode aExpectedParent); |
81 void PushNodeL(TXmlNode aNew, TXmlNode aExpectedParent); |