vCalendar plugin: use external libical
[claws.git] / src / plugins / vcalendar / vcalendar.h
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2007 Colin Leroy <colin@colino.net> and 
4  * the Claws Mail team
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __VCALENDAR_H__
22 #define __VCALENDAR_H__
23 #include <libical/ical.h>
24 #include "vcal_manager.h"
25 #include "prefs_account.h"
26 #include "procmime.h"
27 #include "folder.h"
28
29 typedef struct _VCalViewer VCalViewer;
30
31 void vcalendar_init(void);
32 void vcalendar_done(void);
33 void vcalviewer_display_event (VCalViewer *vcalviewer, VCalEvent *event);
34 gchar *vcalviewer_get_uid_from_mimeinfo(MimeInfo *mimeinfo);
35 void vcalviewer_reload(FolderItem *item);
36 void vcalendar_cancel_meeting(FolderItem *item, const gchar *uid);
37
38 #define vcal_passwd_set(id, pwd) \
39         passwd_store_set(PWS_PLUGIN, "vCalendar", id, pwd, FALSE)
40 #define vcal_passwd_get(id) \
41         passwd_store_get(PWS_PLUGIN, "vCalendar", id)
42
43 #endif