[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    determine if networkmgr is not in use / enabled
From:       johnmS2 <s2 () forceway ! com>
Date:       2011-05-12 19:03:22
Message-ID: 4DCC2EFA.90904 () forceway ! com
[Download RAW message or body]

Hi,

I need to know if user is NOT using network manager (because they are
using ifup type networking control for example).

Checking for 'unknown' networking status seems to work... is it correct?

Solid::Networking::Status net_status = Solid::Networking::status();
if ( net_status == Solid::Networking::Unknown )
{
	// assume network is up, non-user controlled networking
	...
}

-johnm
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic