|
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 Engine data document utilities |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef simpleutils_H |
|
22 #define simpleutils_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 // Namespaces supported |
|
27 _LIT8 ( KSimpleNsDefault, "urn:ietf:params:xml:ns:pidf" ); |
|
28 _LIT8 ( KSimpleNsPDM, "urn:ietf:params:xml:ns:pidf:data-model" ); |
|
29 _LIT8 ( KSimpleNsRPID, "urn:ietf:params:xml:ns:pidf:rpid" ); |
|
30 _LIT8 ( KSimpleNsOP, "urn:ietf:params:xml:ns:pidf:oma-pres" ); |
|
31 _LIT8 ( KSimpleNsGP, "urn:ietf:params:xml:ns:pidf:gepriv10" ); |
|
32 _LIT8 ( KSimpleNsCL, "urn:ietf:params:xml:ns:pidf:gepriv10:civilLoc" ); |
|
33 _LIT8 ( KSimpleNsGML, "urn:opengis:specification:gml:schema-xsd:feature:v3.0" ); |
|
34 |
|
35 _LIT8 ( KSimpleDefault, "" ); |
|
36 _LIT8 ( KSimplePDM, "pdm" ); |
|
37 _LIT8 ( KSimpleRPID, "rpid" ); |
|
38 _LIT8 ( KSimpleOP, "op" ); |
|
39 _LIT8 ( KSimpleGP, "gp" ); |
|
40 _LIT8 ( KSimpleCL, "cl" ); |
|
41 _LIT8 ( KSimpleGML, "gml" ); |
|
42 |
|
43 // Other namespaces, for <filter-set> and <watcherinfo> |
|
44 _LIT8 ( KSimpleNsFilter, "urn:ietf:params:xml:ns:simple-filter" ); |
|
45 _LIT8 ( KSimpleNsWinfo, "urn:ietf:params:xml:ns:watcherinfo" ); |
|
46 |
|
47 _LIT8 ( KSimpleNsRlmi, "urn:ietf:params:xml:ns:rlmi" ); |
|
48 |
|
49 |
|
50 /** |
|
51 * SIMPLE Engine data document utility methods |
|
52 * |
|
53 * @lib simpleenine |
|
54 * @since S60 3.2 |
|
55 */ |
|
56 class TSimpleUtils |
|
57 { |
|
58 |
|
59 public: |
|
60 |
|
61 /** |
|
62 * Namespace URI solver |
|
63 * @since S60 3.2 |
|
64 * @param aPrefix namespace prefix |
|
65 * @leaves with KErrNotFound if unsupported prefix given |
|
66 * @return namespace URI |
|
67 */ |
|
68 IMPORT_C static TPtrC8 NsUriL( |
|
69 const TDesC8& aPrefix ); |
|
70 |
|
71 /** |
|
72 * Namespace prefix solver |
|
73 * @since S60 3.2 |
|
74 * @param aURI namespace URI |
|
75 * @leaves with KErrNotFound if unsupported URI given, see valid ones above. |
|
76 * @return namespace prefix. |
|
77 */ |
|
78 IMPORT_C static TPtrC8 NsPrefixL( |
|
79 const TDesC8& aURI ); |
|
80 }; |
|
81 |
|
82 #endif |
|
83 |
|
84 // End of File |