calendarengines/versit2/inc/ICalUtil.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 #ifndef ICALUTIL_H
       
     2 #define ICALUTIL_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 definiton of NICalUtil.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>	// CBase
       
    23 
       
    24 // Forward declarations.
       
    25 class CICalProperty;
       
    26 class CICalPropertyParam;
       
    27 
       
    28 /**
       
    29 Utility functions for parsing iCalendars.
       
    30 @internalTechnology
       
    31 */
       
    32 namespace NICalUtil
       
    33 	{
       
    34 	enum TEscaping
       
    35 		{
       
    36 		/** Escape characters are dealt with as per the specification.*/
       
    37 		EEscapeNormal,
       
    38 		/** Escaped commas constitute value separators.*/
       
    39 		EEscapeValueSeparators
       
    40 		};
       
    41 		
       
    42 	TInt ExtractSectionsL(const TDesC& aLine, TPtrC& aName, TPtrC& aParameters, TPtrC& aValues);
       
    43 	void ExtractPropertyL(const TDesC& aParameters, const TDesC& aValues, CICalProperty& aProperty);
       
    44 	void ExtractParametersL(const TDesC& aParameters, CICalProperty& aProperty);
       
    45 	void ExtractParameterL(const TDesC& aParameter, CICalPropertyParam& aPropertyParam);
       
    46 	void ExtractParameterValuesL(const TDesC& aValues, CICalPropertyParam& aPropertyParam);
       
    47 	void ExtractPropertyValuesL(const TDesC& aValues, CICalProperty& aProperty, TEscaping aEscaping = EEscapeNormal);
       
    48 	TBool PropertyHasTextValueL(const CICalProperty& aProperty);
       
    49 	}
       
    50 	
       
    51 #endif	// ICALUTIL_H
       
    52 
       
    53 // End of File