upnpmediaserver/contentdirectoryservice/inc/upnpxmlcontentfilter.h
author samhuttu
Mon, 01 Nov 2010 12:37:49 +0200
branchnew development branch with rendering state machine and other goodies
changeset 38 5360b7ddc251
parent 27 03808033c9a2
permissions -rw-r--r--
New development branch with e.g. rendering state machine and a simple Qt example application using it.

/** @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 );

    };