locationcentre/lcserver/inc/lcregxmltaginfo.h
branchRCL_3
changeset 16 4721bd00d3da
parent 14 3a25f69541ff
child 21 e15b7f06eba6
equal deleted inserted replaced
14:3a25f69541ff 16:4721bd00d3da
     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: 
       
    15 *     See class description below
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef T_LCREGXMLTAGINFO_H
       
    22 #define T_LCREGXMLTAGINFO_H
       
    23 
       
    24 //  SYSTEM INCLUDES
       
    25 
       
    26 // USER INCLUDES
       
    27 #include    "lcregxmltagtype.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Helper class for converting from/to xml markup data.
       
    33 *
       
    34 */
       
    35 class TLcRegXmlTagInfo
       
    36     {
       
    37 public:  // Constructors and destructor
       
    38 
       
    39    /**
       
    40     * C++ default constructor.
       
    41     */
       
    42     TLcRegXmlTagInfo();
       
    43 
       
    44 public: // New functions
       
    45    /**
       
    46     * Get tag type for the specified tag name.
       
    47     *
       
    48     * @param aTagName A tag name defining the current tag.
       
    49     * @return Tag type for tag name.
       
    50     */
       
    51     static TLcRegXmlTagType TagTypeL(
       
    52     	const TDesC8& aTagName );
       
    53     
       
    54    /**
       
    55     * Get tag attribute type for the specified tag name.
       
    56     *
       
    57     * @param aTagName A tag name defining the current tag.
       
    58     * @return Tag type for tag attribute.
       
    59     */
       
    60 	static TLcRegXmlTagType TagAttrTypeL(TLcRegXmlTagType aTagType,
       
    61     	const TDesC8& aAttrName );
       
    62    
       
    63 private:
       
    64     static TBool EqualsTagL(
       
    65         const TDesC8& aTag,
       
    66         const TDesC& aDefinedTag
       
    67     );
       
    68     };
       
    69 
       
    70 #endif      // T_LCREGXMLTAGINFO_H
       
    71 
       
    72 // End of File