equal
deleted
inserted
replaced
|
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 __CACTIONPARSER_H_ |
|
17 #define __CACTIONPARSER_H_ |
|
18 |
|
19 #include <xml/parser.h> |
|
20 #include "cpnpserviceparam.h" |
|
21 #include "parsehandlerbase.h" |
|
22 |
|
23 // Parses the Action element of Service description |
|
24 class CActionParser : public CParseHandlerBase |
|
25 { |
|
26 public: |
|
27 static CActionParser* NewL(CUPnPAction *aAction, const RStringPool &aStringPool); |
|
28 virtual ~CActionParser(); |
|
29 virtual void ParseStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes); |
|
30 virtual void ParseEndElementL(const RTagInfo& aElement); |
|
31 virtual void ParseContentL(const TDesC8& aBytes); |
|
32 |
|
33 private: |
|
34 CActionParser(CUPnPAction *aAction, const RStringPool &aStringPool); |
|
35 enum |
|
36 { |
|
37 EAction = 0x01, |
|
38 EName = 0x02, |
|
39 EArgumentList = 0x04, |
|
40 EAllChild = 0x0E |
|
41 }; |
|
42 private: |
|
43 CUPnPAction* iAction; |
|
44 const RStringPool& iStringPool; |
|
45 CParser* iXmlParser; |
|
46 TUint iFlags; |
|
47 }; |
|
48 #endif /*CACTIONPARSER_H_*/ |