/usr/include/evolution-data-server/ews/e-ews-folder.h is in evolution-ews 3.22.6-1.
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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Authors :
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 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 Lesser 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef E_EWS_FOLDER_H
#define E_EWS_FOLDER_H
#include <libedataserver/libedataserver.h>
#include "e-ews-enums.h"
#include "e-soap-message.h"
G_BEGIN_DECLS
#define E_TYPE_EWS_FOLDER (e_ews_folder_get_type ())
#define E_EWS_FOLDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_EWS_FOLDER, EEwsFolder))
#define E_EWS_FOLDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_EWS_FOLDER, EEwsFolderClass))
#define E_IS_EWS_FOLDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_EWS_FOLDER))
#define E_IS_EWS_FOLDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_EWS_FOLDER))
typedef struct _EEwsFolder EEwsFolder;
typedef struct _EEwsFolderClass EEwsFolderClass;
typedef struct _EEwsFolderPrivate EEwsFolderPrivate;
struct _EEwsFolder {
GObject parent;
EEwsFolderPrivate *priv;
};
struct _EEwsFolderClass {
GObjectClass parent_class;
};
typedef struct {
gchar *id;
gchar *change_key;
gboolean is_distinguished_id;
} EwsFolderId;
GType e_ews_folder_get_type (void);
const gchar * e_ews_folder_type_to_nick (EEwsFolderType folder_type);
EEwsFolderType e_ews_folder_type_from_nick (const gchar *folder_type_nick);
EEwsFolder * e_ews_folder_new_from_soap_parameter (ESoapParameter *param);
EEwsFolder * e_ews_folder_new_from_error (const GError *error);
gboolean e_ews_folder_is_error (EEwsFolder *folder);
const GError * e_ews_folder_get_error (const EEwsFolder *folder);
const gchar * e_ews_folder_get_name (const EEwsFolder *folder);
void e_ews_folder_set_name (EEwsFolder *folder, const gchar *new_name);
const gchar * e_ews_folder_get_escaped_name (const EEwsFolder *folder);
void e_ews_folder_set_parent_id (EEwsFolder *folder, EwsFolderId *fid);
const EwsFolderId *
e_ews_folder_get_parent_id (const EEwsFolder *folder);
const EwsFolderId *
e_ews_folder_get_id (const EEwsFolder *folder);
guint32 e_ews_folder_get_total_count (const EEwsFolder *folder);
guint32 e_ews_folder_get_unread_count (const EEwsFolder *folder);
guint32 e_ews_folder_get_child_count (const EEwsFolder *folder);
guint64 e_ews_folder_get_size (const EEwsFolder *folder);
gboolean e_ews_folder_get_is_writable (const EEwsFolder *folder);
void e_ews_folder_set_is_writable (EEwsFolder *folder, gboolean writable);
EEwsFolderType e_ews_folder_get_folder_type (const EEwsFolder *folder);
void e_ews_folder_set_folder_type (EEwsFolder *folder, EEwsFolderType folder_type);
gboolean e_ews_folder_get_foreign (const EEwsFolder *folder);
void e_ews_folder_set_foreign (EEwsFolder *folder, gboolean is_foreign);
EwsFolderId * e_ews_folder_id_new (const gchar *id,
const gchar *change_key,
gboolean is_distinguished_id);
void e_ews_folder_id_free (EwsFolderId *fid);
gboolean e_ews_folder_id_is_equal (const EwsFolderId *a,
const EwsFolderId *b,
gboolean check_change_key);
gchar * e_ews_folder_utils_escape_name (const gchar *folder_name);
gchar * e_ews_folder_utils_unescape_name (const gchar *escaped_folder_name);
typedef enum {
E_EWS_ESOURCE_FLAG_NONE = 0,
E_EWS_ESOURCE_FLAG_INCLUDE_SUBFOLDERS = 1 << 0,
E_EWS_ESOURCE_FLAG_OFFLINE_SYNC = 1 << 1,
E_EWS_ESOURCE_FLAG_PUBLIC_FOLDER = 1 << 2
} EEwsESourceFlags;
gchar * e_ews_folder_utils_pick_color_spec (gint move_by,
gboolean around_middle);
gboolean e_ews_folder_utils_populate_esource (ESource *source,
const GList *sources,
const gchar *master_hosturl,
const gchar *master_username,
EEwsFolder *folder,
EEwsESourceFlags flags,
gint color_seed,
GCancellable *cancellable,
GError **perror);
gboolean e_ews_folder_utils_add_as_esource (ESourceRegistry *pregistry,
const gchar *master_hosturl,
const gchar *master_username,
EEwsFolder *folder,
EEwsESourceFlags flags,
gint color_seed,
GCancellable *cancellable,
GError **perror);
gboolean e_ews_folder_utils_remove_as_esource (ESourceRegistry *pregistry,
const gchar *master_hosturl,
const gchar *master_username,
const gchar *folder_id,
GCancellable *cancellable,
GError **perror);
GList * e_ews_folder_utils_get_esources (ESourceRegistry *pregistry,
const gchar *master_hosturl,
const gchar *master_username,
GCancellable *cancellable,
GError **perror);
gboolean e_ews_folder_utils_is_subscribed_as_esource (const GList *esources,
const gchar *master_hosturl,
const gchar *master_username,
const gchar *folder_id);
GList * e_ews_folder_utils_filter_sources_for_account (const GList *esources,
const gchar *master_hosturl,
const gchar *master_username);
ESource * e_ews_folder_utils_get_source_for_folder (const GList *esources,
const gchar *master_hosturl,
const gchar *master_username,
const gchar *folder_id);
ESource * e_ews_folder_utils_get_master_source (const GList *esources,
const gchar *master_hosturl,
const gchar *master_username);
G_END_DECLS
#endif
|