|
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 __SERVICEINFOPARSER_H__ |
|
17 #define __SERVICEINFOPARSER_H__ |
|
18 |
|
19 #include <xml/parser.h> |
|
20 #include "parsehandlerbase.h" |
|
21 #include "cpnpdeviceparam.h" |
|
22 |
|
23 /* CServiceInfoParser is used to parse the service element of device description |
|
24 It extracts information about the following elements |
|
25 1. ServiceType |
|
26 2. ServiceId |
|
27 3. ScpdUrl |
|
28 4. ContorlUrl |
|
29 5. EventSubUrl |
|
30 Please consult UPnPDeviceArchitecture 1.0 |
|
31 */ |
|
32 class CServiceInfoParser : public CParseHandlerBase |
|
33 { |
|
34 public: |
|
35 static CServiceInfoParser* NewL(CUPnPServiceInfo *aServiceInfo, const RStringPool &aStringPool); |
|
36 virtual ~CServiceInfoParser(); |
|
37 |
|
38 virtual void ParseStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes); |
|
39 virtual void ParseEndElementL(const RTagInfo& aElement); |
|
40 virtual void ParseContentL(const TDesC8& aBytes); |
|
41 |
|
42 private: |
|
43 CServiceInfoParser(CUPnPServiceInfo *aServiceInfo, const RStringPool &aStringPool); |
|
44 |
|
45 private: |
|
46 CUPnPServiceInfo *iServiceInfo; |
|
47 const RStringPool &iStringPool; |
|
48 CParser* iXmlParser; |
|
49 TUint iFlags; |
|
50 }; |
|
51 |
|
52 #endif//__SERVICEINFOPARSER_H__ |
|
53 |
|
54 |