summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-channel.h
Commit message (Collapse)AuthorAgeFilesLines
* version 0.19.7telepathy-glib-0.19.7Jonny Lamb2012-08-271-3/+3
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Merge branch 'base-channel-disappear'Jonny Lamb2012-08-271-0/+7
|\
| * base-channel: add support for 'disappearing' channelsJonny Lamb2012-06-051-0/+7
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | Remove from doc sealed fieldsXavier Claessens2012-07-051-0/+2
| | | | | | | | Otherwise gtk-doc gets confused
* | TpBaseChannelClass: Seal interfaces memberXavier Claessens2012-06-261-1/+1
| | | | | | | | It is deprecated and should not be used anymore.
* | Add single-include #error in all headers included from telepathy-glib(-dbus).hXavier Claessens2012-06-051-0/+4
|/ | | | https://bugs.freedesktop.org/show_bug.cgi?id=49384
* Version-annotate recent APISimon McVittie2012-05-031-0/+2
|
* Merge branch 'master' into call1Xavier Claessens2012-01-201-1/+3
|\
| * base-channel: deprecate interfaces class property for get_interfaces() methodDanielle Madeley2012-01-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With the interfaces class property, programmers writing a concrete class could not chain-up to inherit the interfaces implemented by the base class. Using a get_interfaces() class method, the programmer can simply add the interfaces she is implementing to those of the base class. Furthermore, classes that only implement an interface in specific instances required a subclass that had to be instantiated by the manager. This is no longer required. For backwards compatibility, the base get_interfaces() method returns the value of the interfaces class property.
* | TpBaseChannel: Add tp_base_channel_get_self_handle()Xavier Claessens2012-01-101-0/+1
|/
* Correct copyright years in TpBaseChannelSimon McVittie2010-08-251-2/+2
|
* Add tp_base_channel_close()Will Thompson2010-08-251-0/+1
| | | | | | | | | | | | This calls the ->close() vfunc, having checked that the channel is not already destroyed. I found that a whole bunch of channels had their own close function which is equivalent to Close() but checks is_destroyed() first, so this seems like sensible boilerplate to move up to TpBaseChannel. Of course, some channels might need their own flag to say "close is in progress" so that two overlapping calls to Close() don't break them, but that's okay, they can still do that.
* Add tp_base_channel_is_registered()Will Thompson2010-08-241-0/+1
| | | | | I seem to need this in porting Gabble's Call channel implementation to TpBaseChannel.
* Fix miscellaneous style trivia.Will Thompson2010-08-241-1/+1
|
* TpBaseChannel: add get_object_path_suffice vfuncJonathon Jongsma2010-08-231-0/+2
| | | | | | | This virtual function is to generate a unique object path for each channel object if the 'object-path' property is not specified during construction. This allows implementations to use the memory address of the channel object in their object path if they want, for example.
* TpBaseChannel: miscellaneous fixes from reviewJonathon Jongsma2010-08-231-1/+1
|
* TpBaseChannel: rename 'target' to 'target_handle'Jonathon Jongsma2010-08-231-2/+2
| | | | | To be more explicit, we're renamed _get_target() to _get_target_handle(), and the target_type class member is now called target_handle_type.
* Fix a variety of small documentation issues from reviewJonathon Jongsma2010-08-231-1/+4
| | | | | | | | | - fix the gtk-doc 'make check' breakage properly (by simply removing the documentation for the parent object and class and putting them into a 'private' section). - document the get_target() ownership in text rather than g-i annotation since that doesn't really apply for integer types - fixed the 'since' tag so that it is not out-of-date
* Add tp_base_channel_is_destroyed()Will Thompson2010-08-231-0/+1
| | | | | | | | | | | | | Quite a few channel implementations have clean-up that they need to ensure happens exactly once, and so used to keep their own track of whether they've been closed or not. This accessor allows them to delegate tracking that to TpBaseChannel without needing to use g_object_get (..., "channel-destroyed", ...); Technically this accessor should live on TpExportableChannel, since that's where the property is defined. But its semantics are easier to explain if we can talk about tp_base_channel_destroyed(), so I put it here.
* TpBaseChannel: rename add_properties() to fill_immutable_properties()Jonathon Jongsma2010-08-201-2/+2
| | | | The new name describes the purpose of the vfunc much better
* Typedef the TpBaseChannelClass vfuncs' signaturesWill Thompson2010-08-191-2/+6
| | | | | This makes it easier to cast implementations, if the CM author so desires.
* Add tp_base_channel_is_requested()Will Thompson2010-08-191-0/+1
|
* Add accessors for TpBaseChannel's target and initiatorWill Thompson2010-08-191-0/+2
|
* Add tp_base_channel_get_connection()Will Thompson2010-08-191-0/+1
|
* Add tp_base_channel_get_object_path()Will Thompson2010-08-191-0/+2
| | | | | This is easier to use if you just want to peek at the object path than g_object_get (...); use; g_free().
* TpBaseChannel: Add class documentationJonathon Jongsma2010-08-171-2/+4
| | | | | | re-arrange the class members so that they're in a more sensible order, add documentation for all class members, virtual functions, etc. Also update the existing documentation to match the current implementation.
* BaseChannel: provide dbus properties via vfuncJonathon Jongsma2010-08-171-1/+1
| | | | | | | | | Instead of forcing subclasses to override the 'channel-properties' class and specify each property that they support (including those of all base classes), try a more maintainable approach: each subclass should implement the add_properties() virtual function, and should add supported properties to the provided hash table using tp_dbus_properties_mixin_fill_properties_hash() and then chain up to the parent vfunc.
* TpBaseChannel: add initiator arg to tp_base_channel_reopened()Jonathon Jongsma2010-08-171-1/+1
| | | | | | | | | | When a channel is re-spawned, we need to switch its initiator to the contact that caused the channel to be re-spawned. Rather than requiring all client code to explicitly change the initiator property separately (which is currently a construct-only param), just do it all in one function call. This makes the client code more straightforward and side-steps the complication that the property setter can not ref the initiator handle while in construction and defers this work to the 'constructed' vfunc.
* TpBaseChannel: add accessor for base propertiesJonathon Jongsma2010-08-171-0/+1
| | | | | | | | | In order to make it easier for subclasses to add extra dbus properties, I added a tp_base_channel_get_immutable_properties() accessor which returns the base set of properties for a channel. Channel subclasses can extend this by adding new properties to the list (via tp_dbus_properties_mixin_fill_properties_hash()) and overriding the "channel-properties" property to return the expanded hash table.
* TpBaseChannel: Add a close() virtual functionJonathon Jongsma2010-08-051-0/+3
| | | | | | | Instead of requiring subclasses to implement the Close() method of TpSvcChannel, they can simply implement the gobject virtual function instead. This makes things a bit simpler and aalso aids in porting to GDBus in the future as well.
* TpBaseChannel: Make data members privateJonathon Jongsma2010-08-051-10/+2
| | | | | Move everything to a private struct and add some padding for future expansion to the BaseChannelClass struct
* Add a Base Channel implementation to telepathy-glibJonathon Jongsma2010-08-041-0/+89
The implementation is stolen from gabble and implements a lot of the common functionality that Channels need to provde. This prevents a lot of copy/paste and code duplication between CMS (and even for different channel types within the same CM).