|
1 /** |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Header file for the Default SubConnection Flow |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file itfinfoConfigExt.h |
|
24 */ |
|
25 |
|
26 #ifndef ITFINFOCONFIGEXT_H_INCLUDED_ |
|
27 #define ITFINFOCONFIGEXT_H_INCLUDED_ |
|
28 |
|
29 #include <e32base.h> |
|
30 #include <e32std.h> |
|
31 #include <comms-infras/metadata.h> |
|
32 #include <es_enum.h> |
|
33 #include <nifman.h> |
|
34 #include <in_iface.h> |
|
35 #include <elements/rworkerlock.h> |
|
36 |
|
37 const TUint KIpProtoConfigExtUid = 0x102732E7; |
|
38 |
|
39 enum TIpProtoConfigExtTypes |
|
40 { |
|
41 EItfInfoConfigExt = 0, |
|
42 EInterfaceName, |
|
43 }; |
|
44 |
|
45 class TItfInfoConfigExt : public Meta::SMetaData |
|
46 /** |
|
47 |
|
48 @internalTechnology |
|
49 @released Since 9.4 |
|
50 */ |
|
51 { |
|
52 public: |
|
53 enum {ETypeId = EItfInfoConfigExt, EUid = KIpProtoConfigExtUid, EMaxProtocolListSize = 50 }; |
|
54 |
|
55 explicit TItfInfoConfigExt(const TConnectionInfo& aConnectionInfo) |
|
56 : iConnectionInfo(aConnectionInfo) |
|
57 { |
|
58 } |
|
59 |
|
60 DATA_VTABLE |
|
61 TConnectionInfo iConnectionInfo; |
|
62 TBuf8<EMaxProtocolListSize> iProtocolList; |
|
63 }; |
|
64 |
|
65 class XInterfaceNames : public Meta::SMetaData |
|
66 { |
|
67 public: |
|
68 static XInterfaceNames* NewL(); |
|
69 |
|
70 ~XInterfaceNames(); |
|
71 |
|
72 TInt InterfaceName(TUint aIndex, TInterfaceName& aInterfaceName); |
|
73 void AddInterfaceNameL(const TAny* aOwner, const TInterfaceName& aInterfaceName); |
|
74 void RemoveInterfaceName(const TAny* aOwner); |
|
75 |
|
76 private: |
|
77 XInterfaceNames() { } |
|
78 void ConstructL(); |
|
79 |
|
80 private: |
|
81 struct TNameAndOwner |
|
82 { |
|
83 TNameAndOwner(const TAny* aOwner, const TInterfaceName& aInterfaceName) |
|
84 :iOwner(aOwner), |
|
85 iName(aInterfaceName) |
|
86 {} |
|
87 |
|
88 const TAny* iOwner; |
|
89 const TInterfaceName iName; |
|
90 }; |
|
91 RArray<TNameAndOwner> iInterfaceNames; |
|
92 RWorkerLock iLock; |
|
93 |
|
94 public: |
|
95 DATA_VTABLE |
|
96 }; |
|
97 |
|
98 #endif |
|
99 |
|
100 |