Annotation of win32/gnome/gmime-x.x.x/gmime-disposition.h, revision 1.1
1.1 ! paf 1: /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
! 2: /*
! 3: * Authors: Jeffrey Stedfast <fejj@ximian.com>
! 4: *
! 5: * Copyright 2001 Ximian, Inc. (www.ximian.com)
! 6: *
! 7: * This program is free software; you can redistribute it and/or modify
! 8: * it under the terms of the GNU General Public License as published by
! 9: * the Free Software Foundation; either version 2 of the License, or
! 10: * (at your option) any later version.
! 11: *
! 12: * This program is distributed in the hope that it will be useful,
! 13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
! 14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 15: * GNU General Public License for more details.
! 16: *
! 17: * You should have received a copy of the GNU General Public License
! 18: * along with this program; if not, write to the Free Software
! 19: * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
! 20: *
! 21: */
! 22:
! 23:
! 24: #ifndef __GMIME_DISPOSITION_H__
! 25: #define __GMIME_DISPOSITION_H__
! 26:
! 27: #ifdef __cplusplus
! 28: extern "C" {
! 29: //#pragma }
! 30: #endif /* __cplusplus */
! 31:
! 32: #include <glib.h>
! 33: #include "gmime-param.h"
! 34:
! 35:
! 36: /**
! 37: * GMIME_DISPOSITION_ATTACHMENT:
! 38: *
! 39: * Standard attachment disposition.
! 40: **/
! 41: #define GMIME_DISPOSITION_ATTACHMENT "attachment"
! 42:
! 43:
! 44: /**
! 45: * GMIME_DISPOSITION_INLINE:
! 46: *
! 47: * Standard inline disposition.
! 48: **/
! 49: #define GMIME_DISPOSITION_INLINE "inline"
! 50:
! 51:
! 52: struct _GMimeDisposition {
! 53: char *disposition;
! 54: GMimeParam *params;
! 55: GHashTable *param_hash;
! 56: };
! 57:
! 58: typedef struct _GMimeDisposition GMimeDisposition;
! 59:
! 60: GMimeDisposition *g_mime_disposition_new (const char *disposition);
! 61:
! 62: void g_mime_disposition_destroy (GMimeDisposition *disposition);
! 63:
! 64: void g_mime_disposition_set (GMimeDisposition *disposition, const char *value);
! 65: const char *g_mime_disposition_get (GMimeDisposition *disposition);
! 66:
! 67: void g_mime_disposition_add_parameter (GMimeDisposition *disposition, const char *attribute,
! 68: const char *value);
! 69: const char *g_mime_disposition_get_parameter (GMimeDisposition *disposition, const char *attribute);
! 70:
! 71: char *g_mime_disposition_header (GMimeDisposition *disposition, gboolean fold);
! 72:
! 73: #ifdef __cplusplus
! 74: }
! 75: #endif /* __cplusplus */
! 76:
! 77: #endif /* __GMIME_DISPOSITION_H__ */
E-mail: