omadm/omadmextensions/adapters/lawmodmadapter/inc/nsmldmuri.h
branchRCL_3
changeset 70 5d5344402085
parent 65 450d1facd418
child 73 5042b6604f6f
equal deleted inserted replaced
65:450d1facd418 70:5d5344402085
     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 	//static TPtrC8 ParentURI(const TDesC8& aURI);
       
    54 	//static TPtrC8 LastURISeg(const TDesC8& aURI);
       
    55 	static TPtrC8 RemoveDotSlash(const TDesC8& aURI);
       
    56 	//static TPtrC8 RemoveProp(const TDesC8& aURI);
       
    57 	static TPtrC8 RemoveFirstSeg(const TDesC8& aURI);
       
    58 	static TPtrC8 URISeg(const TDesC8& aURI,TInt aLocation,TInt aSegCount=1);
       
    59 	static TInt NumOfURISegs(const TDesC8& aURI);
       
    60 	};
       
    61 
       
    62 #endif // __NSMLDMURI_H