pressrv_plat/xdm_api/inc/XdmNamespaceContainer.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     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:   XDM namespace
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XDMNAMESPACECONTAINER__
       
    22 #define __XDMNAMESPACECONTAINER__
       
    23 
       
    24 //CLASS DECLARATION
       
    25 class MXdmNamespaceContainer
       
    26     {
       
    27     public:
       
    28         
       
    29         /**
       
    30         * Return the number of namespace declarations
       
    31         *
       
    32         * @return TInt Namespace declaration count
       
    33         */
       
    34         virtual TInt Count() const = 0;
       
    35         
       
    36         /**
       
    37         * Append a new namespace to the document
       
    38         *
       
    39         * @param TDesC8& URI of the namespace
       
    40         * @param TDesC8& Prefix of the namespace
       
    41         */
       
    42         virtual void AppendNamespaceL( const TDesC8& aUri, const TDesC8& aPrefix ) = 0;
       
    43         
       
    44         /**
       
    45         * Remove a namespace from the document
       
    46         *
       
    47         * @param TDesC8& URI of the namespace
       
    48         * @param TDesC8& Prefix of the namespace
       
    49         */
       
    50         virtual void RemoveNamespace( const TDesC8& aUri ) = 0;
       
    51         
       
    52         /**
       
    53         * Fetch the URI that corresponds to the prefix in the parameter
       
    54         *
       
    55         * @param TDesC8 Prefix of the namespace
       
    56         * @return TPtrC URI that corresponds to the prefix in the parameter
       
    57         */
       
    58         virtual TPtrC8 Uri( const TDesC8& aPrefix ) const = 0;
       
    59         
       
    60         /**
       
    61         * Fetch the aIndex-th URI
       
    62         *
       
    63         * @param TInt The index of the desired URI string
       
    64         * @return TPtrC URI string
       
    65         */
       
    66         virtual TPtrC8 Uri( TInt aIndex ) const = 0;
       
    67         
       
    68         /**
       
    69         * Fetch the aIndex-th prefix
       
    70         *
       
    71         * @param TDesC8 The index of the desired prefix string
       
    72         * @return TPtrC Prefix string
       
    73         */
       
    74         virtual TPtrC8 Prefix( TInt aIndex ) const = 0;
       
    75         
       
    76         /**
       
    77         * Resets namespaces from the document
       
    78         *
       
    79         * @return void
       
    80         */
       
    81         virtual void ResetNamespaces( ) = 0;
       
    82     };
       
    83 
       
    84 #endif      //__XDMNAMESPACECONTAINER__
       
    85             
       
    86 // End of File