applicationmanagement/server/inc/nsmldmuri.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     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 #ifndef __NSMLDMURI_H
       
    19 #define __NSMLDMURI_H
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 #define KNSmlDMUriSeparator '/'
       
    25 _LIT8(KNSmlDmRootUri, ".");
       
    26 _LIT8(KNSmlDmUriDotSlash, "./");
       
    27 _LIT8( KNSmlDmQuestionMark, "?" );
       
    28 
       
    29 // ===========================================================================
       
    30 // NSmlDmURI
       
    31 // ===========================================================================
       
    32 class NSmlDmURI
       
    33     {
       
    34 public:
       
    35     static TPtrC8 ParentURI(const TDesC8& aURI);
       
    36     static TPtrC8 LastURISeg(const TDesC8& aURI);
       
    37     static TPtrC8 RemoveDotSlash(const TDesC8& aURI);
       
    38     static TPtrC8 RemoveProp(const TDesC8& aURI);
       
    39     static TPtrC8 RemoveLastSeg(const TDesC8& aURI);
       
    40     static TPtrC8
       
    41             URISeg(const TDesC8& aURI, TInt aLocation, TInt aSegCount=1);
       
    42     static TInt NumOfURISegs(const TDesC8& aURI);
       
    43     };
       
    44 
       
    45 #endif // __NSMLDMURI_H