Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 inline void CLineReader::SetPlugIn(MVersitPlugIn* aPlugIn)
21 Allows implemented functions of the MVersitPlugIn class to be used in specifying
22 options for adding and deleting spaces to/from the buffer.
24 Specifically, the plug-in is used to determine whether an additional space should
25 be added when appending a line to the buffer (by default a space will be added),
26 and whether the white space at the start of a line should form part of the data
27 (by default it will not form part of the data).
29 Using a plug-in is optional.
31 @param aPlugIn A pointer to an MVersitPlugIn instance. */
34 inline void CLineReader::SetSkipWhiteSpaceAtStart(TBool aDoSkip)
35 {iSkipWhiteSpaceAtStart=aDoSkip;}
42 inline void CVersitParser::SetObserver(MVersitObserver* aObserver)
43 /** Sets the Versit observer.
45 @param aObserver A pointer to the observer. */
46 {iObserver=aObserver;}
48 inline MVersitObserver* CVersitParser::Observer()
49 /** Gets a pointer to the Versit observer.
51 @return A pointer to the observer. */
54 inline void CVersitParser::SetPlugIn(MVersitPlugIn* aPlugIn)
55 /** Sets the Versit plug-in.
57 If there is one, the Versit plug-in needs to be set before any properties are
58 added to the parser. This is done for you when internalising (using InternalizeL())
59 or adding properties (using AddPropertyL()).
61 @param aPlugIn A pointer to the plug in. */
64 inline MVersitPlugIn* CVersitParser::PlugIn()
65 /** Gets a pointer to the Versit plug-in.
67 @return A pointer to the plug-in. */
70 /* Gets a pointer to the read buffer owned by the CLineReader.
72 * @return Pointer to the read buffer. */
73 inline TPtr8& CVersitParser::BufPtr()
74 {return iLineReader->iBufPtr;}
77 * Check the iFlags to see if <code>ESupportsVersion</code> is set
80 * <code>ETrue</code> if the parser supports the version property
81 * <code>EFalse</code> otherwise
83 inline TBool CVersitParser::SupportsVersion() const
84 {return iFlags & ESupportsVersion;}
87 * Sets the iFlags to <code>ESupportsVersion</code>
89 inline void CVersitParser::SetSupportsVersion()
90 {iFlags |= ESupportsVersion;}
93 * Clear the bit of <code>ESupportsVersion</code> in iFlags'
95 inline void CVersitParser::ClearSupportsVersion()
96 {iFlags &= ~ESupportsVersion;}
101 inline void CVersitParser::SetFlags(TUint aFlags)
105 * Gets a reference to <code>CVersitUnicodeUtils</code>
106 * which is used for charset conversion
108 * @return " CVersitUnicodeUtils&"
109 * reference to <code>CVersitUnicodeUtils</code>
111 inline CVersitUnicodeUtils& CVersitParser::UnicodeUtils()
112 { return iStaticUtils->UnicodeUtils(); }