fix CID 1596595: Resource leaks, and CID 1596594: (CHECKED_RETURN)
[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 #define PLUGIN_NAME "vCalendar"
30
31 typedef struct _VCalViewer VCalViewer;
32
33 void vcalendar_init(void);
34 void vcalendar_done(void);
35 void vcalviewer_display_event (VCalViewer *vcalviewer, VCalEvent *event);
36 gchar *vcalviewer_get_uid_from_mimeinfo(MimeInfo *mimeinfo);
37 void vcalviewer_reload(FolderItem *item);
38 void vcalendar_cancel_meeting(FolderItem *item, const gchar *uid);
39
40 #define vcal_passwd_set(id, pwd) \
41         passwd_store_set(PWS_PLUGIN, PLUGIN_NAME, id, pwd, FALSE)
42 #define vcal_passwd_get(id) \
43         passwd_store_get(PWS_PLUGIN, PLUGIN_NAME, id)
44
45 #endif