Tree @upstream/latest (Download .tar.gz)
- ..
- versions
- abi.am
- account-channel-request-internal.h
- account-channel-request.c
- account-channel-request.h
- account-internal.h
- account-manager-internal.h
- account-manager.c
- account-manager.h
- account-manager.xml
- account-request.c
- account-request.h
- account.c
- account.h
- account.xml
- add-dispatch-operation-context-internal.h
- add-dispatch-operation-context.c
- add-dispatch-operation-context.h
- automatic-client-factory-internal.h
- automatic-client-factory.c
- automatic-client-factory.h
- automatic-proxy-factory.c
- automatic-proxy-factory.h
- base-call-channel.c
- base-call-channel.h
- base-call-content.c
- base-call-content.h
- base-call-internal.h
- base-call-stream.c
- base-call-stream.h
- base-channel.c
- base-channel.h
- base-client-internal.h
- base-client.c
- base-client.h
- base-connection-internal.h
- base-connection-manager.c
- base-connection-manager.h
- base-connection.c
- base-connection.h
- base-contact-list-internal.h
- base-contact-list.c
- base-contact-list.h
- base-media-call-channel.c
- base-media-call-channel.h
- base-media-call-content.c
- base-media-call-content.h
- base-media-call-stream.c
- base-media-call-stream.h
- base-password-channel.c
- base-password-channel.h
- base-protocol-internal.h
- base-protocol.c
- base-protocol.h
- base-room-config.c
- base-room-config.h
- basic-proxy-factory.c
- basic-proxy-factory.h
- call-channel.c
- call-channel.h
- call-content-media-description.c
- call-content-media-description.h
- call-content-media-description.xml
- call-content.c
- call-content.h
- call-content.xml
- call-internal.h
- call-misc.c
- call-misc.h
- call-stream-endpoint.c
- call-stream-endpoint.h
- call-stream-endpoint.xml
- call-stream.c
- call-stream.h
- call-stream.xml
- capabilities-internal.h
- capabilities.c
- capabilities.h
- channel-contacts.c
- channel-dispatch-operation-internal.h
- channel-dispatch-operation.c
- channel-dispatch-operation.h
- channel-dispatch-operation.xml
- channel-dispatcher.c
- channel-dispatcher.h
- channel-dispatcher.xml
- channel-factory-iface.c
- channel-factory-iface.h
- channel-group.c
- channel-iface.c
- channel-iface.h
- channel-internal.h
- channel-manager.c
- channel-manager.h
- channel-request.c
- channel-request.h
- channel-request.xml
- channel.c
- channel.h
- channel.xml
- client-channel-factory.c
- client-channel-factory.h
- client-message-internal.h
- client-message.c
- client-message.h
- client.c
- client.h
- client.xml
- cm-message-internal.h
- cm-message.c
- cm-message.h
- codegen.am
- connection-aliasing.c
- connection-avatars.c
- connection-contact-info.c
- connection-contact-list.c
- connection-contact-list.h
- connection-handles.c
- connection-internal.h
- connection-manager.c
- connection-manager.h
- connection-manager.xml
- connection.c
- connection.h
- connection.xml
- contact-internal.h
- contact-list-channel-internal.h
- contact-list-channel.c
- contact-operations.c
- contact-operations.h
- contact-search-internal.h
- contact-search-result.c
- contact-search-result.h
- contact-search.c
- contact-search.h
- contact.c
- contact.h
- contacts-mixin.c
- contacts-mixin.h
- dbus-daemon.c
- dbus-daemon.h
- dbus-daemon.xml
- dbus-internal.h
- dbus-introspectable.xml
- dbus-peer.xml
- dbus-properties-mixin.c
- dbus-properties-mixin.h
- dbus-properties.xml
- dbus-tube-channel.c
- dbus-tube-channel.h
- dbus.c
- dbus.h
- debug-ansi.h
- debug-client.c
- debug-client.h
- debug-internal.h
- debug-message-internal.h
- debug-message.c
- debug-message.h
- debug-sender.c
- debug-sender.h
- debug.c
- debug.h
- debug.xml
- defs.h
- deprecated-internal.h
- dtmf.c
- dtmf.h
- enums.h
- errors.c
- errors.h
- exportable-channel.c
- exportable-channel.h
- extra-gtkdoc.h
- file-transfer-channel.c
- file-transfer-channel.h
- generic.xml
- genums.c.template
- genums.h.template
- gnio-util.c
- gnio-util.h
- group-mixin.c
- group-mixin.h
- gtypes.c
- gtypes.h
- handle-channels-context-internal.h
- handle-channels-context.c
- handle-channels-context.h
- handle-repo-dynamic.c
- handle-repo-dynamic.h
- handle-repo-internal.h
- handle-repo-static.c
- handle-repo-static.h
- handle-repo.c
- handle-repo.h
- handle-set.c
- handle.c
- handle.h
- heap.c
- heap.h
- interfaces.c
- interfaces.h
- introspection.am
- intset.c
- intset.h
- Makefile.am
- Makefile.in
- media-interfaces.c
- media-interfaces.h
- media-session-handler.xml
- media-stream-handler.xml
- message-internal.h
- message-mixin.c
- message-mixin.h
- message.c
- message.h
- observe-channels-context-internal.h
- observe-channels-context.c
- observe-channels-context.h
- presence-mixin.c
- presence-mixin.h
- properties-mixin.c
- properties-mixin.h
- protocol-internal.h
- protocol.c
- protocol.h
- protocol.xml
- proxy-internal.h
- proxy-methods.c
- proxy-signals.c
- proxy-subclass.h
- proxy.c
- proxy.h
- room-info-internal.h
- room-info.c
- room-info.h
- room-list.c
- room-list.h
- run.c
- run.h
- signalled-message-internal.h
- signalled-message.c
- signalled-message.h
- simple-approver.c
- simple-approver.h
- simple-client-factory-internal.h
- simple-client-factory.c
- simple-client-factory.h
- simple-handler.c
- simple-handler.h
- simple-observer.c
- simple-observer.h
- simple-password-manager.c
- simple-password-manager.h
- stable-interfaces.xml
- stream-tube-channel.c
- stream-tube-channel.h
- stream-tube-connection-internal.h
- stream-tube-connection.c
- stream-tube-connection.h
- svc-account-manager.h
- svc-account.h
- svc-call.h
- svc-channel-dispatch-operation.h
- svc-channel-dispatcher.h
- svc-channel-request.h
- svc-channel.h
- svc-client.h
- svc-connection-manager.h
- svc-connection.h
- svc-debug.h
- svc-generic.h
- svc-media-interfaces.h
- svc-properties-interface.h
- svc-protocol.h
- svc-tls.h
- telepathy-glib-dbus.h
- telepathy-glib-uninstalled.pc.in
- telepathy-glib.h
- telepathy-glib.pc.in
- TelepathyGLib-0.12.gir
- TelepathyGLib-0.12.metadata
- text-channel.c
- text-channel.h
- text-mixin.c
- text-mixin.h
- tls-cert.xml
- tls-certificate-rejection-internal.h
- tls-certificate-rejection.c
- tls-certificate-rejection.h
- tls-certificate.c
- tls-certificate.h
- util-internal.h
- util.c
- util.h
- variant-util-internal.h
- variant-util.c
- variant-util.h
- verify.h
- version.h.in
channel-iface.c @upstream/latest — raw · history · blame
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 | /* * tp-channel-iface.c - Stubs for Telepathy Channel interface * * Copyright (C) 2006 Collabora Ltd. * Copyright (C) 2006 Nokia Corporation * * This library 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.1 of the License, or (at your option) any later version. * * This library 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 library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * SECTION:channel-iface * @title: TpChannelIface * @short_description: interface representing basic channel properties * @see_also: #TpSvcChannel, #TpChannelFactoryIface * * This interface defines a basic set of channel properties. It's mainly * used in #TpChannelFactoryIface to represent the returned channel objects. */ #include "config.h" #include <telepathy-glib/channel-iface.h> #include <telepathy-glib/handle.h> static void tp_channel_iface_base_init (gpointer klass) { static gboolean initialized = FALSE; if (!initialized) { GParamSpec *param_spec; initialized = TRUE; /** * TpChannelIface:object-path: * * The D-Bus object path used for this object on the bus. Read-only * except during construction. */ param_spec = g_param_spec_string ("object-path", "D-Bus object path", "The D-Bus object path used for this object on the bus.", NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_interface_install_property (klass, param_spec); /** * TpChannelIface:channel-type: * * The D-Bus interface representing the type of this channel. Read-only * except during construction. * * In #TpChannel this property is read-only except during construction; * if %NULL during construction (the default), we ask the remote D-Bus * object what its channel type is, and reading this property will yield * %NULL until a reply is received. This is not guaranteed to have happened * until tp_proxy_prepare_async() has finished preparing * %TP_CHANNEL_FEATURE_CORE. * * In connection manager implementations, attempts to set this property * during construction will usually be ignored or treated as an * error. */ param_spec = g_param_spec_string ("channel-type", "Telepathy channel type", "The D-Bus interface representing the type of this channel.", NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_interface_install_property (klass, param_spec); /** * TpChannelIface:handle-type: * * The #TpHandleType of this channel's associated handle, or * %TP_HANDLE_TYPE_NONE (which is numerically 0) if no handle. * * In #TpChannel, if this is TP_UNKNOWN_HANDLE_TYPE * during construction, we ask the remote D-Bus object what its * handle type is; reading this property will yield TP_UNKNOWN_HANDLE_TYPE * until we get the reply. This is not guaranteed to be have happened * until tp_proxy_prepare_async() has finished preparing * %TP_CHANNEL_FEATURE_CORE. * * In connection manager implementations, attempts to set this during * construction might also be ignored. */ param_spec = g_param_spec_uint ("handle-type", "Handle type", "The TpHandleType of this channel's associated handle.", 0, G_MAXUINT32, TP_UNKNOWN_HANDLE_TYPE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_interface_install_property (klass, param_spec); /** * TpChannelIface:handle: * * This channel's associated handle, or 0 if no handle or unknown. * Read-only except during construction. * * In #TpChannel, if this is 0 * during construction, and handle-type is not TP_HANDLE_TYPE_NONE (== 0), * we ask the remote D-Bus object what its handle type is; reading this * property will yield 0 until we get the reply, or if GetHandle() * fails. This is not guaranteed to be set until tp_proxy_prepare_async() * has finished preparing %TP_CHANNEL_FEATURE_CORE. * * In connection manager implementations, attempts to set this during * construction might be ignored, depending on the channel type. */ param_spec = g_param_spec_uint ("handle", "Handle", "The TpHandle representing the contact, group, etc. with which " "this channel communicates, whose type is given by the handle-type " "property.", 0, G_MAXUINT32, 0, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_interface_install_property (klass, param_spec); } } GType tp_channel_iface_get_type (void) { static GType type = 0; if (type == 0) { static const GTypeInfo info = { sizeof (TpChannelIfaceClass), tp_channel_iface_base_init, /* base_init */ NULL, /* base_finalize */ NULL, /* class_init */ NULL, /* class_finalize */ NULL, /* class_data */ 0, 0, /* n_preallocs */ NULL /* instance_init */ }; type = g_type_register_static (G_TYPE_INTERFACE, "TpChannelIface", &info, 0); } return type; } |