diff -r 3b0cec605979 -r c5b848e6c7d1 cmmanager/cmmgr/cmmserver/inc/cmmconnmethoditem.h --- a/cmmanager/cmmgr/cmmserver/inc/cmmconnmethoditem.h Thu May 27 14:35:19 2010 +0300 +++ b/cmmanager/cmmgr/cmmserver/inc/cmmconnmethoditem.h Thu Jun 10 16:00:16 2010 +0300 @@ -34,7 +34,10 @@ TUint32 aId, TUint32 aBearerType, TUint aBearerPriority, - TUint aPriority ); + TUint aPriority, + TBool aIsVirtual = 0, + TUint32 aLinkedIapId = 0, + TUint32 aLinkedSnapId = 0 ); /** * A comparison function. Uses priority since items are in priority order. @@ -51,6 +54,30 @@ const TUint32* aKey, const TCmmConnMethodItem& aEntry ); + /** + * Return ETrue if this connection method item represents a virtual + * destination. + */ + TBool IsVirtual() const; + + /** + * Return ETrue if this connection method item represents an embedded + * destination. + */ + TBool IsEmbedded() const; + + /** + * If this is a virtual IAP that points to an IAP, returns the ID of that + * IAP, 0 otherwise. + */ + TUint32 LinkedIapId() const; + + /** + * If this is a virtual IAP that points to a SNAP, returns the ID of that + * SNAP, 0 otherwise. + */ + TUint32 LinkedSnapId() const; + public: // Connection method ID. TUint32 iId; @@ -62,8 +89,18 @@ TUint iBearerPriority; // Priority value in the CCDDataMobilitySelectionPolicy-record. Only used - // for sorting purposes when building an array ofTCmmConnMethodItem-objects. + // for sorting purposes when building an array of TCmmConnMethodItem-objects. TUint iPriority; + +private: + // ETrue if this connection method is virtual. + TBool iIsVirtual; + + // If not 0, this is a virtual IAP that points to IAP with ID iLinkedIapId. + TUint32 iLinkedIapId; + + // If not 0, this is a virtual IAP that points to SNAP with ID iLinkedSnapId. + TUint32 iLinkedSnapId; }; #endif // CMMCONNMETHODITEM_H_