equal
deleted
inserted
replaced
|
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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #include <comms-infras/connectionqueryset.h> |
|
22 |
|
23 using namespace Meta; |
|
24 using namespace ESock; |
|
25 |
|
26 |
|
27 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(XTunnelConnQuerySet, CCommsDataObjectFactory::iUid, XTunnelConnQuerySet::iUid) |
|
28 REGISTER_ATTRIBUTE(XTunnelConnQuerySet, iLayerNum, TMeta<TInt>) |
|
29 REGISTER_ATTRIBUTE(XTunnelConnQuerySet, iQueries, TMetaObject<XTunnelConnQuerySet::RMetaDataQueryContainer>) |
|
30 END_ATTRIBUTE_TABLE() |
|
31 |
|
32 |
|
33 EXPORT_C XCommsDataObject::TProgressAction XTunnelConnQuerySet::DispatchL(TAny *aItfPtr, ESock::MPlatsecApiExt* aPlatsecItf) |
|
34 { |
|
35 if(EBottomIAPLayer == iLayerNum) |
|
36 { |
|
37 MQueryConnSettingsApiExt* interface = reinterpret_cast<MQueryConnSettingsApiExt*>(aItfPtr); |
|
38 TConnectionQueryIter iter = GetQueryIter(XConnectionQueryBase::ENotAnswered | XConnectionQueryBase::EAnswered); |
|
39 XConnectionQueryBase* query = iter++; |
|
40 while (query) |
|
41 { |
|
42 query->GetSetting(interface, aPlatsecItf); |
|
43 query = iter++; |
|
44 } |
|
45 return EContinue; |
|
46 } |
|
47 |
|
48 if(iLayerNum > 1) |
|
49 { |
|
50 --iLayerNum; |
|
51 return EContinue; |
|
52 } |
|
53 else |
|
54 { |
|
55 return XConnectionQuerySet::DispatchL(aItfPtr, aPlatsecItf); |
|
56 } |
|
57 } |
|
58 |
|
59 |