1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Detailed parser information for resolution criteria in XML framework
31 #include <ecom/implementationinformation.h>
37 The plugin variant string of the default Symbian-provided XML parser plugins.
41 _LIT8(KXmlSymbianPluginVariant, "Symbian");
44 CMatchData class provides detailed parser information for XML framework.
45 Client application should use this class to precisely specify the plugin,
46 which should be used as a parsing engine in XML framework.
52 NONSHARABLE_CLASS(CMatchData) : public CBase
59 IMPORT_C static CMatchData* NewL();
60 IMPORT_C static CMatchData* NewL(const TDesC8& aPackage);
61 IMPORT_C static CMatchData* NewLC();
62 IMPORT_C static CMatchData* NewLC(const TDesC8& aPackage);
64 IMPORT_C void SetMimeTypeL(const TDesC8& aData);
65 IMPORT_C const TPtrC8 MimeType() const;
67 IMPORT_C void SetVariantL(const TDesC8& aVariant);
68 IMPORT_C const TPtrC8 Variant() const;
70 IMPORT_C void SetLeaveOnMany(TBool aSetting);
71 IMPORT_C void SetRomOnly(TBool aSetting);
72 IMPORT_C void SetCaseSensitivity(TBool aSetting);
74 IMPORT_C TUid ResolveL(RImplInfoArray& aImplList) const;
77 CMatchData& operator=(const CMatchData & aMatchData);
78 TBool operator==(const CMatchData & aMatchData) const;
79 HBufC8* PackToBufferL() const;
82 void ConstructL(const TDesC8& aPackage);
84 TBool VariantMatch(const TDesC8& aOpaqueField) const;
85 TBool MimeTypeMatch(const TDesC8& aDataField) const;
86 TBool MatchField(const TDesC8& aField, const TDesC8& aMatchString, const TDesC8& aSeparator) const;
88 TBool CaseSensitivity() const;
89 TBool LeaveOnMany() const;
90 TBool RomOnly() const;
92 void ExternalizeL(RWriteStream& aStream) const;
93 void InternalizeL(RReadStream& aStream);
95 TUid SelectSingleParserL(RImplInfoPtrArray& aImplList) const;
96 TBool IsInvalidVariant() const;
98 static TInt SortOrder(const CImplementationInformation &aImpInfo1,
99 const CImplementationInformation &aImpInfo2);
102 Mime type requested by client
103 Is matched against one of entries of data_type field in resoure information file
108 Variant requested by client
109 Is matched against first entry in opaque_data field of resource information file
114 Additional information for resolution constrains. Bitmap.
120 #endif // MATCHDATA_H