|
1 /* |
|
2 * Copyright (c) 2002 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: DM tree etc. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __NSMLDMURI_H |
|
21 #define __NSMLDMURI_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 #define KNSmlDMUriSeparator '/' |
|
27 _LIT8(KNSmlDmRootUri, "."); |
|
28 _LIT8(KNSmlDmUriDotSlash, "./"); |
|
29 _LIT8( KNSmlDmQuestionMark, "?" ); |
|
30 //#define KNSmlDMMappingSeparator '&' |
|
31 //#define KNSmlDMAclSeparator '+' |
|
32 //#define KNSmlDMAclUriSeparator 0xa |
|
33 //#define KNSmlDMAclCommandSeparator '&' |
|
34 |
|
35 // Choose one depending on library type |
|
36 #define STATIC_DMUTILS_LIB 1 |
|
37 //#define DYNAMIC_DMUTILS_LIB 1 |
|
38 |
|
39 #ifdef STATIC_DMUTILS_LIB |
|
40 #define NSMLDMURI_IMPORT_C |
|
41 #define NSMLDMURI_EXPORT_C |
|
42 #else |
|
43 #define NSMLDMURI_IMPORT_C IMPORT_C |
|
44 #define NSMLDMURI_EXPORT_C EXPORT_C |
|
45 #endif |
|
46 |
|
47 // =========================================================================== |
|
48 // NSmlDmURI |
|
49 // =========================================================================== |
|
50 class NSmlDmURI |
|
51 { |
|
52 public: |
|
53 NSMLDMURI_IMPORT_C static TPtrC8 ParentURI(const TDesC8& aURI); |
|
54 NSMLDMURI_IMPORT_C static TPtrC8 LastURISeg(const TDesC8& aURI); |
|
55 NSMLDMURI_IMPORT_C static TPtrC8 RemoveDotSlash(const TDesC8& aURI); |
|
56 NSMLDMURI_IMPORT_C static TPtrC8 RemoveProp(const TDesC8& aURI); |
|
57 NSMLDMURI_IMPORT_C static TPtrC8 RemoveLastSeg(const TDesC8& aURI); |
|
58 NSMLDMURI_IMPORT_C static TPtrC8 URISeg(const TDesC8& aURI,TInt aLocation,TInt aSegCount=1); |
|
59 NSMLDMURI_IMPORT_C static TInt NumOfURISegs(const TDesC8& aURI); |
|
60 }; |
|
61 |
|
62 #endif // __NSMLDMURI_H |