customization/DMUtils/inc/nsmldmuri.h
changeset 0 3ce708148e4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/customization/DMUtils/inc/nsmldmuri.h	Thu Dec 17 08:40:12 2009 +0200
@@ -0,0 +1,62 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  DM tree etc.
+*
+*/
+
+
+
+#ifndef __NSMLDMURI_H
+#define __NSMLDMURI_H
+
+#include <e32std.h>
+#include <e32base.h>
+
+#define KNSmlDMUriSeparator '/'
+_LIT8(KNSmlDmRootUri, ".");
+_LIT8(KNSmlDmUriDotSlash, "./");
+_LIT8( KNSmlDmQuestionMark, "?" );
+//#define KNSmlDMMappingSeparator '&'
+//#define KNSmlDMAclSeparator '+'
+//#define KNSmlDMAclUriSeparator 0xa
+//#define KNSmlDMAclCommandSeparator '&'
+
+// Choose one depending on library type
+#define STATIC_DMUTILS_LIB 1
+//#define DYNAMIC_DMUTILS_LIB 1
+
+#ifdef STATIC_DMUTILS_LIB
+#define NSMLDMURI_IMPORT_C
+#define NSMLDMURI_EXPORT_C
+#else
+#define NSMLDMURI_IMPORT_C IMPORT_C
+#define NSMLDMURI_EXPORT_C EXPORT_C
+#endif
+
+// ===========================================================================
+// NSmlDmURI
+// ===========================================================================
+class NSmlDmURI
+	{
+	public:
+	NSMLDMURI_IMPORT_C static TPtrC8 ParentURI(const TDesC8& aURI);
+	NSMLDMURI_IMPORT_C static TPtrC8 LastURISeg(const TDesC8& aURI);
+	NSMLDMURI_IMPORT_C static TPtrC8 RemoveDotSlash(const TDesC8& aURI);
+	NSMLDMURI_IMPORT_C static TPtrC8 RemoveProp(const TDesC8& aURI);
+	NSMLDMURI_IMPORT_C static TPtrC8 RemoveLastSeg(const TDesC8& aURI);
+	NSMLDMURI_IMPORT_C static TPtrC8 URISeg(const TDesC8& aURI,TInt aLocation,TInt aSegCount=1);
+	NSMLDMURI_IMPORT_C static TInt NumOfURISegs(const TDesC8& aURI);
+	};
+
+#endif // __NSMLDMURI_H