servicediscoveryandcontrol/pnp/test/upnp/upnpdescription/inc/cupnpdescriptionparser.h
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 __CUPNPDESCRIPTIONPARSER_H_ |
|
17 #define __CUPNPDESCRIPTIONPARSER_H_ |
|
18 |
|
19 #include <cstringpoolmanager.h> |
|
20 #include "cpnpserviceparam.h" |
|
21 #include "cpnpdeviceparam.h" |
|
22 |
|
23 class CUPnPDescriptionParser : public CBase |
|
24 { |
|
25 |
|
26 public: |
|
27 enum TUPnPDescriptionType |
|
28 { |
|
29 EService, |
|
30 EDevice |
|
31 }; |
|
32 public: |
|
33 IMPORT_C static CUPnPDescriptionParser* NewL(const RStringPool& aStringPool , TUPnPDescriptionType aType ); |
|
34 IMPORT_C ~CUPnPDescriptionParser(); |
|
35 IMPORT_C TAny* ParseDescriptionBufL(const TDesC8 &aDocument ); |
|
36 |
|
37 private: |
|
38 CUPnPDescriptionParser( const RStringPool& aStringPool , TUPnPDescriptionType aType); |
|
39 |
|
40 const RStringPool& iStringPool; |
|
41 TUPnPDescriptionType iDescriptionType; |
|
42 CUPnPServiceDescription* iServiceDescObj; |
|
43 CUPnPDeviceDescription* iDeviceDescObj; |
|
44 }; |
|
45 #endif /*CUPNPDESCRIPTIONPARSER_H_*/ |