|
1 /* |
|
2 * Copyright (c) 2008 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IA_UPDATE_CONNECTION_METHOD_H |
|
21 #define IA_UPDATE_CONNECTION_METHOD_H |
|
22 |
|
23 |
|
24 /** |
|
25 * Connection method |
|
26 * |
|
27 * @since S60 v3.2 |
|
28 */ |
|
29 class TIAUpdateConnectionMethod |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Connection types |
|
35 */ |
|
36 enum TConnectionMethodType |
|
37 { |
|
38 /** |
|
39 * Always ask |
|
40 */ |
|
41 EConnectionMethodTypeAlwaysAsk = 0, |
|
42 |
|
43 /** |
|
44 * Destination aka SNAP |
|
45 */ |
|
46 EConnectionMethodTypeDestination, |
|
47 |
|
48 /** |
|
49 * Accesspoint |
|
50 */ |
|
51 EConnectionMethodTypeAccessPoint, |
|
52 |
|
53 /** |
|
54 * Device default |
|
55 */ |
|
56 EConnectionMethodTypeDefault, |
|
57 }; |
|
58 |
|
59 |
|
60 TIAUpdateConnectionMethod() : |
|
61 iId( 0 ), |
|
62 iType( EConnectionMethodTypeAlwaysAsk ) |
|
63 { |
|
64 } |
|
65 |
|
66 |
|
67 TIAUpdateConnectionMethod( TUint32 aId, TConnectionMethodType aType ) : |
|
68 iId( aId ), |
|
69 iType( aType ) |
|
70 { |
|
71 } |
|
72 |
|
73 |
|
74 /** |
|
75 * ID of the connection method. |
|
76 * |
|
77 * This is access point ID if iType is ENcdConnectionMethodTypeAccessPoint |
|
78 * and destination/SNAP ID if iType is ENcdConnectionMethodTypeDestination. |
|
79 * Otherwise this should be 0 |
|
80 */ |
|
81 TUint32 iId; |
|
82 |
|
83 |
|
84 /** |
|
85 * Type of the connection |
|
86 */ |
|
87 TConnectionMethodType iType; |
|
88 |
|
89 }; |
|
90 |
|
91 |
|
92 #endif // IA_UPDATE_CONNECTION_METHOD_H |