servicediscoveryandcontrol/pnp/test/upnp/upnpdescription/inc/deviceiconparser.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __DEVICEICONPARSER_H__
       
    17 #define __DEVICEICONPARSER_H__
       
    18 
       
    19 #include <xml/parser.h>
       
    20 #include "parsehandlerbase.h"
       
    21 #include "cpnpdeviceparam.h"
       
    22 /* CDeviceIconParser is used to parse each icon element in device description which contains the following fields
       
    23  1. icon
       
    24  2. mimetype
       
    25  3. width
       
    26  4. height
       
    27  5. depth
       
    28  6. url
       
    29  Please consult UPnPDeviceArchitecture 1.0
       
    30  */
       
    31 class CDeviceIconParser : public CParseHandlerBase
       
    32 	{
       
    33 public:
       
    34 	static CDeviceIconParser* NewL(CUPnPIconInfo *aDeviceIcon, const RStringPool &aStringPool);
       
    35 	virtual ~CDeviceIconParser();
       
    36 
       
    37 	virtual void ParseStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes);
       
    38 	virtual void ParseEndElementL(const RTagInfo& aElement);
       
    39 	virtual void ParseContentL(const TDesC8& aBytes);
       
    40 
       
    41 private:
       
    42 	CDeviceIconParser(CUPnPIconInfo *aDeviceIcon, const RStringPool &aStringPool);
       
    43 	
       
    44 private:
       
    45 	CUPnPIconInfo *iDeviceIcon;
       
    46 	const RStringPool &iStringPool;
       
    47 	CParser* iXmlParser;
       
    48 	TUint iFlags;
       
    49 	};
       
    50 
       
    51 #endif//__DEVICEICONPARSER_H__