/usr/include/evolution/calendar/gui/itip-utils.h is in evolution-dev 3.28.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* 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.
*
* 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 Lesser General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
*/
#ifndef ITIP_UTILS_H
#define ITIP_UTILS_H
#include <libical/ical.h>
#include <string.h>
#include <libecal/libecal.h>
#include <calendar/gui/e-cal-model.h>
G_BEGIN_DECLS
typedef enum {
E_CAL_COMPONENT_METHOD_NONE = -1,
E_CAL_COMPONENT_METHOD_PUBLISH,
E_CAL_COMPONENT_METHOD_REQUEST,
E_CAL_COMPONENT_METHOD_REPLY,
E_CAL_COMPONENT_METHOD_ADD,
E_CAL_COMPONENT_METHOD_CANCEL,
E_CAL_COMPONENT_METHOD_REFRESH,
E_CAL_COMPONENT_METHOD_COUNTER,
E_CAL_COMPONENT_METHOD_DECLINECOUNTER
} ECalComponentItipMethod;
struct CalMimeAttach {
gchar *filename;
gchar *content_type;
gchar *content_id;
gchar *description;
gchar *encoded_data;
gboolean disposition;
guint length;
};
void itip_cal_mime_attach_free (gpointer ptr); /* struct CalMimeAttach * */
gboolean itip_get_default_name_and_address
(ESourceRegistry *registry,
gchar **name,
gchar **address);
gchar ** itip_get_user_identities (ESourceRegistry *registry);
gchar * itip_get_fallback_identity (ESourceRegistry *registry);
gboolean itip_address_is_user (ESourceRegistry *registry,
const gchar *address);
gboolean itip_organizer_is_user (ESourceRegistry *registry,
ECalComponent *comp,
ECalClient *cal_client);
gboolean itip_organizer_is_user_ex (ESourceRegistry *registry,
ECalComponent *comp,
ECalClient *cal_client,
gboolean skip_cap_test);
gboolean itip_sentby_is_user (ESourceRegistry *registry,
ECalComponent *comp,
ECalClient *cal_client);
gboolean itip_has_any_attendees (ECalComponent *comp);
const gchar * itip_strip_mailto (const gchar *address);
gchar * itip_get_comp_attendee (ESourceRegistry *registry,
ECalComponent *comp,
ECalClient *cal_client);
gboolean itip_send_comp_sync (ESourceRegistry *registry,
ECalComponentItipMethod method,
ECalComponent *send_comp,
ECalClient *cal_client,
icalcomponent *zones,
GSList *attachments_list,
GSList *users,
gboolean strip_alarms,
gboolean only_new_attendees,
GCancellable *cancellable,
GError **error);
void itip_send_component_with_model (ECalModel *model,
ECalComponentItipMethod method,
ECalComponent *send_comp,
ECalClient *cal_client,
icalcomponent *zones,
GSList *attachments_list,
GSList *users,
gboolean strip_alarms,
gboolean only_new_attendees,
gboolean ensure_master_object);
void itip_send_component (ESourceRegistry *registry,
ECalComponentItipMethod method,
ECalComponent *send_comp,
ECalClient *cal_client,
icalcomponent *zones,
GSList *attachments_list,
GSList *users,
gboolean strip_alarms,
gboolean only_new_attendees,
gboolean ensure_master_object,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean itip_send_component_finish (GAsyncResult *result,
GError **error);
gboolean itip_publish_begin (ECalComponent *pub_comp,
ECalClient *cal_client,
gboolean cloned,
ECalComponent **clone);
gboolean reply_to_calendar_comp (ESourceRegistry *registry,
ECalComponentItipMethod method,
ECalComponent *send_comp,
ECalClient *cal_client,
gboolean reply_all,
icalcomponent *zones,
GSList *attachments_list);
gboolean is_icalcomp_valid (icalcomponent *icalcomp);
gboolean itip_component_has_recipients (ECalComponent *comp);
G_END_DECLS
#endif /* ITIP_UTILS_H */
|