|
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 |
|
17 #ifndef __UPNPSPPUBLISHINFOCONTAINER_H_ |
|
18 #define __UPNPSPPUBLISHINFOCONTAINER_H_ |
|
19 |
|
20 #include "cpnpdeviceparam.h" |
|
21 #include "cstringpoolmanager.h" |
|
22 |
|
23 |
|
24 class CUPnPRootDeviceInfoContainer : public CBase |
|
25 { |
|
26 public: |
|
27 static CUPnPRootDeviceInfoContainer* NewL ( ); |
|
28 ~CUPnPRootDeviceInfoContainer ( ); |
|
29 |
|
30 void AppendServiceInfoL ( const TDesC8& aParentUuid, CUPnPServiceInfo* aServiceInfo ); |
|
31 void AppendEmbeddedDeviceL ( const TDesC8& aParentUuid, CUPnPDevice* aDevice ); |
|
32 |
|
33 void DeleteServiceInfoL ( const TDesC8& aScpdUrl ); |
|
34 void DeleteDeviceInfoL ( const TDesC8& aUuid ); |
|
35 |
|
36 CUPnPDeviceDescription& GetRootDeviceDesciption ( ) const; |
|
37 const TDesC8& GetRootdeviceUid() const; |
|
38 CStringPoolManager& StringPoolManager ( ) const; |
|
39 CUPnPDevice* GetDeviceByUuid ( const TDesC8& aDeviceUuid ); |
|
40 |
|
41 TInt PerformValidation ( const TDesC8& aDeviceUid, const TDesC8& aServiceType ); |
|
42 |
|
43 private: |
|
44 CUPnPRootDeviceInfoContainer ( ); |
|
45 void ConstructL ( ); |
|
46 TBool AppendServiceL ( const TDesC8& aParentUuid, const CUPnPServiceInfo* aServiceInfo, CUPnPDevice* aDevice ); |
|
47 TBool DeleteServiceL ( const TDesC8& aScpdUrl, CUPnPDevice* aDevice ); |
|
48 TBool DeleteDeviceL ( const TDesC8& aUuid, CUPnPDevice* aDevice ); |
|
49 const CUPnPDevice* SearchDevice ( const CUPnPDevice* aDevice, const TDesC8& aDeviceUuid ); |
|
50 |
|
51 private: |
|
52 CUPnPDeviceDescription* iRootDeviceDescription; |
|
53 CStringPoolManager* iStringPoolMgr; |
|
54 }; |
|
55 |
|
56 |
|
57 |
|
58 #endif /*UPNPSPPUBLISHINFOCONTAINER_H_*/ |