trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2012

Re: [trinity-devel] network manager backend

From: "Timothy Pearson" <kb9vqf@...>
Date: Tue, 4 Sep 2012 11:15:22 -0500
> On 4 September 2012 11:31, Timothy Pearson <kb9vqf@...>
> wrote:
>>> Hey Tim
>>>
>>> I've been looking through the commits lately. What is this work you
>>> are doing with NetworkManager? Looks to be rather large.
>>>
>>> Calvin
>>
>> Ah, you saw that, did you? ;-)
>>
>> As of right now TDE has a full C++ API interface for networking, and a
>> backend for that API which talks to the latest version of
>> NetworkManager.
>> In addition to being able to add/modify/delete/activate/deactivate
>> connections, all TDE applications can now request the current state of
>> the
>> network connection, which (once implemented in each application) would
>> allow applications such kmail to avoid checking for new messages while
>> the
>> host computer is offline.
>>
>> Tim
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> trinity-devel-unsubscribe@...
>> For additional commands, e-mail:
>> trinity-devel-help@...
>> Read list messages on the web archive:
>> http://trinity-devel.pearsoncomputing.net/
>> Please remember not to top-post:
>> http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>>
>
> and konversation from trying to connect.
>
> Does it send signals when connected/disconnected? for example i'd like
> konversation to reconnection when the connection becomes available.
> Will the be possible with this new API?

Yes:
TDEGlobalNetworkManager* nm = KGlobal::networkManager();
if (!(nm->backendStatus() &
TDENetworkGlobalManagerFlags::BackendUnavailable)) {
  // A network management backend is available
  connect(nm,
SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags,
TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)), this,
SLOT(theGlobalNetworkStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags,
TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)));
}

I could definitely use some assistance in updating konversation/kmail/etc
to incorporate this new functionality, so if you want to hack on those
applications please feel free!

Tim