Top |
File Transfer channelsFile Transfer channels — service-side interface for the File Transfer channel type |
void | file-transfer-state-changed | Has Details |
void | initial-offset-defined | Has Details |
void | transferred-bytes-changed | Has Details |
void | u-ri-defined | Has Details |
This section documents the auto-generated GInterface used to implement the File Transfer channel type.
void (*tp_svc_channel_type_file_transfer1_accept_file_impl) (TpSvcChannelTypeFileTransfer1 *self
,guint in_Address_Type
,guint in_Access_Control
,const GValue *in_Access_Control_Param
,guint64 in_Offset
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method AcceptFile on interface im.telepathy.v1.Channel.Type.FileTransfer1.
self |
The object implementing this interface |
|
in_Address_Type |
guint (FIXME, generate documentation) |
|
in_Access_Control |
guint (FIXME, generate documentation) |
|
in_Access_Control_Param |
const GValue * (FIXME, generate documentation) |
|
in_Offset |
guint64 (FIXME, generate documentation) |
|
invocation |
Used to return values or throw an error |
void tp_svc_channel_type_file_transfer1_emit_file_transfer_state_changed (gpointer instance
,guint arg_State
,guint arg_Reason
);
Type-safe wrapper around g_signal_emit to emit the FileTransferStateChanged signal on interface im.telepathy.v1.Channel.Type.FileTransfer1.
void tp_svc_channel_type_file_transfer1_emit_initial_offset_defined (gpointer instance
,guint64 arg_InitialOffset
);
Type-safe wrapper around g_signal_emit to emit the InitialOffsetDefined signal on interface im.telepathy.v1.Channel.Type.FileTransfer1.
void tp_svc_channel_type_file_transfer1_emit_transferred_bytes_changed (gpointer instance
,guint64 arg_Count
);
Type-safe wrapper around g_signal_emit to emit the TransferredBytesChanged signal on interface im.telepathy.v1.Channel.Type.FileTransfer1.
void tp_svc_channel_type_file_transfer1_emit_uri_defined (gpointer instance
,const gchar *arg_URI
);
Type-safe wrapper around g_signal_emit to emit the URIDefined signal on interface im.telepathy.v1.Channel.Type.FileTransfer1.
void tp_svc_channel_type_file_transfer1_implement_accept_file (TpSvcChannelTypeFileTransfer1Class *klass
,tp_svc_channel_type_file_transfer1_accept_file_impl impl
);
Register an implementation for the AcceptFile method in the vtable of an implementation of this interface. To be called from the interface init function.
void tp_svc_channel_type_file_transfer1_implement_provide_file (TpSvcChannelTypeFileTransfer1Class *klass
,tp_svc_channel_type_file_transfer1_provide_file_impl impl
);
Register an implementation for the ProvideFile method in the vtable of an implementation of this interface. To be called from the interface init function.
void (*tp_svc_channel_type_file_transfer1_provide_file_impl) (TpSvcChannelTypeFileTransfer1 *self
,guint in_Address_Type
,guint in_Access_Control
,const GValue *in_Access_Control_Param
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method ProvideFile on interface im.telepathy.v1.Channel.Type.FileTransfer1.
void tp_svc_channel_type_file_transfer1_return_from_accept_file (GDBusMethodInvocation *invocation
,const GValue *out_Address
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
void tp_svc_channel_type_file_transfer1_return_from_provide_file (GDBusMethodInvocation *invocation
,const GValue *out_Address
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
typedef struct _TpSvcChannelTypeFileTransfer1 TpSvcChannelTypeFileTransfer1;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelTypeFileTransfer1Class TpSvcChannelTypeFileTransfer1Class;
The class of TpSvcChannelTypeFileTransfer1.
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_channel_type_file_transfer1 (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_channel_type_file_transfer1_implement_##x (\ klass, my_object_##x) IMPLEMENT (accept_file); IMPLEMENT (provide_file); #undef IMPLEMENT }
“file-transfer-state-changed”
signalvoid user_function (TpSvcChannelTypeFileTransfer1 *self, guint arg_State, guint arg_Reason, gpointer user_data)
The FileTransferStateChanged D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_State |
guint (FIXME, generate documentation) |
|
arg_Reason |
guint (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details
“initial-offset-defined”
signalvoid user_function (TpSvcChannelTypeFileTransfer1 *self, guint64 arg_InitialOffset, gpointer user_data)
The InitialOffsetDefined D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_InitialOffset |
guint64 (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details
“transferred-bytes-changed”
signalvoid user_function (TpSvcChannelTypeFileTransfer1 *self, guint64 arg_Count, gpointer user_data)
The TransferredBytesChanged D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_Count |
guint64 (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details
“u-ri-defined”
signalvoid user_function (TpSvcChannelTypeFileTransfer1 *self, gchar *arg_URI, gpointer user_data)
The URIDefined D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_URI |
const gchar * (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details