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: CXcapIetfPresRulesUsage |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XCAPIETFPRESRULESUSAGE__ |
|
22 #define __XCAPIETFPRESRULESUSAGE__ |
|
23 |
|
24 #include "XcapAppUsage.h" |
|
25 |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 class CXcapIetfPresRulesUsage : public CXcapAppUsage |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Symbian OS constructor |
|
35 * @param TXcapAppUsageParams Parameters |
|
36 * @return CXcapIetfPresRulesUsage* |
|
37 */ |
|
38 static CXcapIetfPresRulesUsage* NewL( const TXcapAppUsageParams& aParameters ); |
|
39 |
|
40 /** |
|
41 * Destructor |
|
42 */ |
|
43 virtual ~CXcapIetfPresRulesUsage(); |
|
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 */ |
|
79 void ValidateAttributeL( const CXdmNodeAttribute& aXdmNodeAttr ); |
|
80 |
|
81 /** |
|
82 * Add namespaces and namespace prefixes used in document |
|
83 */ |
|
84 void AddNamespaceInformationL( CXdmDocument& aXdmDocument ); |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * Second phase construction |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 /** |
|
94 * Prohibit copy costructor |
|
95 */ |
|
96 CXcapIetfPresRulesUsage( const CXdmEngine& aXdmEngine ); |
|
97 |
|
98 private: // Data |
|
99 |
|
100 CXcapAppUsage* iIetfCommonPolicy; |
|
101 }; |
|
102 |
|
103 #endif //__XCAPIETFPRESRULESUSAGE__ |
|
104 |
|
105 // End of File |
|