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

List:       kde-panel-devel
Subject:    Re: Dataengnies
From:       Alex Merry <kde () randomguy3 ! me ! uk>
Date:       2008-08-27 16:27:01
Message-ID: 200808271727.01887.kde () randomguy3 ! me ! uk
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday 27 August 2008 17:22:36 Aaron J. Seigo wrote:
> On Wednesday 27 August 2008, Petri Damstén wrote:
> > This was new to me :-) Converted ExecutableEngine to use custom Container
> > (attached). One problem. exec is called in constructor to start process
> > for the first time. checkForUpdate is called when process finished but
> > seems that m_queued is false and dataUpdated is not called. On second
> > exec (first updateRequested signal, which comes after first timeout) it
> > works:
>
> you probably want to do:
>
> 	emit dataUpdated(objectName(), data());
>
> in ExecutableContainer::finished

Aaron:

I made up what the correct way to implement a subclass of DataContainer was at 
http://api.kde.org/4.x-api/kdebase-workspace-
apidocs/libs/plasma/html/classPlasma_1_1DataContainer.html, based on reading 
through what the code is, and I said that checkForUpdate() should be called, 
rather than emitting dataUpdated directly.

Can you check that page and see what's incorrect, please?

Alex


-- 
Proud KDE hacker: http://www.kde.org
Get KDE 4.1 - out now!
Arch Linux: perfect for geeks like me - http://www.archlinux.org
OpenSUSE: just works - http://www.opensuse.org


["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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