CICalContentLineReader Class Reference

class CICalContentLineReader : public CBase

Class for reading in content lines from a stream.

Inherits from

  • CICalContentLineReader

Constructor & Destructor Documentation

CICalContentLineReader(RReadStream &)

CICalContentLineReader(RReadStream &aStream)[private]

Default constructor.

Parameters

RReadStream & aStreamA stream containing iCalendar information to import.

~CICalContentLineReader()

~CICalContentLineReader()

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second phase construction.

GetLineL(TPtr &)

voidGetLineL(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 & aPtrA modifiable pointer to a buffer to read the line into.

GetNextContentLine(TPtrC &)

TInt GetNextContentLine(TPtrC &aPtr)

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 & aPtrTPtrC& to set to the new content line.

GetNextContentLineL()

voidGetNextContentLineL()[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 &)

CICalContentLineReader *NewL(RReadStream &aStream)[static]

Allocates and constructs a new CICalContentLineReader.

Parameters

RReadStream & aStreamA stream containing iCalendar information to import.

NewLC(RReadStream &)

CICalContentLineReader *NewLC(RReadStream &aStream)[static]

Allocates and constructs a new CICalContentLineReader. The pointer to the new object is left on the Cleanup Stack.

Parameters

RReadStream & aStreamA stream containing iCalendar information to import.

SkipComponentL(const TDesC &)

voidSkipComponentL(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 & aNameThe name of the component we are skipping.

Member Enumerations Documentation

Enum Flags

Enumerators

EEof = 1

Member Data Documentation

HBufC * iCurrentLine

HBufC *iCurrentLine[private]

TInt iFlags

TInt iFlags[private]

HBufC * iNextLine

HBufC *iNextLine[private]

RReadStream & iReadStream

RReadStream &iReadStream[private]