aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-store.h
blob: 27c1f9ac78459930fc1ddba19afc0054be4ff322 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 *
 *
 * Authors:
 *      Mike Kestner
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 */

#ifndef E_MEETING_STORE_H
#define E_MEETING_STORE_H

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

#include <e-util/e-util.h>

#include "e-meeting-attendee.h"

/* Standard GObject macros */
#define E_TYPE_MEETING_STORE \
    (e_meeting_store_get_type ())
#define E_MEETING_STORE(obj) \
    (G_TYPE_CHECK_INSTANCE_CAST \
    ((obj), E_TYPE_MEETING_STORE, EMeetingStore))
#define E_MEETING_STORE_CLASS(cls) \
    (G_TYPE_CHECK_CLASS_CAST \
    ((cls), E_TYPE_MEETING_STORE, EMeetingStoreClass))
#define E_IS_MEETING_STORE(obj) \
    (G_TYPE_CHECK_INSTANCE_TYPE \
    ((obj), E_TYPE_MEETING_STORE))
#define E_IS_MEETING_STORE_CLASS(cls) \
    (G_TYPE_CHECK_CLASS_TYPE \
    ((obj), E_TYPE_MEETING_STORE))
#define E_MEETING_STORE_GET_CLASS(obj) \
    (G_TYPE_INSTANCE_GET_CLASS \
    ((obj), E_TYPE_MEETING_STORE, EMeetingStoreClass))

G_BEGIN_DECLS

typedef struct _EMeetingStore EMeetingStore;
typedef struct _EMeetingStoreClass EMeetingStoreClass;
typedef struct _EMeetingStorePrivate EMeetingStorePrivate;

typedef enum {
    E_MEETING_STORE_ADDRESS_COL,
    E_MEETING_STORE_MEMBER_COL,
    E_MEETING_STORE_TYPE_COL,
    E_MEETING_STORE_ROLE_COL,
    E_MEETING_STORE_RSVP_COL,
    E_MEETING_STORE_DELTO_COL,
    E_MEETING_STORE_DELFROM_COL,
    E_MEETING_STORE_STATUS_COL,
    E_MEETING_STORE_CN_COL,
    E_MEETING_STORE_LANGUAGE_COL,
    E_MEETING_STORE_ATTENDEE_COL,
    E_MEETING_STORE_ATTENDEE_UNDERLINE_COL,
    E_MEETING_STORE_COLUMN_COUNT
} EMeetingStoreColumns;

struct _EMeetingStore {
    GtkListStore parent;
    EMeetingStorePrivate *priv;
};

struct _EMeetingStoreClass {
    GtkListStoreClass parent_class;
};

typedef gboolean (*EMeetingStoreRefreshCallback) (gpointer data);

GType       e_meeting_store_get_type    (void);
GObject *   e_meeting_store_new     (void);
void        e_meeting_store_set_value   (EMeetingStore *meeting_store,
                         gint row,
                         gint col,
                         const gchar *val);
ECalClient *    e_meeting_store_get_client  (EMeetingStore *meeting_store);
void        e_meeting_store_set_client  (EMeetingStore *meeting_store,
                         ECalClient *client);
gint        e_meeting_store_get_default_reminder_interval
                        (EMeetingStore *meeting_store);
void        e_meeting_store_set_default_reminder_interval
                        (EMeetingStore *meeting_store,
                         gint default_reminder_interval);
EDurationType   e_meeting_store_get_default_reminder_units
                        (EMeetingStore *meeting_store);
void        e_meeting_store_set_default_reminder_units
                        (EMeetingStore *meeting_store,
                         EDurationType default_reminder_units);
const gchar *   e_meeting_store_get_free_busy_template
                        (EMeetingStore *meeting_store);
void        e_meeting_store_set_free_busy_template
                        (EMeetingStore *meeting_store,
                         const gchar *free_busy_template);
icaltimezone *  e_meeting_store_get_timezone    (EMeetingStore *meeting_store);
void        e_meeting_store_set_timezone    (EMeetingStore *meeting_store,
                         icaltimezone *timezone);
gint        e_meeting_store_get_week_start_day
                        (EMeetingStore *meeting_store);
void        e_meeting_store_set_week_start_day
                        (EMeetingStore *meeting_store,
                         gint week_start_day);
void        e_meeting_store_add_attendee    (EMeetingStore *meeting_store,
                         EMeetingAttendee *attendee);
EMeetingAttendee *
        e_meeting_store_add_attendee_with_defaults
                        (EMeetingStore *meeting_store);
void        e_meeting_store_remove_attendee (EMeetingStore *meeting_store,
                         EMeetingAttendee *attendee);
void        e_meeting_store_remove_all_attendees
                        (EMeetingStore *meeting_store);
EMeetingAttendee *
        e_meeting_store_find_self   (EMeetingStore *meeting_store,
                         gint *row);
EMeetingAttendee *
        e_meeting_store_find_attendee   (EMeetingStore *meeting_store,
                         const gchar *address,
                         gint *row);
EMeetingAttendee *
        e_meeting_store_find_attendee_at_row
                        (EMeetingStore *meeting_store,
                         gint row);
GtkTreePath *   e_meeting_store_find_attendee_path
                        (EMeetingStore *meeting_store,
                         EMeetingAttendee *attendee);
gint        e_meeting_store_count_actual_attendees
                        (EMeetingStore *meeting_store);
const GPtrArray *
        e_meeting_store_get_attendees   (EMeetingStore *meeting_store);
void        e_meeting_store_refresh_all_busy_periods
                        (EMeetingStore *meeting_store,
                         EMeetingTime *start,
                         EMeetingTime *end,
                         EMeetingStoreRefreshCallback call_back,
                         gpointer data);
void        e_meeting_store_refresh_busy_periods
                        (EMeetingStore *meeting_store,
                         gint row,
                         EMeetingTime *start,
                         EMeetingTime *end,
                         EMeetingStoreRefreshCallback call_back,
                         gpointer data);

guint       e_meeting_store_get_num_queries (EMeetingStore *meeting_store);

G_END_DECLS

#endif