equal
deleted
inserted
replaced
1785 |
1785 |
1786 return wlan; |
1786 return wlan; |
1787 } |
1787 } |
1788 |
1788 |
1789 // ----------------------------------------------------------------------------- |
1789 // ----------------------------------------------------------------------------- |
|
1790 // CMPMCommsDatAccess::IsTunDriverIap |
|
1791 // ----------------------------------------------------------------------------- |
|
1792 // |
|
1793 TBool CMPMCommsDatAccess::IsTunDriverIap( TUint32 aIapId ) const |
|
1794 { |
|
1795 TBool isTunDriver = EFalse; |
|
1796 MPMLOGSTRING( "CMPMCommsDatAccess::IsTunDriverIap" ) |
|
1797 |
|
1798 CMDBSession* db = CMDBSession::NewLC( KCDVersion1_1 ); |
|
1799 CCDIAPRecord* record = LoadIapRecordLC( aIapId, db ); |
|
1800 |
|
1801 TBuf<KMaxTextLength> bearerTypeName( record->iBearerType.GetL() ); |
|
1802 TBuf<KMaxTextLength> serviceTypeName( record->iServiceType.GetL() ); |
|
1803 |
|
1804 if ( (bearerTypeName == TPtrC( KCDTypeNameVirtualBearer ) ) |
|
1805 && ( serviceTypeName == TPtrC( KCDTypeNameLANService ) ) ) |
|
1806 { |
|
1807 // TunDriver; |
|
1808 isTunDriver = ETrue; |
|
1809 } |
|
1810 |
|
1811 CleanupStack::PopAndDestroy( record ); |
|
1812 CleanupStack::PopAndDestroy( db ); |
|
1813 |
|
1814 return isTunDriver; |
|
1815 } |
|
1816 |
|
1817 // ----------------------------------------------------------------------------- |
1790 // CMPMCommsDatAccess::RemoveCategorisedIapsL |
1818 // CMPMCommsDatAccess::RemoveCategorisedIapsL |
1791 // ----------------------------------------------------------------------------- |
1819 // ----------------------------------------------------------------------------- |
1792 // |
1820 // |
1793 void CMPMCommsDatAccess::RemoveCategorisedIapsL( RAvailableIAPList& aIAPList ) |
1821 void CMPMCommsDatAccess::RemoveCategorisedIapsL( RAvailableIAPList& aIAPList ) |
1794 { |
1822 { |