[Psi-devel] A couple of SystemWatch related things
remko at el-tramo.be
Mon Jun 25 02:22:54 PDT 2007
> Nice work getting this working again, guys. I wonder why it ever worked
> without the winEventFilter stuff. Maybe it's a QT3 vs. QT4 thing.
If it ever worked, it has to be a Qt4.x->Qt4.y thing.
> It was mentioned when this stuff was done originally that we might want to
> prevent going to sleep when a file transfer was in progress. I recently
> discovered the SetThreadExecutionState API, which is the recommended way of
> preventing the system idling to sleep (I think the *only* way on Vista). The
> idea is that a program calls this API periodically during a
> non-interruptible operation to reset the system idle timer.
We probably want an 'allowSleep()' in systemwatch which does the right
thing for every platform. On OS X, you prevent sleeping by reacting on
the 'sleep' request. On windows, it would trigger a periodical call of
As for the UI thing, we indeed want something like that in the future.
More information about the psi-devel