policymanagement/pmdmadapter/inc/nsmldmuri.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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(KNSmlDmUriSlash, "/");
       
    30 _LIT8( KNSmlDmQuestionMark, "?" );
       
    31 
       
    32 
       
    33 
       
    34 // ===========================================================================
       
    35 // NSmlDmURI
       
    36 // ===========================================================================
       
    37 class NSmlDmURI
       
    38 	{
       
    39 	public:
       
    40 	static TPtrC8 ParentURI(const TDesC8& aURI);
       
    41 	static TPtrC8 LastURISeg(const TDesC8& aURI);
       
    42 	static TPtrC8 RemoveDotSlash(const TDesC8& aURI);
       
    43 	static TPtrC8 RemoveProp(const TDesC8& aURI);
       
    44 	static TPtrC8 RemoveLastSeg(const TDesC8& aURI);
       
    45 	static TPtrC8 URISeg(const TDesC8& aURI,TInt aLocation,TInt aSegCount=1);
       
    46 	static TInt NumOfURISegs(const TDesC8& aURI);
       
    47 	};
       
    48 
       
    49 #endif // __NSMLDMURI_H