--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/xdmprotocols/XcapProtocol/XcapAppUsage/XcapC4/inc/XcapC4.h Wed Sep 01 12:23:14 2010 +0100
@@ -0,0 +1,106 @@
+/*
+* Copyright (c) 2008 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: CXcapC4
+*
+*/
+
+#ifndef __XCAPRESCONTENT__
+#define __XCAPRESCONTENT__
+
+#include "XcapAppUsage.h"
+
+// CONSTANTS
+#define KC4SettingsCenRepUID 0x20021391
+
+
+// CLASS DECLARATION
+class CXcapC4 : public CXcapAppUsage
+ {
+ public:
+
+ /**
+ * Symbian OS constructor
+ * @param TXcapAppUsageParams Parameters
+ * @return CXcapC4*
+ */
+ static CXcapC4* NewL( const TXcapAppUsageParams& aParameters );
+
+ /**
+ * Destructor
+ */
+ virtual ~CXcapC4();
+
+ public: // From CXcapAppUsage
+
+ /**
+ * AUID for this usage
+ * @return AUID
+ */
+ TPtrC8 AUID() const;
+
+ /**
+ * MIME type for this usage
+ * @return MIME type
+ */
+ TPtrC8 ContentType() const;
+
+ /**
+ * Default namespace for this usage
+ * @return Default namespace definition
+ */
+ TPtrC8 DefaultNamespace() const;
+
+ /**
+ * Validate the node in the parameter
+ * Leaves with system wide error codes or
+ * with error defined in XdmErrors.h
+ * @param CXdmDocumentNode& reference to the node
+ * @return ETrue, if the node belongs to the appusage's namespace
+ */
+ TBool ValidateNodeL( CXdmDocumentNode& aXdmNode );
+
+ /**
+ * Validate the attribute in the parameter
+ * Leaves with system wide error codes or
+ * with error defined in XdmErrors.h
+ * @param CXdmNodeAttribute& reference to the attribute
+ */
+ void ValidateAttributeL( const CXdmNodeAttribute& aXdmNodeAttr );
+
+ /**
+ * Add namespaces and namespace prefixes used in document
+ * @param CXdmDocument& reference to the document
+ */
+ void AddNamespaceInformationL( CXdmDocument& aXdmDocument );
+
+ private:
+
+ /**
+ * Second phase construction
+ */
+ void ConstructL();
+
+ /**
+ * Prohibit copy costructor
+ */
+ CXcapC4( const CXdmEngine& aXdmEngine );
+
+ private: // member data
+ /// RCS Global: Old content type setting
+ TInt iRCSGlobalOldContentType;
+ };
+
+#endif //__XCAPPRESCONTENT__
+
+// End of File