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