Top |
Service-side Connection Manager interfaceService-side Connection Manager interface — GInterface for Telepathy ConnectionManager objects |
The TpSvcConnectionManager interface (auto-generated from the Telepathy spec) makes it easier to export an object implementing the Telepathy ConnectionManager interface, with the correct method and signal signatures, and emit signals from that object in a type-safe way.
void (*tp_svc_connection_manager_get_parameters_impl) (TpSvcConnectionManager *self
,const gchar *in_Protocol
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method GetParameters on interface org.freedesktop.Telepathy.ConnectionManager.
void tp_svc_connection_manager_implement_get_parameters (TpSvcConnectionManagerClass *klass
,tp_svc_connection_manager_get_parameters_impl impl
);
Register an implementation for the GetParameters method in the vtable of an implementation of this interface. To be called from the interface init function.
void tp_svc_connection_manager_return_from_get_parameters (DBusGMethodInvocation *context
,const GPtrArray *out_Parameters
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
void (*tp_svc_connection_manager_list_protocols_impl) (TpSvcConnectionManager *self
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method ListProtocols on interface org.freedesktop.Telepathy.ConnectionManager.
void tp_svc_connection_manager_implement_list_protocols (TpSvcConnectionManagerClass *klass
,tp_svc_connection_manager_list_protocols_impl impl
);
Register an implementation for the ListProtocols method in the vtable of an implementation of this interface. To be called from the interface init function.
void tp_svc_connection_manager_return_from_list_protocols (DBusGMethodInvocation *context
,const gchar **out_Protocols
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
void (*tp_svc_connection_manager_request_connection_impl) (TpSvcConnectionManager *self
,const gchar *in_Protocol
,GHashTable *in_Parameters
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method RequestConnection on interface org.freedesktop.Telepathy.ConnectionManager.
void tp_svc_connection_manager_implement_request_connection (TpSvcConnectionManagerClass *klass
,tp_svc_connection_manager_request_connection_impl impl
);
Register an implementation for the RequestConnection method in the vtable of an implementation of this interface. To be called from the interface init function.
void tp_svc_connection_manager_return_from_request_connection (DBusGMethodInvocation *context
,const gchar *out_Bus_Name
,const gchar *out_Object_Path
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
void tp_svc_connection_manager_emit_new_connection (gpointer instance
,const gchar *arg_Bus_Name
,const gchar *arg_Object_Path
,const gchar *arg_Protocol
);
Type-safe wrapper around g_signal_emit to emit the NewConnection signal on interface org.freedesktop.Telepathy.ConnectionManager.
typedef struct _TpSvcConnectionManager TpSvcConnectionManager;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcConnectionManagerClass TpSvcConnectionManagerClass;
The class of TpSvcConnectionManager.
In a full implementation of this interface (i.e. all
methods implemented), the interface initialization
function used in G_IMPLEMENT_INTERFACE()
would
typically look like this:
static void implement_connection_manager (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_connection_manager_implement_##x (\ klass, my_object_##x) IMPLEMENT (get_parameters); IMPLEMENT (list_protocols); IMPLEMENT (request_connection); #undef IMPLEMENT }
“new-connection”
signalvoid user_function (TpSvcConnectionManager *self, gchar *arg_Bus_Name, DBusGObjectPath *arg_Object_Path, gchar *arg_Protocol, gpointer user_data)
The NewConnection D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_Bus_Name |
const gchar * (FIXME, generate documentation) |
|
arg_Object_Path |
const gchar * (FIXME, generate documentation) |
|
arg_Protocol |
const gchar * (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details