|
1 /* |
|
2 * Copyright (c) 2009-2010 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 * Class representing any kind on connection method, including embedded |
|
16 * destination. Used for priority based ordering of connection methods inside |
|
17 * destinations. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef CMMCONNMETHODITEM_H_ |
|
23 #define CMMCONNMETHODITEM_H_ |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 NONSHARABLE_CLASS( TCmmConnMethodItem ) |
|
29 { |
|
30 public: |
|
31 TCmmConnMethodItem(); |
|
32 |
|
33 TCmmConnMethodItem( |
|
34 TUint32 aId, |
|
35 TUint32 aBearerType, |
|
36 TUint aBearerPriority, |
|
37 TUint aPriority ); |
|
38 |
|
39 /** |
|
40 * A comparison function. Uses priority since items are in priority order. |
|
41 */ |
|
42 static TInt Compare( |
|
43 const TCmmConnMethodItem& aFirst, |
|
44 const TCmmConnMethodItem& aSecond ); |
|
45 |
|
46 /** |
|
47 * A comparison function to find a specific item by ID. (Items are not |
|
48 * sorted by ID in the array.) |
|
49 */ |
|
50 static TBool FindCompare( |
|
51 const TUint32* aKey, |
|
52 const TCmmConnMethodItem& aEntry ); |
|
53 |
|
54 public: |
|
55 // Connection method ID. |
|
56 TUint32 iId; |
|
57 |
|
58 // Connection method bearer type. |
|
59 TUint32 iBearerType; |
|
60 |
|
61 // Priority value of the bearer type. |
|
62 TUint iBearerPriority; |
|
63 |
|
64 // Priority value in the CCDDataMobilitySelectionPolicy-record. Only used |
|
65 // for sorting purposes when building an array ofTCmmConnMethodItem-objects. |
|
66 TUint iPriority; |
|
67 }; |
|
68 |
|
69 #endif // CMMCONNMETHODITEM_H_ |
|
70 |
|
71 // End of file |