CICalContentLineReader Class Reference
|
class CICalContentLineReader : public CBase
|
Class for reading in content lines from a stream.
|
Private Member Enumerations
|
|
enum
|
Flags
{
EEof
= 1 }
|
Constructor & Destructor Documentation
CICalContentLineReader(RReadStream &)
|
CICalContentLineReader
|
(
|
RReadStream
&
|
aStream
|
)
|
[private]
|
Parameters
|
RReadStream
& aStream
|
A stream containing iCalendar information to import.
|
~CICalContentLineReader()
|
~CICalContentLineReader
|
(
|
)
|
|
Member Functions Documentation
ConstructL()
|
void
|
ConstructL
|
(
|
)
|
[private]
|
Second phase construction.
GetLineL(TPtr &)
|
void
|
GetLineL
|
(
|
TPtr
&
|
aPtr
|
)
|
[private]
|
Reads from the stream to the next line feed.
-
leave
-
With KErrEof when the end of the stream is reached or KErrCorrupt if the line is invalid.
Parameters
|
TPtr
& aPtr
|
A modifiable pointer to a buffer to read the line into.
|
GetNextContentLine(TPtrC &)
Reads the next content line from the stream into aPtr. If the content line has been folded, it will be unfolded. After completion aPtr will point to the new content line
Parameters
|
TPtrC
& aPtr
|
TPtrC& to set to the new content line.
|
GetNextContentLineL()
|
void
|
GetNextContentLineL
|
(
|
)
|
[private]
|
Reads the next content line from the stream into aPtr. If the content line has been folded, it will be unfolded. After completion aPtr will point to the new content line
-
leave
-
Leaves with KErrEof when we reach the end of the stream.
NewL(RReadStream &)
Parameters
|
RReadStream
& aStream
|
A stream containing iCalendar information to import.
|
NewLC(RReadStream &)
Allocates and constructs a new
CICalContentLineReader
. The pointer to the new object is left on the Cleanup Stack.
Parameters
|
RReadStream
& aStream
|
A stream containing iCalendar information to import.
|
SkipComponentL(const TDesC &)
|
void
|
SkipComponentL
|
(
|
const
TDesC
&
|
aName
|
)
|
|
Reads from the stream discarding lines until a matching 'END:' directive is reached.
-
leave
-
KErrCorrupt if a matching END is not found.
Parameters
|
const
TDesC
& aName
|
The name of the component we are skipping.
|
Member Enumerations Documentation
Member Data Documentation
HBufC * iCurrentLine
|
HBufC
*
|
iCurrentLine
|
[private]
|
HBufC * iNextLine
|
HBufC
*
|
iNextLine
|
[private]
|
RReadStream & iReadStream
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.