|
1 // Copyright (c) 2006-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 |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #include "provinfoqueryset.h" |
|
22 #include <comms-infras/ss_commsdataobject.h> |
|
23 |
|
24 using namespace Meta; |
|
25 using namespace ESock; |
|
26 |
|
27 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(XProviderInfoQuerySet, CCommsDataObjectFactory::iUid, XProviderInfoQuerySet::iUid) |
|
28 REGISTER_ATTRIBUTE(XProviderInfoQuerySet, iConnProviderInfo, TMeta<TConnProviderInfo>) |
|
29 END_ATTRIBUTE_TABLE() |
|
30 |
|
31 |
|
32 EXPORT_C XProviderInfoQuerySet::~XProviderInfoQuerySet() |
|
33 { |
|
34 } |
|
35 |
|
36 |
|
37 EXPORT_C XCommsDataObject::TProgressAction XProviderInfoQuerySet::DispatchL(TAny* aItfPtr, MPlatsecApiExt* /*aPlatsecItf*/) |
|
38 { |
|
39 MAccessPointConfigApi* interface = reinterpret_cast<MAccessPointConfigApi*>(aItfPtr); |
|
40 |
|
41 const TProviderInfo& providerInfo = static_cast<const TProviderInfoExt&>(interface->GetAccessPointConfig().FindExtensionL( |
|
42 STypeId::CreateSTypeId(TProviderInfoExt::EUid, TProviderInfoExt::ETypeId))).iProviderInfo; |
|
43 |
|
44 iConnProviderInfo.iInfo[0] = providerInfo.TierId().iUid; |
|
45 iConnProviderInfo.iInfo[1] = providerInfo.APId(); |
|
46 iConnProviderInfo.iInfo[2] = (TUint)providerInfo.Instance(); |
|
47 |
|
48 return XCommsDataObject::EComplete; |
|
49 } |
|
50 |