Re: [Evolution-hackers] how to know whether evolution is online



On Sat, 2005-01-29 at 22:51 +0000, Stéphane Konstantaropoulos wrote:
Hi there,

I 'd like to know whether evolution, as a whole, is online, so that I
make it publish to non-local uris or not.

Is there a quick way to find that out?

The Shell interface does not provide such a method and the Offline
interface has no factory.
Each component adds the offline interface to itself if it supports online/offline mode.  You get called when the system goes on/offline.  This is probably how you should do it.
I could check the offline property of the calendars to publish (with
e_source_get_property(source, "offline") ) but does that make sense for
local calendars?
No it wouldn't, sounds like a hack either way.
Better find out whether the Shell as a whole is online or not, but how?
Could we not add a method to the Shell idl interface?
I don't think so.



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