xdmprotocols/XcapProtocol/XcapAppUsage/XCapCommonPolicyCapsUsage/inc/XcapOmaCommonPolicyUsage.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:  CXcapOmaCommonPolicyUsage
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XCAPOMACOMMONPOLICYUSAGE__
       
    22 #define __XCAPOMACOMMONPOLICYUSAGE__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "XcapAppUsage.h"
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class CXcapOmaCommonPolicyUsage : public CXcapAppUsage
       
    30     {
       
    31     public:
       
    32         
       
    33         /**
       
    34         * Symbian OS constructor
       
    35         * @param TXcapAppUsageParams Parameters
       
    36         * @return CXcapOmaCommonPolicyUsage*
       
    37         */
       
    38         static CXcapOmaCommonPolicyUsage* NewL( const TXcapAppUsageParams& aParameters );
       
    39         
       
    40         /**
       
    41         * Destructor
       
    42         */
       
    43         virtual ~CXcapOmaCommonPolicyUsage();
       
    44         
       
    45     public:  // From CXcapAppUsage
       
    46     
       
    47         /**
       
    48         * AUID for this usage
       
    49         * @return AUID
       
    50         */
       
    51         TPtrC8 AUID() const;
       
    52         
       
    53         /**
       
    54         * MIME type for this usage
       
    55         * @return MIME type
       
    56         */
       
    57         TPtrC8 ContentType() const;
       
    58 
       
    59         /**
       
    60         * Default namespace for this usage
       
    61         * @return Default namespace definition
       
    62         */
       
    63         TPtrC8 DefaultNamespace() const;
       
    64                                 
       
    65         /**
       
    66         * Validate the node in the parameter
       
    67         * Leaves with system wide error codes or
       
    68         * with error defined in XdmErrors.h
       
    69         * @param CXdmDocumentNode& reference to the node
       
    70         * @return ETrue, if the node belongs to the appusage's namespace
       
    71         */
       
    72         TBool ValidateNodeL( CXdmDocumentNode& aXdmNode );
       
    73 
       
    74         /**
       
    75         * Validate the attribute in the parameter
       
    76         * Leaves with system wide error codes or
       
    77         * with error defined in XdmErrors.h
       
    78         * @param CXdmNodeAttribute& reference to the attribute
       
    79         */
       
    80         void ValidateAttributeL( const CXdmNodeAttribute& aXdmNodeAttr );
       
    81         
       
    82         /**
       
    83         * Add namespaces and namespace prefixes used in document
       
    84         * @param CXdmDocument& reference to the document        
       
    85         */        
       
    86         void AddNamespaceInformationL( CXdmDocument& aXdmDocument );
       
    87 
       
    88     private:
       
    89         
       
    90         /**
       
    91         * Second phase construction
       
    92         */
       
    93         void ConstructL();
       
    94         
       
    95         /**
       
    96         * Prohibit copy costructor
       
    97         */      
       
    98         CXcapOmaCommonPolicyUsage( const CXdmEngine& aXdmEngine );    
       
    99     };
       
   100 
       
   101 #endif    //__XCAPOMACOMMONPOLICYUSAGE__
       
   102             
       
   103 // End of File