simpleengine/xmlutils/inc/simplenamespace.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     1 /*
       
     2 * Copyright (c) 2006 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:   SIMPLE namespace
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef simplenamespace_H
       
    22 #define simplenamespace_H
       
    23 
       
    24 #include <e32std.h>
       
    25 #include "msimplenamespace.h"
       
    26 
       
    27 /**
       
    28  *  CSimpleNamespace
       
    29  *
       
    30  *  SIMPLE data namespacw
       
    31  *
       
    32  *  @lib simplexmlutils
       
    33  *  @since S60 3.2
       
    34  */
       
    35 
       
    36 class CSimpleNamespace : public CBase, public MSimpleNamespace
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     /**
       
    42      * Two-phased constructor.
       
    43      * @since S60 3.2
       
    44      */
       
    45     static CSimpleNamespace* NewL(
       
    46         const TDesC8& aPrefix,
       
    47         const TDesC8& aUri );
       
    48 
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     virtual ~CSimpleNamespace();
       
    53 
       
    54 // from base class MSimpleNamespace
       
    55 
       
    56     /**
       
    57      * From MSimpleNamespace
       
    58      * Destroy this element entity
       
    59      *
       
    60      * @since S60 3.2
       
    61      */
       
    62     void Close();
       
    63 
       
    64     /**
       
    65      * From MSimpleNamespace
       
    66      * Getter for the URI of the namespace object.
       
    67      *
       
    68      * @since S60 3.2     
       
    69      * @return  The URI
       
    70      */
       
    71     TPtrC8 URI();
       
    72 
       
    73     /**
       
    74      * From MSimpleNamespace
       
    75      * Getter for the prefix of the namespace object.
       
    76      *
       
    77      * @since S60 3.2     
       
    78      * @return  The prefix
       
    79      */
       
    80     TPtrC8 Prefix();
       
    81 
       
    82     /**
       
    83      * From MSimpleNamespace
       
    84      * Setter for the URI of the namespace object.
       
    85      *
       
    86      * @since S60 3.2     
       
    87      * @param aUri  The URI.
       
    88      */
       
    89     void SetUriL(const TDesC8& aUri);
       
    90 
       
    91     /**
       
    92      * From MSimpleNamespace
       
    93      * Setter for the prefix of the namespace object.
       
    94      *
       
    95      * @since S60 3.2     
       
    96      * @param aPrefix   The prefix.
       
    97      */
       
    98     void SetPrefixL(const TDesC8& aPrefix);
       
    99 
       
   100 private:
       
   101 
       
   102     void ConstructL(
       
   103         const TDesC8& aPrefix,
       
   104         const TDesC8& aUri);
       
   105 
       
   106     /**
       
   107      * contructor
       
   108      */
       
   109     CSimpleNamespace( );
       
   110 
       
   111 private:
       
   112 
       
   113     /**
       
   114      * The actual namespace entity.
       
   115      * Own.
       
   116      */
       
   117     HBufC8* iPrefix;
       
   118     
       
   119     /**
       
   120      * URI.
       
   121      * Own.
       
   122      */    
       
   123     HBufC8* iUri;
       
   124 
       
   125     };
       
   126 
       
   127 #endif      // simplenamespace_H
       
   128 
       
   129 // End of File