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 void RUPnPParameterFamily::DeleteParamSetL ( TInt aIndex ) |
|
17 { |
|
18 // UPnP is not having any usage of EAcceptable,EGranted |
|
19 // so call three deletes that make sure, the null elements |
|
20 // as well are deleted. |
|
21 |
|
22 DeleteParameterSetL ( aIndex * ENumValues ); |
|
23 if ( CountParameterSets() ) |
|
24 { |
|
25 if ( aIndex == 0 ) |
|
26 { |
|
27 DeleteParameterSetL ( aIndex ); |
|
28 DeleteParameterSetL ( aIndex ); |
|
29 |
|
30 } |
|
31 else |
|
32 { |
|
33 DeleteParameterSetL ( aIndex * ENumValues - RParameterFamily::EAcceptable ); |
|
34 DeleteParameterSetL ( aIndex * ENumValues - RParameterFamily::EGranted ); |
|
35 } |
|
36 } |
|
37 } |