ESource *source;
};
-static void return_error_and_list (EGdbusBook *gdbus_object, void (* complete_func) (EGdbusBook *object, GDBusMethodInvocation *invocation, const gchar* const *out_array), guint32 opid, GError *error, const gchar *error_fmt, GList *list, gboolean free_data);
+static void return_error_and_list (EGdbusBook *gdbus_object, void (* complete_func) (EGdbusBook *object, GDBusMethodInvocation *invocation, const gchar * const *out_array), guint32 opid, GError *error, const gchar *error_fmt, GList *list, gboolean free_data);
static void data_book_return_error (GDBusMethodInvocation *invocation, const GError *error, const gchar *error_fmt);
static GThreadPool *op_pool = NULL;
}
static void
-return_error_and_list (EGdbusBook *gdbus_object, void (* complete_func) (EGdbusBook *object, GDBusMethodInvocation *invocation, const gchar* const *out_array), guint32 opid, GError *error, const gchar *error_fmt, GList *list, gboolean free_data)
+return_error_and_list (EGdbusBook *gdbus_object, void (* complete_func) (EGdbusBook *object, GDBusMethodInvocation *invocation, const gchar * const *out_array), guint32 opid, GError *error, const gchar *error_fmt, GList *list, gboolean free_data)
{
GDBusMethodInvocation *invocation = opid_fetch (opid);
* emitting the corresponding GType signals. For better type-safety, you can use,
* the provided e_gdbus_book_emit_*() helpers.
*
- * For property changes, #GObject::notify signal emissions on exported objects
+ * For property changes, #GObject::notify signal emissions on exported objects
* will be intercepted and queued. In an idle handler, the queued notifications
* are processed and a single <literal>PropertiesChanged</literal> signal (on the
* <literal>org.freedesktop.DBus.Properties</literal> interface) will be emitted
typedef EGdbusBookIface EGdbusBookInterface;
G_DEFINE_INTERFACE (EGdbusBook, e_gdbus_book, G_TYPE_OBJECT);
-
enum
{
_0_SIGNAL,
static guint signals[__LAST_SIGNAL] = {0};
-
enum
{
PROP_0,
static GHashTable *_property_gname_to_name = NULL;
static GHashTable *_property_name_to_gname = NULL;
-
static guint
lookup_method_id_from_method_name (const gchar *method_name)
{
(gpointer) "auth_required",
NULL);
-
/* GObject signals definitions for D-Bus methods: */
/**
* EGdbusBook::handle-open:
/* GObject property definitions for D-Bus properties: */
}
-
/* C Bindings for properties */
/**
return _ret;
}
-
/**
* e_gdbus_book_call_remove:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_contact:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_contact_list:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_authenticate_user:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_add_contact:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_remove_contacts:
* @proxy: A #EGdbusBook.
*/
void e_gdbus_book_call_remove_contacts (
EGdbusBook *proxy,
- const gchar* const *in_list,
+ const gchar * const *in_list,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
*/
gboolean e_gdbus_book_call_remove_contacts_sync (
EGdbusBook *proxy,
- const gchar* const *in_list,
+ const gchar * const *in_list,
GCancellable *cancellable,
GError **error)
{
return _ret;
}
-
/**
* e_gdbus_book_call_modify_contact:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_static_capabilities:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_required_fields:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_supported_fields:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_supported_auth_methods:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_book_view:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_get_changes:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_cancel_operation:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_call_close:
* @proxy: A #EGdbusBook.
return _ret;
}
-
/**
* e_gdbus_book_complete_open:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_complete_remove:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_complete_get_contact:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_get_contact_list:
* @object: A #EGdbusBook.
void e_gdbus_book_complete_get_contact_list (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_vcards)
+ const gchar * const *out_vcards)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_authenticate_user:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_complete_add_contact:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_remove_contacts:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_complete_modify_contact:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_complete_get_static_capabilities:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_get_required_fields:
* @object: A #EGdbusBook.
void e_gdbus_book_complete_get_required_fields (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_fields)
+ const gchar * const *out_fields)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_get_supported_fields:
* @object: A #EGdbusBook.
void e_gdbus_book_complete_get_supported_fields (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_fields)
+ const gchar * const *out_fields)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_get_supported_auth_methods:
* @object: A #EGdbusBook.
void e_gdbus_book_complete_get_supported_auth_methods (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_auth_methods)
+ const gchar * const *out_auth_methods)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_get_book_view:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_get_changes:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_book_complete_cancel_operation:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_complete_close:
* @object: A #EGdbusBook.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_emit_writable:
* @object: A #EGdbusBook.
g_signal_emit (object, signals[__WRITABLE_SIGNAL], 0, arg_value);
}
-
/**
* e_gdbus_book_emit_connection:
* @object: A #EGdbusBook.
g_signal_emit (object, signals[__CONNECTION_SIGNAL], 0, arg_connected);
}
-
/**
* e_gdbus_book_emit_auth_required:
* @object: A #EGdbusBook.
g_signal_emit (object, signals[__AUTH_REQUIRED_SIGNAL], 0);
}
-
static const GDBusArgInfo e_gdbus_book_signal_writable_value =
{
-1,
{
EGdbusBook *object = E_GDBUS_BOOK (user_data);
gboolean handled;
- const gchar* const *arg_list;
+ const gchar * const *arg_list;
g_variant_get (parameters,
"(^a&s)",
&arg_list);
return &_e_gdbus_book_interface_info;
}
-
/* ---------------------------------------------------------------------- */
static void proxy_iface_init (EGdbusBookIface *iface);
static void
g_properties_changed (GDBusProxy *proxy,
GVariant *changed_properties,
- const gchar* const *invalidated_properties)
+ const gchar * const *invalidated_properties)
{
guint n;
const gchar *key;
{
}
-
/**
* e_gdbus_book_proxy_new:
* @connection: A #GDBusConnection.
return NULL;
}
-
/**
* e_gdbus_book_proxy_new_for_bus:
* @bus_type: A #GBusType.
return NULL;
}
-
/* ---------------------------------------------------------------------- */
struct _EGdbusBookStubPrivate
EGdbusBook *e_gdbus_book_stub_new (void);
-
guint e_gdbus_book_register_object (EGdbusBook *object,
GDBusConnection *connection,
const gchar *object_path,
void e_gdbus_book_drain_notify (EGdbusBook *object);
-
const GDBusInterfaceInfo *e_gdbus_book_interface_info (void) G_GNUC_CONST;
struct _EGdbusBookIface
gboolean (*handle_remove_contacts) (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *in_list);
+ const gchar * const *in_list);
gboolean (*handle_modify_contact) (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
/* C Bindings for properties */
-
/* D-Bus Methods */
void e_gdbus_book_call_open (
EGdbusBook *proxy,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_remove (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_contact (
EGdbusBook *proxy,
const gchar *in_uid,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_contact_list (
EGdbusBook *proxy,
const gchar *in_query,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_authenticate_user (
EGdbusBook *proxy,
const gchar *in_user,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_add_contact (
EGdbusBook *proxy,
const gchar *in_vcard,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_remove_contacts (
EGdbusBook *proxy,
- const gchar* const *in_list,
+ const gchar * const *in_list,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean e_gdbus_book_call_remove_contacts_sync (
EGdbusBook *proxy,
- const gchar* const *in_list,
+ const gchar * const *in_list,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_modify_contact (
EGdbusBook *proxy,
const gchar *in_vcard,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_static_capabilities (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_required_fields (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_supported_fields (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_supported_auth_methods (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_book_view (
EGdbusBook *proxy,
const gchar *in_query,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_get_changes (
EGdbusBook *proxy,
const gchar *in_change_id,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_cancel_operation (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_call_close (
EGdbusBook *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
-
/* D-Bus Methods Completion Helpers */
void e_gdbus_book_complete_open (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_complete_remove (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_complete_get_contact (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
const gchar *out_vcard);
-
void e_gdbus_book_complete_get_contact_list (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_vcards);
-
+ const gchar * const *out_vcards);
void e_gdbus_book_complete_authenticate_user (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_complete_add_contact (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
const gchar *out_uid);
-
void e_gdbus_book_complete_remove_contacts (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_complete_modify_contact (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_complete_get_static_capabilities (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
const gchar *out_capabilities);
-
void e_gdbus_book_complete_get_required_fields (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_fields);
-
+ const gchar * const *out_fields);
void e_gdbus_book_complete_get_supported_fields (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_fields);
-
+ const gchar * const *out_fields);
void e_gdbus_book_complete_get_supported_auth_methods (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_auth_methods);
-
+ const gchar * const *out_auth_methods);
void e_gdbus_book_complete_get_book_view (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
const gchar *out_view);
-
void e_gdbus_book_complete_get_changes (
EGdbusBook *object,
GDBusMethodInvocation *invocation,
GVariant *out_changes);
-
void e_gdbus_book_complete_cancel_operation (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_complete_close (
EGdbusBook *object,
GDBusMethodInvocation *invocation);
-
-
/* D-Bus Signal Emission Helpers */
void e_gdbus_book_emit_writable (
EGdbusBook *object,
gboolean arg_value);
-
void e_gdbus_book_emit_connection (
EGdbusBook *object,
gboolean arg_connected);
-
void e_gdbus_book_emit_auth_required (
EGdbusBook *object);
-
-
G_END_DECLS
#endif /* __E_GDBUS_E_GDBUS_BOOK_H__ */
* emitting the corresponding GType signals. For better type-safety, you can use,
* the provided e_gdbus_book_factory_emit_*() helpers.
*
- * For property changes, #GObject::notify signal emissions on exported objects
+ * For property changes, #GObject::notify signal emissions on exported objects
* will be intercepted and queued. In an idle handler, the queued notifications
* are processed and a single <literal>PropertiesChanged</literal> signal (on the
* <literal>org.freedesktop.DBus.Properties</literal> interface) will be emitted
typedef EGdbusBookFactoryIface EGdbusBookFactoryInterface;
G_DEFINE_INTERFACE (EGdbusBookFactory, e_gdbus_book_factory, G_TYPE_OBJECT);
-
enum
{
_0_SIGNAL,
static guint signals[__LAST_SIGNAL] = {0};
-
enum
{
PROP_0,
static GHashTable *_property_gname_to_name = NULL;
static GHashTable *_property_name_to_gname = NULL;
-
static guint
lookup_method_id_from_method_name (const gchar *method_name)
{
/* GObject property definitions for D-Bus properties: */
}
-
/* C Bindings for properties */
/**
return _ret;
}
-
/**
* e_gdbus_book_factory_complete_get_book:
* @object: A #EGdbusBookFactory.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
static const GDBusArgInfo e_gdbus_book_factory_method_in_getBook_source =
{
-1,
return &_e_gdbus_book_factory_interface_info;
}
-
/* ---------------------------------------------------------------------- */
static void proxy_iface_init (EGdbusBookFactoryIface *iface);
static void
g_properties_changed (GDBusProxy *proxy,
GVariant *changed_properties,
- const gchar* const *invalidated_properties)
+ const gchar * const *invalidated_properties)
{
guint n;
const gchar *key;
{
}
-
/**
* e_gdbus_book_factory_proxy_new:
* @connection: A #GDBusConnection.
return NULL;
}
-
/**
* e_gdbus_book_factory_proxy_new_for_bus:
* @bus_type: A #GBusType.
return NULL;
}
-
/* ---------------------------------------------------------------------- */
struct _EGdbusBookFactoryStubPrivate
EGdbusBookFactory *e_gdbus_book_factory_stub_new (void);
-
guint e_gdbus_book_factory_register_object (EGdbusBookFactory *object,
GDBusConnection *connection,
const gchar *object_path,
void e_gdbus_book_factory_drain_notify (EGdbusBookFactory *object);
-
const GDBusInterfaceInfo *e_gdbus_book_factory_interface_info (void) G_GNUC_CONST;
struct _EGdbusBookFactoryIface
/* C Bindings for properties */
-
/* D-Bus Methods */
void e_gdbus_book_factory_call_get_book (
EGdbusBookFactory *proxy,
GCancellable *cancellable,
GError **error);
-
-
/* D-Bus Methods Completion Helpers */
void e_gdbus_book_factory_complete_get_book (
EGdbusBookFactory *object,
GDBusMethodInvocation *invocation,
const gchar *out_path);
-
-
/* D-Bus Signal Emission Helpers */
G_END_DECLS
* emitting the corresponding GType signals. For better type-safety, you can use,
* the provided e_gdbus_book_view_emit_*() helpers.
*
- * For property changes, #GObject::notify signal emissions on exported objects
+ * For property changes, #GObject::notify signal emissions on exported objects
* will be intercepted and queued. In an idle handler, the queued notifications
* are processed and a single <literal>PropertiesChanged</literal> signal (on the
* <literal>org.freedesktop.DBus.Properties</literal> interface) will be emitted
typedef EGdbusBookViewIface EGdbusBookViewInterface;
G_DEFINE_INTERFACE (EGdbusBookView, e_gdbus_book_view, G_TYPE_OBJECT);
-
enum
{
_0_SIGNAL,
static guint signals[__LAST_SIGNAL] = {0};
-
enum
{
PROP_0,
static GHashTable *_property_gname_to_name = NULL;
static GHashTable *_property_name_to_gname = NULL;
-
static guint
lookup_method_id_from_method_name (const gchar *method_name)
{
(gpointer) "Complete",
NULL);
-
/* GObject signals definitions for D-Bus methods: */
/**
* EGdbusBookView::handle-start:
/* GObject property definitions for D-Bus properties: */
}
-
/* C Bindings for properties */
/**
return _ret;
}
-
/**
* e_gdbus_book_view_call_stop:
* @proxy: A #EGdbusBookView.
return _ret;
}
-
/**
* e_gdbus_book_view_call_dispose:
* @proxy: A #EGdbusBookView.
return _ret;
}
-
/**
* e_gdbus_book_view_complete_start:
* @object: A #EGdbusBookView.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_view_complete_stop:
* @object: A #EGdbusBookView.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_view_complete_dispose:
* @object: A #EGdbusBookView.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_book_view_emit_contacts_added:
* @object: A #EGdbusBookView.
*/
void e_gdbus_book_view_emit_contacts_added (
EGdbusBookView *object,
- const gchar* const *arg_vcards)
+ const gchar * const *arg_vcards)
{
g_signal_emit (object, signals[__CONTACTS_ADDED_SIGNAL], 0, arg_vcards);
}
-
/**
* e_gdbus_book_view_emit_contacts_changed:
* @object: A #EGdbusBookView.
*/
void e_gdbus_book_view_emit_contacts_changed (
EGdbusBookView *object,
- const gchar* const *arg_vcards)
+ const gchar * const *arg_vcards)
{
g_signal_emit (object, signals[__CONTACTS_CHANGED_SIGNAL], 0, arg_vcards);
}
-
/**
* e_gdbus_book_view_emit_contacts_removed:
* @object: A #EGdbusBookView.
*/
void e_gdbus_book_view_emit_contacts_removed (
EGdbusBookView *object,
- const gchar* const *arg_ids)
+ const gchar * const *arg_ids)
{
g_signal_emit (object, signals[__CONTACTS_REMOVED_SIGNAL], 0, arg_ids);
}
-
/**
* e_gdbus_book_view_emit_status_message:
* @object: A #EGdbusBookView.
g_signal_emit (object, signals[__STATUS_MESSAGE_SIGNAL], 0, arg_message);
}
-
/**
* e_gdbus_book_view_emit_complete:
* @object: A #EGdbusBookView.
g_signal_emit (object, signals[__COMPLETE_SIGNAL], 0, arg_status, arg_message);
}
-
static const GDBusArgInfo e_gdbus_book_view_signal_ContactsAdded_vcards =
{
-1,
return &_e_gdbus_book_view_interface_info;
}
-
/* ---------------------------------------------------------------------- */
static void proxy_iface_init (EGdbusBookViewIface *iface);
{
case __CONTACTS_ADDED_SIGNAL:
{
- const gchar* const *arg_vcards;
+ const gchar * const *arg_vcards;
g_variant_get (parameters,
"(^a&s)",
&arg_vcards);
case __CONTACTS_CHANGED_SIGNAL:
{
- const gchar* const *arg_vcards;
+ const gchar * const *arg_vcards;
g_variant_get (parameters,
"(^a&s)",
&arg_vcards);
case __CONTACTS_REMOVED_SIGNAL:
{
- const gchar* const *arg_ids;
+ const gchar * const *arg_ids;
g_variant_get (parameters,
"(^a&s)",
&arg_ids);
static void
g_properties_changed (GDBusProxy *proxy,
GVariant *changed_properties,
- const gchar* const *invalidated_properties)
+ const gchar * const *invalidated_properties)
{
guint n;
const gchar *key;
{
}
-
/**
* e_gdbus_book_view_proxy_new:
* @connection: A #GDBusConnection.
return NULL;
}
-
/**
* e_gdbus_book_view_proxy_new_for_bus:
* @bus_type: A #GBusType.
return NULL;
}
-
/* ---------------------------------------------------------------------- */
struct _EGdbusBookViewStubPrivate
EGdbusBookView *e_gdbus_book_view_stub_new (void);
-
guint e_gdbus_book_view_register_object (EGdbusBookView *object,
GDBusConnection *connection,
const gchar *object_path,
void e_gdbus_book_view_drain_notify (EGdbusBookView *object);
-
const GDBusInterfaceInfo *e_gdbus_book_view_interface_info (void) G_GNUC_CONST;
struct _EGdbusBookViewIface
/* Signal handlers for receiving D-Bus signals: */
void (*contacts_added) (
EGdbusBookView *object,
- const gchar* const *arg_vcards);
+ const gchar * const *arg_vcards);
void (*contacts_changed) (
EGdbusBookView *object,
- const gchar* const *arg_vcards);
+ const gchar * const *arg_vcards);
void (*contacts_removed) (
EGdbusBookView *object,
- const gchar* const *arg_ids);
+ const gchar * const *arg_ids);
void (*status_message) (
EGdbusBookView *object,
const gchar *arg_message);
/* C Bindings for properties */
-
/* D-Bus Methods */
void e_gdbus_book_view_call_start (
EGdbusBookView *proxy,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_view_call_stop (
EGdbusBookView *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_book_view_call_dispose (
EGdbusBookView *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
-
/* D-Bus Methods Completion Helpers */
void e_gdbus_book_view_complete_start (
EGdbusBookView *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_view_complete_stop (
EGdbusBookView *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_book_view_complete_dispose (
EGdbusBookView *object,
GDBusMethodInvocation *invocation);
-
-
/* D-Bus Signal Emission Helpers */
void e_gdbus_book_view_emit_contacts_added (
EGdbusBookView *object,
- const gchar* const *arg_vcards);
-
+ const gchar * const *arg_vcards);
void e_gdbus_book_view_emit_contacts_changed (
EGdbusBookView *object,
- const gchar* const *arg_vcards);
-
+ const gchar * const *arg_vcards);
void e_gdbus_book_view_emit_contacts_removed (
EGdbusBookView *object,
- const gchar* const *arg_ids);
-
+ const gchar * const *arg_ids);
void e_gdbus_book_view_emit_status_message (
EGdbusBookView *object,
const gchar *arg_message);
-
void e_gdbus_book_view_emit_complete (
EGdbusBookView *object,
guint arg_status,
const gchar *arg_message);
-
-
G_END_DECLS
#endif /* __E_GDBUS_E_GDBUS_BOOK_VIEW_H__ */
#include <glib-object.h>
-
#ifdef G_ENABLE_DEBUG
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
#define g_marshal_value_peek_char(v) g_value_get_char (v)
#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
#define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
-#endif /* !G_ENABLE_DEBUG */
-
+#endif /* G_ENABLE_DEBUG */
/* BOOLEAN:OBJECT,STRING (e-gdbus-marshallers.list:1) */
void
#include <gio/gio.h>
-
#endif /* __E_GDBUS_TYPE_MAPPERS_H__ */
return backend->priv->kind;
}
-
/**
* e_cal_backend_get_source:
* @backend: an #ECalBackend
#define ERR_PREFIX "org.gnome.evolution.dataserver.calendar.Cal."
static const GDBusErrorEntry entries[] = {
- { Success, ERR_PREFIX "Success" },
+ { Success, ERR_PREFIX "Success" },
{ RepositoryOffline, ERR_PREFIX "RepositoryOffline" },
{ PermissionDenied, ERR_PREFIX "PermissionDenied" },
{ InvalidRange, ERR_PREFIX "InvalidRange" },
* emitting the corresponding GType signals. For better type-safety, you can use,
* the provided e_gdbus_cal_emit_*() helpers.
*
- * For property changes, #GObject::notify signal emissions on exported objects
+ * For property changes, #GObject::notify signal emissions on exported objects
* will be intercepted and queued. In an idle handler, the queued notifications
* are processed and a single <literal>PropertiesChanged</literal> signal (on the
* <literal>org.freedesktop.DBus.Properties</literal> interface) will be emitted
typedef EGdbusCalIface EGdbusCalInterface;
G_DEFINE_INTERFACE (EGdbusCal, e_gdbus_cal, G_TYPE_OBJECT);
-
enum
{
_0_SIGNAL,
static guint signals[__LAST_SIGNAL] = {0};
-
enum
{
PROP_0,
static GHashTable *_property_gname_to_name = NULL;
static GHashTable *_property_name_to_gname = NULL;
-
static guint
lookup_method_id_from_method_name (const gchar *method_name)
{
(gpointer) "mode",
NULL);
-
/* GObject signals definitions for D-Bus methods: */
/**
* EGdbusCal::handle-get-uri:
/* GObject property definitions for D-Bus properties: */
}
-
/* C Bindings for properties */
/**
return _ret;
}
-
/**
* e_gdbus_cal_call_get_cache_dir:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_open:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_refresh:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_close:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_remove:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_is_read_only:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_cal_address:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_alarm_email_address:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_ldap_attribute:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_scheduling_information:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_set_mode:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_default_object:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_object:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_object_list:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_changes:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_free_busy:
* @proxy: A #EGdbusCal.
*/
void e_gdbus_cal_call_get_free_busy (
EGdbusCal *proxy,
- const gchar* const *in_user_list,
+ const gchar * const *in_user_list,
guint in_start,
guint in_end,
GCancellable *cancellable,
*/
gboolean e_gdbus_cal_call_get_free_busy_sync (
EGdbusCal *proxy,
- const gchar* const *in_user_list,
+ const gchar * const *in_user_list,
guint in_start,
guint in_end,
gchar ***out_freebusy,
return _ret;
}
-
/**
* e_gdbus_cal_call_discard_alarm:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_create_object:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_modify_object:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_remove_object:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_receive_objects:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_send_objects:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_attachment_list:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_query:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_get_timezone:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_add_timezone:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_call_set_default_timezone:
* @proxy: A #EGdbusCal.
return _ret;
}
-
/**
* e_gdbus_cal_complete_get_uri:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_cache_dir:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_open:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_refresh:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_close:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_remove:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_is_read_only:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_get_cal_address:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_alarm_email_address:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_ldap_attribute:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_scheduling_information:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_set_mode:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_get_default_object:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_object:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_object_list:
* @object: A #EGdbusCal.
void e_gdbus_cal_complete_get_object_list (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_objects)
+ const gchar * const *out_objects)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_changes:
* @object: A #EGdbusCal.
void e_gdbus_cal_complete_get_changes (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_additions,
- const gchar* const *out_modifications,
- const gchar* const *out_removals)
+ const gchar * const *out_additions,
+ const gchar * const *out_modifications,
+ const gchar * const *out_removals)
{
GVariant *_params;
_params = g_variant_new ("(^as^as^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_free_busy:
* @object: A #EGdbusCal.
void e_gdbus_cal_complete_get_free_busy (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_freebusy)
+ const gchar * const *out_freebusy)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_discard_alarm:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_create_object:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_modify_object:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_remove_object:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_receive_objects:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_send_objects:
* @object: A #EGdbusCal.
void e_gdbus_cal_complete_send_objects (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_users,
+ const gchar * const *out_users,
const gchar *out_calobj)
{
GVariant *_params;
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_attachment_list:
* @object: A #EGdbusCal.
void e_gdbus_cal_complete_get_attachment_list (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_attachments)
+ const gchar * const *out_attachments)
{
GVariant *_params;
_params = g_variant_new ("(^as)",
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_query:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_get_timezone:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
/**
* e_gdbus_cal_complete_add_timezone:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_complete_set_default_timezone:
* @object: A #EGdbusCal.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_emit_auth_required:
* @object: A #EGdbusCal.
g_signal_emit (object, signals[__AUTH_REQUIRED_SIGNAL], 0);
}
-
/**
* e_gdbus_cal_emit_backend_error:
* @object: A #EGdbusCal.
g_signal_emit (object, signals[__BACKEND_ERROR_SIGNAL], 0, arg_error);
}
-
/**
* e_gdbus_cal_emit_readonly:
* @object: A #EGdbusCal.
g_signal_emit (object, signals[__READONLY_SIGNAL], 0, arg_is_readonly);
}
-
/**
* e_gdbus_cal_emit_mode:
* @object: A #EGdbusCal.
g_signal_emit (object, signals[__MODE_SIGNAL], 0, arg_mode);
}
-
static const GDBusSignalInfo e_gdbus_cal_signal_auth_required =
{
-1,
{
EGdbusCal *object = E_GDBUS_CAL (user_data);
gboolean handled;
- const gchar* const *arg_user_list;
+ const gchar * const *arg_user_list;
guint arg_start;
guint arg_end;
g_variant_get (parameters,
return &_e_gdbus_cal_interface_info;
}
-
/* ---------------------------------------------------------------------- */
static void proxy_iface_init (EGdbusCalIface *iface);
static void
g_properties_changed (GDBusProxy *proxy,
GVariant *changed_properties,
- const gchar* const *invalidated_properties)
+ const gchar * const *invalidated_properties)
{
guint n;
const gchar *key;
{
}
-
/**
* e_gdbus_cal_proxy_new:
* @connection: A #GDBusConnection.
return NULL;
}
-
/**
* e_gdbus_cal_proxy_new_for_bus:
* @bus_type: A #GBusType.
return NULL;
}
-
/* ---------------------------------------------------------------------- */
struct _EGdbusCalStubPrivate
EGdbusCal *e_gdbus_cal_stub_new (void);
-
guint e_gdbus_cal_register_object (EGdbusCal *object,
GDBusConnection *connection,
const gchar *object_path,
void e_gdbus_cal_drain_notify (EGdbusCal *object);
-
const GDBusInterfaceInfo *e_gdbus_cal_interface_info (void) G_GNUC_CONST;
struct _EGdbusCalIface
gboolean (*handle_get_free_busy) (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *in_user_list,
+ const gchar * const *in_user_list,
guint in_start,
guint in_end);
gboolean (*handle_discard_alarm) (
/* C Bindings for properties */
-
/* D-Bus Methods */
void e_gdbus_cal_call_get_uri (
EGdbusCal *proxy,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_cache_dir (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_open (
EGdbusCal *proxy,
gboolean in_only_if_exists,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_refresh (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_close (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_remove (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_is_read_only (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_cal_address (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_alarm_email_address (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_ldap_attribute (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_scheduling_information (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_set_mode (
EGdbusCal *proxy,
guint in_mode,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_default_object (
EGdbusCal *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_object (
EGdbusCal *proxy,
const gchar *in_uid,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_object_list (
EGdbusCal *proxy,
const gchar *in_sexp,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_changes (
EGdbusCal *proxy,
const gchar *in_change_id,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_free_busy (
EGdbusCal *proxy,
- const gchar* const *in_user_list,
+ const gchar * const *in_user_list,
guint in_start,
guint in_end,
GCancellable *cancellable,
gboolean e_gdbus_cal_call_get_free_busy_sync (
EGdbusCal *proxy,
- const gchar* const *in_user_list,
+ const gchar * const *in_user_list,
guint in_start,
guint in_end,
gchar ***out_freebusy,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_discard_alarm (
EGdbusCal *proxy,
const gchar *in_uid,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_create_object (
EGdbusCal *proxy,
const gchar *in_calobj,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_modify_object (
EGdbusCal *proxy,
const gchar *in_calobj,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_remove_object (
EGdbusCal *proxy,
const gchar *in_uid,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_receive_objects (
EGdbusCal *proxy,
const gchar *in_calobj,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_send_objects (
EGdbusCal *proxy,
const gchar *in_calobj,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_attachment_list (
EGdbusCal *proxy,
const gchar *in_uid,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_query (
EGdbusCal *proxy,
const gchar *in_sexp,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_get_timezone (
EGdbusCal *proxy,
const gchar *in_tzid,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_add_timezone (
EGdbusCal *proxy,
const gchar *in_tz,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_call_set_default_timezone (
EGdbusCal *proxy,
const gchar *in_tz,
GCancellable *cancellable,
GError **error);
-
-
/* D-Bus Methods Completion Helpers */
void e_gdbus_cal_complete_get_uri (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_str_uri_copy);
-
void e_gdbus_cal_complete_get_cache_dir (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_dirname);
-
void e_gdbus_cal_complete_open (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_refresh (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_close (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_remove (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_is_read_only (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_get_cal_address (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_address);
-
void e_gdbus_cal_complete_get_alarm_email_address (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_address);
-
void e_gdbus_cal_complete_get_ldap_attribute (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_address);
-
void e_gdbus_cal_complete_get_scheduling_information (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_capabilities);
-
void e_gdbus_cal_complete_set_mode (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_get_default_object (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_object);
-
void e_gdbus_cal_complete_get_object (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_object);
-
void e_gdbus_cal_complete_get_object_list (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_objects);
-
+ const gchar * const *out_objects);
void e_gdbus_cal_complete_get_changes (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_additions,
- const gchar* const *out_modifications,
- const gchar* const *out_removals);
-
+ const gchar * const *out_additions,
+ const gchar * const *out_modifications,
+ const gchar * const *out_removals);
void e_gdbus_cal_complete_get_free_busy (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_freebusy);
-
+ const gchar * const *out_freebusy);
void e_gdbus_cal_complete_discard_alarm (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_create_object (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_uid);
-
void e_gdbus_cal_complete_modify_object (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_remove_object (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_receive_objects (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_send_objects (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_users,
+ const gchar * const *out_users,
const gchar *out_calobj);
-
void e_gdbus_cal_complete_get_attachment_list (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
- const gchar* const *out_attachments);
-
+ const gchar * const *out_attachments);
void e_gdbus_cal_complete_get_query (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_query);
-
void e_gdbus_cal_complete_get_timezone (
EGdbusCal *object,
GDBusMethodInvocation *invocation,
const gchar *out_object);
-
void e_gdbus_cal_complete_add_timezone (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_complete_set_default_timezone (
EGdbusCal *object,
GDBusMethodInvocation *invocation);
-
-
/* D-Bus Signal Emission Helpers */
void e_gdbus_cal_emit_auth_required (
EGdbusCal *object);
-
void e_gdbus_cal_emit_backend_error (
EGdbusCal *object,
const gchar *arg_error);
-
void e_gdbus_cal_emit_readonly (
EGdbusCal *object,
gboolean arg_is_readonly);
-
void e_gdbus_cal_emit_mode (
EGdbusCal *object,
gint arg_mode);
-
-
G_END_DECLS
#endif /* __E_GDBUS_E_GDBUS_CAL_H__ */
* emitting the corresponding GType signals. For better type-safety, you can use,
* the provided e_gdbus_cal_factory_emit_*() helpers.
*
- * For property changes, #GObject::notify signal emissions on exported objects
+ * For property changes, #GObject::notify signal emissions on exported objects
* will be intercepted and queued. In an idle handler, the queued notifications
* are processed and a single <literal>PropertiesChanged</literal> signal (on the
* <literal>org.freedesktop.DBus.Properties</literal> interface) will be emitted
typedef EGdbusCalFactoryIface EGdbusCalFactoryInterface;
G_DEFINE_INTERFACE (EGdbusCalFactory, e_gdbus_cal_factory, G_TYPE_OBJECT);
-
enum
{
_0_SIGNAL,
static guint signals[__LAST_SIGNAL] = {0};
-
enum
{
PROP_0,
static GHashTable *_property_gname_to_name = NULL;
static GHashTable *_property_name_to_gname = NULL;
-
static guint
lookup_method_id_from_method_name (const gchar *method_name)
{
/* GObject property definitions for D-Bus properties: */
}
-
/* C Bindings for properties */
/**
return _ret;
}
-
/**
* e_gdbus_cal_factory_complete_get_cal:
* @object: A #EGdbusCalFactory.
g_dbus_method_invocation_return_value (invocation, _params);
}
-
static const GDBusArgInfo e_gdbus_cal_factory_method_in_getCal_source =
{
-1,
return &_e_gdbus_cal_factory_interface_info;
}
-
/* ---------------------------------------------------------------------- */
static void proxy_iface_init (EGdbusCalFactoryIface *iface);
static void
g_properties_changed (GDBusProxy *proxy,
GVariant *changed_properties,
- const gchar* const *invalidated_properties)
+ const gchar * const *invalidated_properties)
{
guint n;
const gchar *key;
{
}
-
/**
* e_gdbus_cal_factory_proxy_new:
* @connection: A #GDBusConnection.
return NULL;
}
-
/**
* e_gdbus_cal_factory_proxy_new_for_bus:
* @bus_type: A #GBusType.
return NULL;
}
-
/* ---------------------------------------------------------------------- */
struct _EGdbusCalFactoryStubPrivate
EGdbusCalFactory *e_gdbus_cal_factory_stub_new (void);
-
guint e_gdbus_cal_factory_register_object (EGdbusCalFactory *object,
GDBusConnection *connection,
const gchar *object_path,
void e_gdbus_cal_factory_drain_notify (EGdbusCalFactory *object);
-
const GDBusInterfaceInfo *e_gdbus_cal_factory_interface_info (void) G_GNUC_CONST;
struct _EGdbusCalFactoryIface
/* C Bindings for properties */
-
/* D-Bus Methods */
void e_gdbus_cal_factory_call_get_cal (
EGdbusCalFactory *proxy,
GCancellable *cancellable,
GError **error);
-
-
/* D-Bus Methods Completion Helpers */
void e_gdbus_cal_factory_complete_get_cal (
EGdbusCalFactory *object,
GDBusMethodInvocation *invocation,
const gchar *out_path);
-
-
/* D-Bus Signal Emission Helpers */
G_END_DECLS
* emitting the corresponding GType signals. For better type-safety, you can use,
* the provided e_gdbus_cal_view_emit_*() helpers.
*
- * For property changes, #GObject::notify signal emissions on exported objects
+ * For property changes, #GObject::notify signal emissions on exported objects
* will be intercepted and queued. In an idle handler, the queued notifications
* are processed and a single <literal>PropertiesChanged</literal> signal (on the
* <literal>org.freedesktop.DBus.Properties</literal> interface) will be emitted
typedef EGdbusCalViewIface EGdbusCalViewInterface;
G_DEFINE_INTERFACE (EGdbusCalView, e_gdbus_cal_view, G_TYPE_OBJECT);
-
enum
{
_0_SIGNAL,
static guint signals[__LAST_SIGNAL] = {0};
-
enum
{
PROP_0,
static GHashTable *_property_gname_to_name = NULL;
static GHashTable *_property_name_to_gname = NULL;
-
static guint
lookup_method_id_from_method_name (const gchar *method_name)
{
(gpointer) "Done",
NULL);
-
/* GObject signals definitions for D-Bus methods: */
/**
* EGdbusCalView::handle-start:
/* GObject property definitions for D-Bus properties: */
}
-
/* C Bindings for properties */
/**
return _ret;
}
-
/**
* e_gdbus_cal_view_call_stop:
* @proxy: A #EGdbusCalView.
return _ret;
}
-
/**
* e_gdbus_cal_view_complete_start:
* @object: A #EGdbusCalView.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_view_complete_stop:
* @object: A #EGdbusCalView.
g_dbus_method_invocation_return_value (invocation, NULL);
}
-
/**
* e_gdbus_cal_view_emit_objects_added:
* @object: A #EGdbusCalView.
*/
void e_gdbus_cal_view_emit_objects_added (
EGdbusCalView *object,
- const gchar* const *arg_objects)
+ const gchar * const *arg_objects)
{
g_signal_emit (object, signals[__OBJECTS_ADDED_SIGNAL], 0, arg_objects);
}
-
/**
* e_gdbus_cal_view_emit_objects_modified:
* @object: A #EGdbusCalView.
*/
void e_gdbus_cal_view_emit_objects_modified (
EGdbusCalView *object,
- const gchar* const *arg_objects)
+ const gchar * const *arg_objects)
{
g_signal_emit (object, signals[__OBJECTS_MODIFIED_SIGNAL], 0, arg_objects);
}
-
/**
* e_gdbus_cal_view_emit_objects_removed:
* @object: A #EGdbusCalView.
*/
void e_gdbus_cal_view_emit_objects_removed (
EGdbusCalView *object,
- const gchar* const *arg_ids)
+ const gchar * const *arg_ids)
{
g_signal_emit (object, signals[__OBJECTS_REMOVED_SIGNAL], 0, arg_ids);
}
-
/**
* e_gdbus_cal_view_emit_progress:
* @object: A #EGdbusCalView.
g_signal_emit (object, signals[__PROGRESS_SIGNAL], 0, arg_message, arg_progress);
}
-
/**
* e_gdbus_cal_view_emit_done:
* @object: A #EGdbusCalView.
g_signal_emit (object, signals[__DONE_SIGNAL], 0, arg_status, arg_message);
}
-
static const GDBusArgInfo e_gdbus_cal_view_signal_ObjectsAdded_objects =
{
-1,
return &_e_gdbus_cal_view_interface_info;
}
-
/* ---------------------------------------------------------------------- */
static void proxy_iface_init (EGdbusCalViewIface *iface);
{
case __OBJECTS_ADDED_SIGNAL:
{
- const gchar* const *arg_objects;
+ const gchar * const *arg_objects;
g_variant_get (parameters,
"(^a&s)",
&arg_objects);
case __OBJECTS_MODIFIED_SIGNAL:
{
- const gchar* const *arg_objects;
+ const gchar * const *arg_objects;
g_variant_get (parameters,
"(^a&s)",
&arg_objects);
case __OBJECTS_REMOVED_SIGNAL:
{
- const gchar* const *arg_ids;
+ const gchar * const *arg_ids;
g_variant_get (parameters,
"(^a&s)",
&arg_ids);
static void
g_properties_changed (GDBusProxy *proxy,
GVariant *changed_properties,
- const gchar* const *invalidated_properties)
+ const gchar * const *invalidated_properties)
{
guint n;
const gchar *key;
{
}
-
/**
* e_gdbus_cal_view_proxy_new:
* @connection: A #GDBusConnection.
return NULL;
}
-
/**
* e_gdbus_cal_view_proxy_new_for_bus:
* @bus_type: A #GBusType.
return NULL;
}
-
/* ---------------------------------------------------------------------- */
struct _EGdbusCalViewStubPrivate
EGdbusCalView *e_gdbus_cal_view_stub_new (void);
-
guint e_gdbus_cal_view_register_object (EGdbusCalView *object,
GDBusConnection *connection,
const gchar *object_path,
void e_gdbus_cal_view_drain_notify (EGdbusCalView *object);
-
const GDBusInterfaceInfo *e_gdbus_cal_view_interface_info (void) G_GNUC_CONST;
struct _EGdbusCalViewIface
/* Signal handlers for receiving D-Bus signals: */
void (*objects_added) (
EGdbusCalView *object,
- const gchar* const *arg_objects);
+ const gchar * const *arg_objects);
void (*objects_modified) (
EGdbusCalView *object,
- const gchar* const *arg_objects);
+ const gchar * const *arg_objects);
void (*objects_removed) (
EGdbusCalView *object,
- const gchar* const *arg_ids);
+ const gchar * const *arg_ids);
void (*progress) (
EGdbusCalView *object,
const gchar *arg_message,
/* C Bindings for properties */
-
/* D-Bus Methods */
void e_gdbus_cal_view_call_start (
EGdbusCalView *proxy,
GCancellable *cancellable,
GError **error);
-
void e_gdbus_cal_view_call_stop (
EGdbusCalView *proxy,
GCancellable *cancellable,
GCancellable *cancellable,
GError **error);
-
-
/* D-Bus Methods Completion Helpers */
void e_gdbus_cal_view_complete_start (
EGdbusCalView *object,
GDBusMethodInvocation *invocation);
-
void e_gdbus_cal_view_complete_stop (
EGdbusCalView *object,
GDBusMethodInvocation *invocation);
-
-
/* D-Bus Signal Emission Helpers */
void e_gdbus_cal_view_emit_objects_added (
EGdbusCalView *object,
- const gchar* const *arg_objects);
-
+ const gchar * const *arg_objects);
void e_gdbus_cal_view_emit_objects_modified (
EGdbusCalView *object,
- const gchar* const *arg_objects);
-
+ const gchar * const *arg_objects);
void e_gdbus_cal_view_emit_objects_removed (
EGdbusCalView *object,
- const gchar* const *arg_ids);
-
+ const gchar * const *arg_ids);
void e_gdbus_cal_view_emit_progress (
EGdbusCalView *object,
const gchar *arg_message,
guint arg_progress);
-
void e_gdbus_cal_view_emit_done (
EGdbusCalView *object,
guint arg_status,
const gchar *arg_message);
-
-
G_END_DECLS
#endif /* __E_GDBUS_E_GDBUS_CAL_VIEW_H__ */
#include <glib-object.h>
-
#ifdef G_ENABLE_DEBUG
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
#define g_marshal_value_peek_char(v) g_value_get_char (v)
#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
#define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
-#endif /* !G_ENABLE_DEBUG */
-
+#endif /* G_ENABLE_DEBUG */
/* BOOLEAN:OBJECT,STRING,UINT (e-gdbus-marshallers.list:1) */
void
#include <gio/gio.h>
-
#endif /* __E_GDBUS_TYPE_MAPPERS_H__ */
priv = CAMEL_STREAM_FILTER_GET_PRIVATE (stream);
- if (!priv->last_was_read) {
- GError *err = NULL;
-
- stream_filter_flush (stream, &err);
-
- if (err)
- g_error_free (err);
- }
+ /* Ignore errors while flushing. */
+ if (!priv->last_was_read)
+ stream_filter_flush (stream, NULL);
return camel_stream_close (priv->source, error);
}
/*-*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* camel-imap-conn-manager.h
+/* camel-imap-conn-manager.h
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
G_DEFINE_TYPE (CamelIMAPXConnManager, camel_imapx_conn_manager, CAMEL_TYPE_OBJECT)
struct _CamelIMAPXConnManagerPrivate {
- GSList *connections;
+ GSList *connections;
guint n_connections;
CamelStore *store;
GStaticRecMutex con_man_lock;
gchar *selected_folder;
} ConnectionInfo;
-
static void
free_connection (gpointer data, gpointer user_data)
{
CamelIMAPXServer *conn = cinfo->conn;
camel_imapx_server_connect (conn, 0);
-
+
g_object_unref (conn);
g_hash_table_destroy (cinfo->folders);
imapx_prune_connections (CamelIMAPXConnManager *con_man)
{
CON_LOCK(con_man);
-
+
g_slist_foreach (con_man->priv->connections, (GFunc) free_connection, NULL);
con_man->priv->connections = NULL;
-
+
CON_UNLOCK(con_man);
}
imapx_conn_manager_finalize (GObject *object)
{
CamelIMAPXConnManager *con_man = CAMEL_IMAPX_CONN_MANAGER(object);
-
+
imapx_prune_connections (con_man);
g_static_rec_mutex_free (&con_man->priv->con_man_lock);
g_object_unref (con_man->priv->store);
priv = g_new0 (CamelIMAPXConnManagerPrivate, 1);
con_man->priv = priv;
-
+
/* default is 1 connection */
con_man->priv->n_connections = 1;
g_static_rec_mutex_init (&con_man->priv->con_man_lock);
}
-
/* Static functions go here */
/* TODO destroy unused connections in a time-out loop */
GSList *l;
ConnectionInfo *cinfo;
gboolean found = FALSE;
-
+
CON_LOCK(con_man);
for (l = con_man->priv->connections; l != NULL; l = g_slist_next (l)) {
cinfo = (ConnectionInfo *) l->data;
if (cinfo->conn == conn) {
- found = TRUE;
+ found = TRUE;
break;
}
}
GSList *l;
ConnectionInfo *cinfo;
gboolean found = FALSE;
-
+
CON_LOCK(con_man);
for (l = con_man->priv->connections; l != NULL; l = g_slist_next (l)) {
cinfo = (ConnectionInfo *) l->data;
if (cinfo->conn == conn) {
- found = TRUE;
+ found = TRUE;
break;
}
}
g_free (cinfo->selected_folder);
}
- cinfo->selected_folder = g_strdup (selected_folder);
+ cinfo->selected_folder = g_strdup (selected_folder);
}
CON_UNLOCK(con_man);
GSList *l;
CamelIMAPXServer *conn = NULL;
ConnectionInfo *cinfo = NULL;
-
+
CON_LOCK(con_man);
/* Have a dedicated connection for INBOX ? */
g_object_ref (conn);
} else {
g_object_unref (conn);
-
+
camel_service_unlock (CAMEL_SERVICE (store), CAMEL_SERVICE_REC_CONNECT_LOCK);
CON_UNLOCK (con_man);
cinfo = g_new0 (ConnectionInfo, 1);
cinfo->conn = conn;
cinfo->folders = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, NULL);
-
+
if (folder_name)
g_hash_table_insert (cinfo->folders, g_strdup (folder_name), GINT_TO_POINTER (1));
con_man->priv->connections = g_slist_prepend (con_man->priv->connections, cinfo);
-
+
c(printf ("Created new connection for %s and total connections %d \n", folder_name, g_slist_length (con_man->priv->connections)));
CON_UNLOCK(con_man);
return con_man;
}
-void
+void
camel_imapx_conn_manager_set_n_connections (CamelIMAPXConnManager *con_man, guint n_connections)
{
g_return_if_fail (CAMEL_IS_IMAPX_CONN_MANAGER (con_man));
con_man->priv->n_connections = n_connections;
}
-CamelIMAPXServer *
+CamelIMAPXServer *
camel_imapx_conn_manager_get_connection (CamelIMAPXConnManager *con_man, const gchar *folder_name, GError **error)
{
CamelIMAPXServer *conn = NULL;
g_return_val_if_fail (CAMEL_IS_IMAPX_CONN_MANAGER (con_man), NULL);
-
+
CON_LOCK(con_man);
conn = imapx_find_connection (con_man, folder_name);
camel_imapx_conn_manager_get_connections (CamelIMAPXConnManager *con_man)
{
GSList *l, *conns = NULL;
-
+
CON_LOCK(con_man);
-
+
for (l = con_man->priv->connections; l != NULL; l = g_slist_next (l)) {
ConnectionInfo *cinfo = (ConnectionInfo *) l->data;
gboolean found = FALSE;
g_return_if_fail (CAMEL_IS_IMAPX_CONN_MANAGER (con_man));
-
+
CON_LOCK(con_man);
for (l = con_man->priv->connections; l != NULL; l = g_slist_next (l)) {
cinfo = (ConnectionInfo *) l->data;
if (cinfo->conn == conn) {
- found = TRUE;
+ found = TRUE;
break;
}
}
}
camel_imapx_destroy_job_queue_info (jinfo);
}
-
+
CON_UNLOCK(con_man);
}
-void
+void
camel_imapx_conn_manager_close_connections (CamelIMAPXConnManager *con_man)
{
g_return_if_fail (CAMEL_IS_IMAPX_CONN_MANAGER (con_man));
/*-*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* camel-imap-conn-manager.h
+/* camel-imap-conn-manager.h
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
(G_TYPE_INSTANCE_GET_CLASS \
((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManagerClass))
-
typedef struct _CamelIMAPXConnManager CamelIMAPXConnManager;
typedef struct _CamelIMAPXConnManagerClass CamelIMAPXConnManagerClass;
typedef struct _CamelIMAPXConnManagerPrivate CamelIMAPXConnManagerPrivate;
GType camel_imapx_conn_manager_get_type (void);
CamelIMAPXConnManager * camel_imapx_conn_manager_new (CamelStore *store);
-void camel_imapx_conn_manager_set_n_connections (CamelIMAPXConnManager *con_man,
+void camel_imapx_conn_manager_set_n_connections (CamelIMAPXConnManager *con_man,
guint n_connections);
CamelIMAPXServer * camel_imapx_conn_manager_get_connection (CamelIMAPXConnManager *con_man,
const gchar *folder_name,
GError **error);
-void camel_imapx_conn_manager_close_connections (CamelIMAPXConnManager *con_man);
-GSList * camel_imapx_conn_manager_get_connections (CamelIMAPXConnManager *con_man);
-void camel_imapx_conn_manager_update_con_info (CamelIMAPXConnManager *con_man,
+void camel_imapx_conn_manager_close_connections (CamelIMAPXConnManager *con_man);
+GSList * camel_imapx_conn_manager_get_connections (CamelIMAPXConnManager *con_man);
+void camel_imapx_conn_manager_update_con_info (CamelIMAPXConnManager *con_man,
CamelIMAPXServer *server,
- const gchar *folder_name);
+ const gchar *folder_name);
-#endif /* ! _CAMEL_IMAPX_SERVER_H */
+#endif /* _CAMEL_IMAPX_SERVER_H */
}
if (job->op) {
- int cnt = (camel_folder_summary_count (job->folder->summary) * 100 )/ifolder->exists_on_server;
+ gint cnt = (camel_folder_summary_count (job->folder->summary) * 100 )/ifolder->exists_on_server;
camel_operation_progress (job->op, cnt?cnt:1);
}
}
CamelIMAPXServer *server = NULL;
camel_service_lock (CAMEL_SERVICE (istore), CAMEL_SERVICE_REC_CONNECT_LOCK);
-
+
server = camel_imapx_conn_manager_get_connection (istore->con_man, folder_name, error);
camel_service_unlock (CAMEL_SERVICE (istore), CAMEL_SERVICE_REC_CONNECT_LOCK);
for (l = servers; l != NULL; l = g_slist_next (l)) {
CamelIMAPXServer *server = CAMEL_IMAPX_SERVER (l->data);
-
- /* we just return last noops value, technically not correct though */
+
+ /* we just return last noops value, technically not correct though */
success = camel_imapx_server_noop (server, NULL, error);
g_object_unref(server);
}
CamelIMAPXServer * camel_imapx_store_get_server (CamelIMAPXStore *store,
const gchar *folder_name,
GError **error);
-void camel_imapx_store_op_done (CamelIMAPXStore *istore,
- CamelIMAPXServer *server,
+void camel_imapx_store_op_done (CamelIMAPXStore *istore,
+ CamelIMAPXServer *server,
const gchar *folder_name);
G_END_DECLS
@const gchar *tzid, gconstpointer custom, GError **error:
@const gchar *tzid, gconstpointer custom, GError **error:
@const gchar *tzid, gconstpointer custom, GError **error:
+@const gchar *tzid, gconstpointer custom, GError **error:
@const gchar *tzid, gconstpointer custom, GError **error:
@custom:
@error:
@gpointer cert_data:
@gpointer cert_data:
@gpointer cert_data:
+@gpointer cert_data:
+@gpointer cert_data:
@gpointer cert_data: