calendarengines/versit2/inc/ICalContentLineWriter.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 #ifndef ICALCONTENTLINEWRITER_H
       
     2 #define ICALCONTENTLINEWRITER_H/*
       
     3 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * Nokia Corporation - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:   Holds the definition of CICalContentLineWriter.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // System includes.
       
    22 #include <e32base.h>	// CBase
       
    23 
       
    24 // Forward declarations.
       
    25 class RWriteStream;
       
    26 
       
    27 /**
       
    28 Class for writing out content lines to a stream.
       
    29 @internalTechnology
       
    30 */
       
    31 class CICalContentLineWriter : public CBase
       
    32 	{
       
    33 public:	// Construction/destruction.
       
    34 	static CICalContentLineWriter* NewL(RWriteStream& aStream);
       
    35 	static CICalContentLineWriter* NewLC(RWriteStream& aStream);
       
    36 	~CICalContentLineWriter();
       
    37 
       
    38 public:	// Methods.
       
    39 	void WriteContentLineL();
       
    40 	void AppendL(const TDesC& aLine);
       
    41 	void AppendL(const TChar& aCharacter);
       
    42 	
       
    43 private:	// Construction.
       
    44 	CICalContentLineWriter(RWriteStream& aStream);
       
    45 	void ConstructL();
       
    46 	
       
    47 private:	// Attributes.
       
    48 	RWriteStream& iWriteStream;
       
    49 	HBufC* iCurrentLine;
       
    50 	};
       
    51 
       
    52 #endif	// ICALCONTENTLINEWRITER_H
       
    53 
       
    54 // End of File