1 // Copyright (c) 1997-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 // Implementation of the TEComResolverParams class.
15 // Provide the inline implementation of TEComResolverParams
16 // TEComResolverParams allows the user to define the characteristics
17 // of the Interface Implementation plugin to be found.
18 // Default constructor of TEComResolverParams. It creates an empty uninitialized
19 // resolver parameter object. Such an object maybe used in calls to REComSession
20 // CreateImplementationL() and ListImplementationsL() methods when no specific
21 // matching or filtering is required i.e. default type matching will be used.
25 TEComResolverParams::TEComResolverParams()
34 Provides read access to the Interface Implementation plugin 'datatype' match
35 pattern. Note, since TEComResolveParams has a default constructor this data
36 member may be an invalid descriptor which implies 'default matching'.
38 @return The read only 'datatype' match pattern.
39 @pre The object is constructed
42 const TDesC8& TEComResolverParams::DataType() const
49 Set the Interface Implementation plugin 'datatype' match pattern.
51 @param aDataType The 'datatype' match pattern to be stored.
52 @pre The object is constructed
53 @post iDataType equals aDataType.
56 void TEComResolverParams::SetDataType(const TDesC8& aDataType)
58 iDataType.Set(aDataType);
62 Check if 'generic' matching is allowed.
64 @return ETrue if generic matching is allowed, EFalse otherwise.
65 @pre The object is constructed
67 TBool TEComResolverParams::IsGenericMatch() const
73 Indicates that a 'generic' match is required.
75 Either allow Interface Implementation plugins that are specific (use no wildcards
76 in their registry file) or generic (use wildcards in their registry file).
78 In any case the user of a should NOT use wildcards in the datatype string that
79 is passed into this object.
82 The client that sets up the resolver is expected to know what type of data
86 "I have this gif to convert, but I'd prefer only gif-specific plugins" or
87 "I have this gif to convert, but I'm happy with some generic image conversion
91 "I have this image I want some plugin to convert, but I don't know the type
94 @param aGenericMatch ETrue if a generic match is required, EFalse if not.
95 @pre The object is constructed
96 @post iGenericMatch equals aGenericMatch.
98 void TEComResolverParams::SetGenericMatch(TBool aGenericMatch)
100 iGenericMatch=aGenericMatch;
109 TBool TEComResolverParams::IsWildcardMatch() const
111 return iGenericMatch;
120 void TEComResolverParams::SetWildcardMatch(TBool aWildcardMatch)
122 iGenericMatch=aWildcardMatch;