meetingrequest/mrversit2/inc/cesmricalcontentlinereader.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Holds the definition of CESMRICalContentLineReader.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CESMRICALCONTENTLINEREADER_H
       
    21 #define CESMRICALCONTENTLINEREADER_H
       
    22 
       
    23 
       
    24 // System includes
       
    25 #include <e32base.h>	// CBase
       
    26 
       
    27 // Forward declarations.
       
    28 class RReadStream;
       
    29 
       
    30 /**
       
    31 Class for reading in content lines from a stream.
       
    32 @internalTechnology
       
    33 */
       
    34 class CESMRICalContentLineReader : public CBase
       
    35 	{
       
    36 private: // Types.
       
    37     enum Flags
       
    38     	{
       
    39     	EEof = 1
       
    40     	};
       
    41 public:	// Construction/destruction.
       
    42 	static CESMRICalContentLineReader* NewL(RReadStream& aStream);
       
    43 	static CESMRICalContentLineReader* NewLC(RReadStream& aStream);
       
    44 	~CESMRICalContentLineReader();
       
    45 
       
    46 public:	// Methods.
       
    47 	TInt GetNextContentLine(TPtrC& aPtr);
       
    48 	void SkipComponentL(const TDesC& aName);
       
    49 
       
    50 private:	// Construction.
       
    51 	CESMRICalContentLineReader(RReadStream& aStream);
       
    52 	void ConstructL();
       
    53 
       
    54 private:	// Methods.
       
    55 	void GetLineL(TPtr& aPtr);
       
    56 	void GetNextContentLineL();
       
    57 
       
    58 private:	// Attributes.
       
    59 	RReadStream& iReadStream;
       
    60 	HBufC* iCurrentLine;
       
    61 	HBufC* iNextLine;
       
    62 	TInt iFlags;
       
    63 	};
       
    64 
       
    65 #endif	// CESMRICALCONTENTLINEREADER_H
       
    66 
       
    67 // End of File