|
1 // Copyright (c) 2005-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 @file SS_COMMSPROV.CPP |
|
18 */ |
|
19 |
|
20 #include "ss_commsprov.h" |
|
21 #include <comms-infras/ss_log.h> |
|
22 |
|
23 |
|
24 #ifdef _DEBUG |
|
25 // Panic category for "absolutely impossible!" vanilla ASSERT()-type panics from this module |
|
26 // (if it could happen through user error then you should give it an explicit, documented, category + code) |
|
27 // UNCOMMENT IF INTRODUCING AN ASSERT |
|
28 //_LIT(KSpecAssert_ESockSSockscmspr, "ESockSSockscmspr"); |
|
29 #endif |
|
30 |
|
31 using namespace ESock; |
|
32 |
|
33 // |
|
34 //TProviderInfo |
|
35 namespace Mem4NullProviderInfo |
|
36 { |
|
37 static const TUint8 mem[sizeof(TProviderInfo)] = {0}; |
|
38 } |
|
39 |
|
40 const TProviderInfo* const TProviderInfo::KNullProviderInfo = reinterpret_cast<const TProviderInfo*>(Mem4NullProviderInfo::mem); |
|
41 EXPORT_C const TProviderInfo& TProviderInfo::NullProviderInfo() {return *TProviderInfo::KNullProviderInfo;}; |
|
42 |
|
43 |
|
44 // |
|
45 // TLayerSelectionInfo |
|
46 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TProviderInfoExt, TProviderInfoExt::EUid, TProviderInfoExt::ETypeId) |
|
47 // No attributes even though there are data members. The structure is not serialised |
|
48 END_ATTRIBUTE_TABLE() |
|
49 |
|
50 // |
|
51 // TLayerSelectionInfo |
|
52 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TLayerConfig, TLayerConfig::EUid, TLayerConfig::ETypeId) |
|
53 // No attributes even though there are data members. The structure is not serialised |
|
54 END_ATTRIBUTE_TABLE() |
|
55 |
|
56 |
|
57 // |
|
58 // TLayerSelectionInfo |
|
59 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TLayerSelectionInfo, TLayerSelectionInfo::EUid, TLayerSelectionInfo::ETypeId) |
|
60 // No attributes even though there are data members. The structure is not serialised |
|
61 END_ATTRIBUTE_TABLE() |
|
62 |
|
63 |
|
64 // |
|
65 // TAccessPointPriority |
|
66 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TAccessPointPriority, TAccessPointPriority::EUid, TAccessPointPriority::ETypeId) |
|
67 // No attributes even though there are data members. The structure is not serialised |
|
68 END_ATTRIBUTE_TABLE() |
|
69 |
|
70 |
|
71 // |
|
72 // TAppSidConfig |
|
73 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TAppSidConfig, TAppSidConfig::EUid, TAppSidConfig::ETypeId) |
|
74 // No attributes even though there are data members. The structure is not serialised |
|
75 END_ATTRIBUTE_TABLE() |
|
76 |
|
77 |
|
78 |
|
79 EXPORT_C RMetaExtensionContainerC& CCommsProviderBase::AccessPointConfig() const |
|
80 { |
|
81 return iAccessPointConfig; |
|
82 } |
|
83 |
|
84 EXPORT_C CCommsProviderBase::~CCommsProviderBase() |
|
85 { |
|
86 // Release the reference if we have one |
|
87 iAccessPointConfig.Close(); |
|
88 } |
|
89 |