/usr/include/evolution-data-server/libebackend/e-source-registry-server.h is in libebackend1.2-dev 3.10.4-0ubuntu1.
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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | /*
* e-source-registry-server.h
*
* 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/>
*
*/
#if !defined (__LIBEBACKEND_H_INSIDE__) && !defined (LIBEBACKEND_COMPILATION)
#error "Only <libebackend/libebackend.h> should be included directly."
#endif
#ifndef E_SOURCE_REGISTRY_SERVER_H
#define E_SOURCE_REGISTRY_SERVER_H
#include <libedataserver/libedataserver.h>
#include <libebackend/e-authentication-session.h>
#include <libebackend/e-backend-enums.h>
#include <libebackend/e-data-factory.h>
#include <libebackend/e-collection-backend.h>
#include <libebackend/e-collection-backend-factory.h>
/* Standard GObject macros */
#define E_TYPE_SOURCE_REGISTRY_SERVER \
(e_source_registry_server_get_type ())
#define E_SOURCE_REGISTRY_SERVER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST \
((obj), E_TYPE_SOURCE_REGISTRY_SERVER, ESourceRegistryServer))
#define E_SOURCE_REGISTRY_SERVER_CLASS(cls) \
(G_TYPE_CHECK_CLASS_CAST \
((cls), E_TYPE_SOURCE_REGISTRY_SERVER, ESourceRegistryServerClass))
#define E_IS_SOURCE_REGISTRY_SERVER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE \
((obj), E_TYPE_SOURCE_REGISTRY_SERVER))
#define E_IS_SOURCE_REGISTRY_SERVER_CLASS(cls) \
(G_TYPE_CHECK_CLASS_TYPE \
((cls), E_TYPE_SOURCE_REGISTRY_SERVER))
#define E_SOURCE_REGISTRY_SERVER_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS \
((obj), E_TYPE_SOURCE_REGISTRY_SERVER, ESourceRegistryServerClass))
/**
* E_SOURCE_REGISTRY_SERVER_OBJECT_PATH:
*
* D-Bus object path of the data source server.
*
* Since: 3.6
**/
#define E_SOURCE_REGISTRY_SERVER_OBJECT_PATH \
"/org/gnome/evolution/dataserver/SourceManager"
/**
* EDS_REGISTRY_MODULES:
*
* This environment variable configures where the registry
* server loads it's backend modules from.
*/
#define EDS_REGISTRY_MODULES "EDS_REGISTRY_MODULES"
G_BEGIN_DECLS
typedef struct _ESourceRegistryServer ESourceRegistryServer;
typedef struct _ESourceRegistryServerClass ESourceRegistryServerClass;
typedef struct _ESourceRegistryServerPrivate ESourceRegistryServerPrivate;
/**
* ESourceRegistryServer:
*
* Contains only private data that should be read and manipulated using the
* functions below.
*
* Since: 3.6
**/
struct _ESourceRegistryServer {
EDataFactory parent;
ESourceRegistryServerPrivate *priv;
};
struct _ESourceRegistryServerClass {
EDataFactoryClass parent_class;
/* Signals */
void (*load_error) (ESourceRegistryServer *server,
GFile *file,
const GError *error);
void (*files_loaded) (ESourceRegistryServer *server);
void (*source_added) (ESourceRegistryServer *server,
ESource *source);
void (*source_removed) (ESourceRegistryServer *server,
ESource *source);
gboolean (*tweak_key_file) (ESourceRegistryServer *server,
GKeyFile *key_file,
const gchar *uid);
/* Reserved slots. */
gpointer reserved[16];
};
GType e_source_registry_server_get_type
(void) G_GNUC_CONST;
EDBusServer * e_source_registry_server_new (void);
void e_source_registry_server_add_source
(ESourceRegistryServer *server,
ESource *source);
void e_source_registry_server_remove_source
(ESourceRegistryServer *server,
ESource *source);
gboolean e_source_registry_server_load_directory
(ESourceRegistryServer *server,
const gchar *path,
ESourcePermissionFlags flags,
GError **error);
gboolean e_source_registry_server_load_resource
(ESourceRegistryServer *server,
GResource *resource,
const gchar *path,
ESourcePermissionFlags flags,
GError **error);
ESource * e_source_registry_server_load_file
(ESourceRegistryServer *server,
GFile *file,
ESourcePermissionFlags flags,
GError **error);
void e_source_registry_server_load_error
(ESourceRegistryServer *server,
GFile *file,
const GError *error);
ESource * e_source_registry_server_ref_source
(ESourceRegistryServer *server,
const gchar *uid);
GList * e_source_registry_server_list_sources
(ESourceRegistryServer *server,
const gchar *extension_name);
ESource * e_source_registry_server_find_extension
(ESourceRegistryServer *server,
ESource *source,
const gchar *extension_name);
ECollectionBackend *
e_source_registry_server_ref_backend
(ESourceRegistryServer *server,
ESource *source);
ECollectionBackendFactory *
e_source_registry_server_ref_backend_factory
(ESourceRegistryServer *server,
ESource *source);
EAuthenticationSession *
e_source_registry_server_new_auth_session
(ESourceRegistryServer *server,
ESourceAuthenticator *authenticator,
const gchar *source_uid);
gboolean e_source_registry_server_authenticate_sync
(ESourceRegistryServer *server,
EAuthenticationSession *session,
GCancellable *cancellable,
GError **error);
void e_source_registry_server_authenticate
(ESourceRegistryServer *server,
EAuthenticationSession *session,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean e_source_registry_server_authenticate_finish
(ESourceRegistryServer *server,
GAsyncResult *result,
GError **error);
#ifndef EDS_DISABLE_DEPRECATED
gboolean e_source_registry_server_load_all
(ESourceRegistryServer *server,
GError **error);
#endif /* EDS_DISABLE_DEPRECATED */
G_END_DECLS
#endif /* E_SOURCE_REGISTRY_SERVER_H */
|