|
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 #ifndef PROVINFOQUERYSET_H |
|
22 #define PROVINFOQUERYSET_H |
|
23 |
|
24 #include <comms-infras/es_commsdataobject.h> |
|
25 #include <comms-infras/commsdataobjectfactory.h> |
|
26 #include <es_enum.h> |
|
27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
28 #include <es_enum_internal.h> |
|
29 #endif |
|
30 |
|
31 |
|
32 namespace ESock |
|
33 { |
|
34 |
|
35 |
|
36 const TUint KProviderInfoQuerySetUid = 0x10282FFF; |
|
37 |
|
38 |
|
39 /** |
|
40 */ |
|
41 class CProviderInfoQuerySet; |
|
42 class XProviderInfoQuerySet : public XCommsDataObject |
|
43 { |
|
44 friend class CCommsDataObjectFactory; |
|
45 friend class CCommsDataObject<CProviderInfoQuerySet, XProviderInfoQuerySet>; |
|
46 |
|
47 public: |
|
48 enum |
|
49 { |
|
50 iUid = KProviderInfoQuerySetUid |
|
51 }; |
|
52 |
|
53 static inline XProviderInfoQuerySet* NewL() |
|
54 { |
|
55 return static_cast<XProviderInfoQuerySet*>(Meta::SMetaDataECom::NewInstanceL(Meta::STypeId::CreateSTypeId(CCommsDataObjectFactory::iUid, KProviderInfoQuerySetUid))); |
|
56 } |
|
57 |
|
58 |
|
59 const TConnProviderInfo& ConnProviderInfo() |
|
60 { |
|
61 return iConnProviderInfo; |
|
62 } |
|
63 |
|
64 |
|
65 IMPORT_C virtual ~XProviderInfoQuerySet(); |
|
66 |
|
67 |
|
68 protected: |
|
69 // From XCommsDataObject |
|
70 IMPORT_C virtual TProgressAction DispatchL(TAny* aItfPtr, ESock::MPlatsecApiExt* aPlatsecItf); |
|
71 |
|
72 private: |
|
73 XProviderInfoQuerySet() |
|
74 : XCommsDataObject(XCommsDataObject::EGetSupported) |
|
75 { |
|
76 } |
|
77 |
|
78 private: |
|
79 EXPORT_DATA_VTABLE_AND_FN |
|
80 TConnProviderInfo iConnProviderInfo; |
|
81 }; |
|
82 |
|
83 |
|
84 class CProviderInfoQuerySet : public CCommsDataObject<CProviderInfoQuerySet, XProviderInfoQuerySet> |
|
85 { |
|
86 protected: |
|
87 inline CProviderInfoQuerySet(XProviderInfoQuerySet* aDataObject) |
|
88 : CCommsDataObject<CProviderInfoQuerySet, XProviderInfoQuerySet>(aDataObject) |
|
89 { |
|
90 } |
|
91 }; |
|
92 |
|
93 } // namespace ESock |
|
94 |
|
95 #endif |
|
96 // PROVINFOQUERYSET_H |
|
97 |