1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4 * JP Rosevear <jpr@ximian.com>
5 * Rodrigo Moya <rodrigo@ximian.com>
7 * Copyright 2003, Novell, Inc.
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU Lesser General Public
11 * License as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
24 #ifndef E_GW_SENDOPTIONS_H
25 #define E_GW_SENDOPTIONS_H
27 #include <libsoup/soup-soap-response.h>
31 #define E_TYPE_GW_SENDOPTIONS (e_gw_sendoptions_get_type ())
32 #define E_GW_SENDOPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_GW_SENDOPTIONS, EGwSendOptions))
33 #define E_GW_SENDOPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_GW_SENDOPTIONS, EGwSendOptionsClass))
34 #define E_IS_GW_SENDOPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_GW_SENDOPTIONS))
35 #define E_IS_GW_SENDOPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_GW_SENDOPTIONS))
37 typedef struct _EGwSendOptions EGwSendOptions;
38 typedef struct _EGwSendOptionsClass EGwSendOptionsClass;
39 typedef struct _EGwSendOptionsPrivate EGwSendOptionsPrivate;
41 struct _EGwSendOptions {
43 EGwSendOptionsPrivate *priv;
46 struct _EGwSendOptionsClass {
47 GObjectClass parent_class;
50 E_GW_PRIORITY_UNDEFINED,
52 E_GW_PRIORITY_STANDARD,
54 } EGwSendOptionsPriority;
58 E_GW_SECURITY_PROPRIETARY,
59 E_GW_SECURITY_CONFIDENTIAL,
61 E_GW_SECURITY_TOP_SECRET,
62 E_GW_SECURITY_FOR_YOUR_EYES_ONLY
63 } EGwSendOptionsSecurity;
66 E_GW_RETURN_NOTIFY_NONE,
67 E_GW_RETURN_NOTIFY_MAIL
68 } EGwSendOptionsReturnNotify;
72 E_GW_DELIVERED_OPENED = 2,
77 EGwSendOptionsPriority priority;
78 gboolean reply_enabled;
79 gboolean reply_convenient;
81 gboolean expiration_enabled;
83 gboolean delay_enabled;
85 } EGwSendOptionsGeneral;
88 gboolean tracking_enabled;
89 EGwTrackInfo track_when;
91 EGwSendOptionsReturnNotify opened;
92 EGwSendOptionsReturnNotify accepted;
93 EGwSendOptionsReturnNotify declined;
94 EGwSendOptionsReturnNotify completed;
95 } EGwSendOptionsStatusTracking;
97 GType e_gw_sendoptions_get_type (void);
98 EGwSendOptions* e_gw_sendoptions_new_from_soap_parameter (SoupSoapParameter *param);
99 EGwSendOptionsGeneral* e_gw_sendoptions_get_general_options (EGwSendOptions *opts);
100 EGwSendOptionsStatusTracking* e_gw_sendoptions_get_status_tracking_options (EGwSendOptions *opts, char *type);
101 gboolean e_gw_sendoptions_form_message_to_modify (SoupSoapMessage *msg, EGwSendOptions *n_opts, EGwSendOptions *o_opts);
102 EGwSendOptions * e_gw_sendoptions_new (void);