aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-send-options.h
blob: 8f50ab954c32b0df68f9dfc1f12b6fd2e2b866c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
 /* Evolution exchange send options
 * Copyright (C) 2004 Novell, Inc.
 *
 * Authors: Raghavendran R <raghavguru7@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, MA 02110-1301.
 */

#ifndef __EXCHANGE_SENDOPTIONS_DIALOG_H__
#define __EXCHANGE_SENDOPTIONS_DIALOG_H__

#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>



#define EXCHANGE_TYPE_SENDOPTIONS_DIALOG       (exchange_sendoptions_dialog_get_type ())
#define EXCHANGE_SENDOPTIONS_DIALOG(obj)       (GTK_CHECK_CAST ((obj), EXCHANGE_TYPE_SENDOPTIONS_DIALOG, ExchangeSendOptionsDialog))
#define EXCHANGE_SENDOPTIONS_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EXCHANGE_TYPE_SENDOPTIONS_DIALOG, ExchangeSendOptionsDialogClass))
#define EXCHANGE_IS_SENDOPTIONS_DIALOG(obj)    (GTK_CHECK_TYPE ((obj), EXCHANGE_TYPE_SENDOPTIONS_DIALOG))
#define EXCHANGE_IS_SENDOPTIONS_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), EXCHANGE_TYPE_SENDOPTIONS_DIALOG))

typedef struct _ExchangeSendOptionsDialog       ExchangeSendOptionsDialog;
typedef struct _ExchangeSendOptionsDialogClass      ExchangeSendOptionsDialogClass;
typedef struct _ExchangeSendOptionsDialogPrivate    ExchangeSendOptionsDialogPrivate;

typedef enum {
    E_IMP_NORMAL,
    E_IMP_HIGH,
    E_IMP_LOW
} ExchangeSendOptionsImp;

typedef enum {
    E_SENSITIVITY_NORMAL,
    E_SENSITIVITY_PERSONAL,
    E_SENSITIVITY_PRIVATE,
    E_SENSITIVITY_CONFIDENTIAL
} ExchangeSendOptionsSensitivity;

/* We require the delegate_email and delegate_name to store the address of the delegator selected into
   the destination store.
*/
typedef struct {
    ExchangeSendOptionsImp importance;
    ExchangeSendOptionsSensitivity sensitivity;
    gboolean send_as_del_enabled;
    gboolean delivery_enabled;
    gboolean read_enabled;
    const char *delegate_name;
    const char *delegate_email;
    const char *delegate_address;
} ExchangeSendOptions ;

struct _ExchangeSendOptionsDialog {
    GObject object;

    ExchangeSendOptions *options;
    /* Private data */
    ExchangeSendOptionsDialogPrivate *priv;
};


struct _ExchangeSendOptionsDialogClass {
    GObjectClass parent_class;
    void (* esod_response) (ExchangeSendOptionsDialog *esd, gint status);
};

GType  exchange_sendoptions_dialog_get_type     (void);
ExchangeSendOptionsDialog *exchange_sendoptions_dialog_new (void);
gboolean exchange_sendoptions_dialog_run (ExchangeSendOptionsDialog *sod, GtkWidget *parent);
#endif