On Tue, 2002-04-30 at 12:48, Bryan Clark wrote:
> Hi,
> 
> I'm interested in writing an addition to the calendar section, I'd like
> to be able to publish (or post) my free/busy information to a file (an
> iCal file .ifb?) or better yet a url.  Currently you can publish
> free/busy information however you can only email the file that is
> created; I'd like to take that file and export it where-ever the user
> wants it to go.
> 
> Is anyone working on this feature or something similar?  I don't want to
> do anything that someone else has already started.  Maybe I can
> contribute if so, I'd really like this for myself!
> 
> If not, are there any suggestions?  I was going to piggyback off of the
> Publish Free/Busy code that is already there, pretty much copying it
> until it calls for the email window to send the file; where I plan on a
> pop-up window to handle the file from there.  
>
in fact, it is very easy what you have to do:

cal_client_open_calendar
cal_client_get_free_busy
-> post F/B component. For this, you can use gnome-vfs, which is already
used in evolution, and which allows you to post the file to many
different places (http:, ftp:, smb:, etc)

> Additional support for
> this feature later on could go in the "other" tab of the calendar
> options.  Having the calendar automatically "posted" after changes to
> the calendar.(this was a quick request by Christian Borup on irc
> #evolution)
> 
yeah, that sounds a good idea. For this, it's also very easy. Just
connect to the "obj_removed" and "obj_updated" signals in the CalClient
class, and whenever your callbacks are called, there's a change in the
calendar.

In fact, this could be a daemon (like the alarm-notify) which listens to
changes in *any* calendar folder used by the user, and whenever a change
occurs, it re-generates the F/B info for that user.

cheers
-- 
Rodrigo Moya <[EMAIL PROTECTED]> - <[EMAIL PROTECTED]>
http://www.gnome-db.org/ - http://www.ximian.com/


_______________________________________________
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers

Reply via email to