upnpmediaserver/contentdirectoryservice/inc/upnpxmlcontentfilter.h
changeset 0 7f85d04be362
child 12 cdcbf344a1d3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/upnpmediaserver/contentdirectoryservice/inc/upnpxmlcontentfilter.h	Thu Dec 17 08:52:00 2009 +0200
@@ -0,0 +1,53 @@
+/** @file
+* Copyright (c) 2005-2006 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:  Xml responses serialization filter
+*
+*/
+
+
+// INCLUDE FILES
+
+#include <e32svr.h>
+#include <xmlengdom.h>
+#include <xmlengnodefilter.h>
+
+//using namespace Xml;
+
+/**
+*  @brief Xml responses serialization filter
+*
+*  @lib ContentDirectory.lib
+*  @since Series60 3.2
+*/
+class CUpnpXmlContentFilter : public CBase, MXmlEngNodeFilter
+    {
+public: // from MXmlEngNodeFilter
+
+    /**
+    * Filters node by type CDATA and comments are rejected
+    * @since Series60 3.2
+    * @param aNode node
+    */    
+    virtual TXmlEngNodeFilterResult AcceptNode(TXmlEngNode aNode);
+    
+public:
+        
+    /**
+    * Aplies filter and serializes aElement to descriptor 
+    * @since Series60 3.2
+    * @param aService Parent service 
+    */
+    static HBufC8* SerializeLC(RXmlEngDocument& aDoc, TXmlEngElement& aElement );
+
+    };
\ No newline at end of file