|
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 __CARGUMENTPARSER_H_ |
|
17 #define __CARGUMENTPARSER_H_ |
|
18 |
|
19 #include <xml/parser.h> |
|
20 #include "cpnpserviceparam.h" |
|
21 #include "parsehandlerbase.h" |
|
22 |
|
23 /* Parses the argument element of UPnP Service description |
|
24 */ |
|
25 class CArgumentParser : public CParseHandlerBase |
|
26 { |
|
27 public: |
|
28 static CArgumentParser* NewL(CUPnPArgument *aArgument, const RStringPool &aStringPool); |
|
29 virtual ~CArgumentParser(); |
|
30 virtual void ParseStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes); |
|
31 virtual void ParseEndElementL(const RTagInfo& aElement); |
|
32 virtual void ParseContentL(const TDesC8& aBytes); |
|
33 |
|
34 private: |
|
35 CArgumentParser(CUPnPArgument *aArgument , const RStringPool &aStringPool); |
|
36 enum |
|
37 { |
|
38 EArgument = 0x01, |
|
39 EName = 0x02, |
|
40 EArgumentDirection = 0x04, |
|
41 ERetValue = 0x08, |
|
42 ERelatedStateVar = 0x10, |
|
43 EAllChild = 0x1E |
|
44 }; |
|
45 private: |
|
46 CUPnPArgument* iArgument; |
|
47 const RStringPool& iStringPool; |
|
48 CParser* iXmlParser; |
|
49 TUint iFlags; |
|
50 }; |
|
51 #endif /*CARGUMENTPARSER_H_*/ |