Re: Porting KDE3 NetworkManager to 0.9



On Mon, Oct 10, 2011 at 20:02, Lamarque V. Souza <lamarque kde org> wrote:
>
> You can also look at how we implemented it in Plasma NM (KDE 4.x):
> git clone git://anongit.kde.org/networkmanagement (branch nm09)
> This is our agent backends/NetworkManager/nmdbussecretagent.cpp.

Oh, thanks for this. I was looking for how KDE4 did it in hopes that I
could maybe backport some stuff.

>
>
> We added a watcher for NetworkManager service, everytime NM appears on DBus
> the watcher triggers the agent registration.
>

So, basically, it just idles in the panel waiting for NM?


>
> In Qt 4.x you create a QDBusInterface to NM's agent manager service and just
> call ->connection().registerObject(NM_DBUS_PATH_SECRET_AGENT, d->agent,
> QDBusConnection::ExportAllSlots). d->agent is the pointer to our dbus
> adaptor object, which is a child of our agent and connects the agent to the
> system bus.
>

*notes*

>
> Well, I have never programmed with qt3's dbus bindings :-/ I cannot help
> with this part.

That's fine, I think I have a much better idea now.
Thanks so much!

-- 
later daze. :: Robert Xu :: rxu.lincomlinux.org :: protocol.by/rxu


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]