root / src / template.h @ 1060
History | View | Annotate | Download (1.3 kB)
| 1 | 1 | hiro | /*
|
|---|---|---|---|
| 2 | 1 | hiro | * Sylpheed templates subsystem |
| 3 | 1 | hiro | * Copyright (C) 2001 Alexander Barinov |
| 4 | 1 | hiro | * Copyright (C) 2001-2004 Hiroyuki Yamamoto |
| 5 | 1 | hiro | * |
| 6 | 1 | hiro | * This program is free software; you can redistribute it and/or modify |
| 7 | 1 | hiro | * it under the terms of the GNU General Public License as published by |
| 8 | 1 | hiro | * the Free Software Foundation; either version 2 of the License, or |
| 9 | 1 | hiro | * (at your option) any later version. |
| 10 | 1 | hiro | * |
| 11 | 1 | hiro | * This program is distributed in the hope that it will be useful, |
| 12 | 1 | hiro | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | 1 | hiro | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | 1 | hiro | * GNU General Public License for more details. |
| 15 | 1 | hiro | * |
| 16 | 1 | hiro | * You should have received a copy of the GNU General Public License |
| 17 | 1 | hiro | * along with this program; if not, write to the Free Software |
| 18 | 1 | hiro | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 | 1 | hiro | */ |
| 20 | 1 | hiro | |
| 21 | 1 | hiro | #ifndef __TEMPLATE_H__
|
| 22 | 1 | hiro | #define __TEMPLATE_H__
|
| 23 | 1 | hiro | |
| 24 | 1 | hiro | #include <glib.h> |
| 25 | 1 | hiro | |
| 26 | 1 | hiro | typedef struct _Template Template; |
| 27 | 1 | hiro | |
| 28 | 1 | hiro | struct _Template {
|
| 29 | 1 | hiro | gchar *name; |
| 30 | 1 | hiro | gchar *to; |
| 31 | 1 | hiro | gchar *cc; |
| 32 | 1 | hiro | gchar *subject; |
| 33 | 1 | hiro | gchar *value; |
| 34 | 1 | hiro | }; |
| 35 | 1 | hiro | |
| 36 | 1 | hiro | void template_free (Template *tmpl);
|
| 37 | 1 | hiro | void template_clear_config (GSList *tmpl_list);
|
| 38 | 1 | hiro | |
| 39 | 1 | hiro | GSList *template_read_config (void);
|
| 40 | 1 | hiro | void template_write_config (GSList *tmpl_list);
|
| 41 | 1 | hiro | |
| 42 | 1 | hiro | GSList *template_get_config (void);
|
| 43 | 1 | hiro | void template_set_config (GSList *tmpl_list);
|
| 44 | 1 | hiro | |
| 45 | 1 | hiro | #endif /* __TEMPLATE_H__ */ |