|
1 // Copyright (c) 2007-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 // Implementation for XParameterSetBase and XParameterSet. |
|
15 // |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalTechnology |
|
22 */ |
|
23 |
|
24 #include <comms-infras/es_parameterset.h> |
|
25 |
|
26 |
|
27 #ifdef _DEBUG |
|
28 // Panic category for "absolutely impossible!" vanilla ASSERT()-type panics from this module |
|
29 // (if it could happen through user error then you should give it an explicit, documented, category + code) |
|
30 _LIT(KSpecAssert_ESockCSckCSPrmtS, "ESockCSckCSPrmtS"); |
|
31 #endif |
|
32 |
|
33 EXPORT_REGISTER_TYPEID( XParameterSet, KParameterSetTypeUid, Meta::KNetMetaTypeAny ) |
|
34 |
|
35 EXPORT_C /*virtual*/ XParameterSet::~XParameterSet() |
|
36 { |
|
37 } |
|
38 |
|
39 EXPORT_C /*virtual*/ void XParameterSet::UpdateWithL(const XParameterSet& aRhsBase) |
|
40 { |
|
41 // you need to implement this function for your specific data type |
|
42 // so that unset/inappropriate fields in aRhsBase are not copied |
|
43 (void)aRhsBase; |
|
44 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_ESockCSckCSPrmtS, 1)); |
|
45 } |
|
46 |
|
47 EXPORT_C /*virtual*/ TInt XParameterSet::AppendPrintableTo(TDes& /*aDestination*/) const |
|
48 { |
|
49 // You need to implement this function for your specific data type |
|
50 // to append your instance in some user friendly format to the passed in descriptor |
|
51 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_ESockCSckCSPrmtS, 2)); |
|
52 return KErrNotSupported; |
|
53 } |
|
54 |
|
55 EXPORT_C /*virtual*/ TInt XParameterSet::_extension(TUid /*aExtensionId*/, TAny*& /*aReturnedExtension*/) |
|
56 { |
|
57 return KErrNotSupported; |
|
58 } |
|
59 |
|
60 |