equal
deleted
inserted
replaced
32 |
32 |
33 TCmmConnMethodItem( |
33 TCmmConnMethodItem( |
34 TUint32 aId, |
34 TUint32 aId, |
35 TUint32 aBearerType, |
35 TUint32 aBearerType, |
36 TUint aBearerPriority, |
36 TUint aBearerPriority, |
37 TUint aPriority ); |
37 TUint aPriority, |
|
38 TBool aIsVirtual = 0, |
|
39 TUint32 aLinkedIapId = 0, |
|
40 TUint32 aLinkedSnapId = 0 ); |
38 |
41 |
39 /** |
42 /** |
40 * A comparison function. Uses priority since items are in priority order. |
43 * A comparison function. Uses priority since items are in priority order. |
41 */ |
44 */ |
42 static TInt Compare( |
45 static TInt Compare( |
49 */ |
52 */ |
50 static TBool FindCompare( |
53 static TBool FindCompare( |
51 const TUint32* aKey, |
54 const TUint32* aKey, |
52 const TCmmConnMethodItem& aEntry ); |
55 const TCmmConnMethodItem& aEntry ); |
53 |
56 |
|
57 /** |
|
58 * Return ETrue if this connection method item represents a virtual |
|
59 * destination. |
|
60 */ |
|
61 TBool IsVirtual() const; |
|
62 |
|
63 /** |
|
64 * Return ETrue if this connection method item represents an embedded |
|
65 * destination. |
|
66 */ |
|
67 TBool IsEmbedded() const; |
|
68 |
|
69 /** |
|
70 * If this is a virtual IAP that points to an IAP, returns the ID of that |
|
71 * IAP, 0 otherwise. |
|
72 */ |
|
73 TUint32 LinkedIapId() const; |
|
74 |
|
75 /** |
|
76 * If this is a virtual IAP that points to a SNAP, returns the ID of that |
|
77 * SNAP, 0 otherwise. |
|
78 */ |
|
79 TUint32 LinkedSnapId() const; |
|
80 |
54 public: |
81 public: |
55 // Connection method ID. |
82 // Connection method ID. |
56 TUint32 iId; |
83 TUint32 iId; |
57 |
84 |
58 // Connection method bearer type. |
85 // Connection method bearer type. |
60 |
87 |
61 // Priority value of the bearer type. |
88 // Priority value of the bearer type. |
62 TUint iBearerPriority; |
89 TUint iBearerPriority; |
63 |
90 |
64 // Priority value in the CCDDataMobilitySelectionPolicy-record. Only used |
91 // Priority value in the CCDDataMobilitySelectionPolicy-record. Only used |
65 // for sorting purposes when building an array ofTCmmConnMethodItem-objects. |
92 // for sorting purposes when building an array of TCmmConnMethodItem-objects. |
66 TUint iPriority; |
93 TUint iPriority; |
|
94 |
|
95 private: |
|
96 // ETrue if this connection method is virtual. |
|
97 TBool iIsVirtual; |
|
98 |
|
99 // If not 0, this is a virtual IAP that points to IAP with ID iLinkedIapId. |
|
100 TUint32 iLinkedIapId; |
|
101 |
|
102 // If not 0, this is a virtual IAP that points to SNAP with ID iLinkedSnapId. |
|
103 TUint32 iLinkedSnapId; |
67 }; |
104 }; |
68 |
105 |
69 #endif // CMMCONNMETHODITEM_H_ |
106 #endif // CMMCONNMETHODITEM_H_ |
70 |
107 |
71 // End of file |
108 // End of file |