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