summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2014-04-11TpBaseConnection: be a GDBusObjectSkeletonSimon McVittie5-79/+49
2014-04-10TpBaseProtocol: be a GDBusObjectSkeletonSimon McVittie1-15/+0
This means we don't need the get_interfaces_array() vfunc, because we can inspect the GDBusObject interface to find out what our interfaces are.
2014-04-10Simplify TpPresenceMixin by removing all support for non-message parametersSimon McVittie3-54/+19
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77191 Reviewed-by: Xavier Claessens
2014-04-10tp_group_mixin_change_members: take a GVariant for the detailsSimon McVittie1-27/+7
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77190 Reviewed-by: Xavier Claessens
2014-04-08Stop implementing TpSvcDBusProperties interfaceXavier Claessens1-2/+0
GDBusConnection and TpSvcInterfaceSkeleton does it for us already. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77144 Reviewed-by: Simon McVittie
2014-04-08Rename all mentions of handle types to entity typesSimon McVittie1-3/+3
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77139 Reviewed-by: Xavier Claessens
2014-04-08Remove tp_message_set in favour of tp_message_set_variantSimon McVittie1-5/+14
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77139 Reviewed-by: Xavier Claessens
2014-04-08Remove tp_connection_manager_param_get_defaultSimon McVittie1-4/+6
It uses the dbus-glib type system. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77139 Reviewed-by: Xavier Claessens
2014-04-03Fold the core library into the dbus librarySimon McVittie10-10/+0
tp_dbus_g_method_return_not_implemented is non-essential, so we can easily put it in the -dbus library. tp_proxy_check_interface_by_id should be available in the high-level API, but with a couple of #define hacks we can make it available to generated code in the -dbus library under the same name. tp_proxy_pending_call_v1_new and tp_proxy_signal_connection_v1_new can safely go in the -dbus library: they don't deserve to be part of the high-level API. This reduces us to one shared library per level of API stability, which is exactly the right number. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76855 Reviewed-by: Xavier Claessens
2014-04-03Move dbus-glib-style a{sv} utilities into the dbus librarySimon McVittie4-0/+4
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76855 Reviewed-by: Xavier Claessens
2014-04-01Replace all occurences of TpDBusDaemon by GDBusConnectionXavier Claessens2-8/+8
This is a huge commit but almost brainless. There is a notable change in tp_tests_proxy_run_until_dbus_queue_processed() to support taking a GDBusConnection instead of a proxy.
2014-04-01TpConnectionManager: Always create from a factoryXavier Claessens2-7/+9
Also create CM's TpProtocol objects from the factory now that the CM always has one. In protocol-objects test_factory() it changes the cm_name because TpProtocol objects are now shared with TpConnectionManager that keeps a ref on them.
2014-04-01TpConnectionManager: Take a factory to list CMsXavier Claessens2-8/+10
The factory will be used to create TpConnectionManager objects in the next commit
2014-03-27TpConnection: Remove tp_list_connection_names()Xavier Claessens2-92/+0
Applications should use TpAccountManager to list online accounts. The only user of this function is MissionControl but it can call ListNames itself. Note that example code was even wrong. It says "list installed connection managers" but what is actually do is listing currently running CMs. Conflicts: examples/client/Makefile.am Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2014-03-26Replace trivial uses of DBusGMethodInvocation with GDBusMethodInvocationSimon McVittie4-12/+12
Mostly done with perl/sed one-liners.
2014-03-26Remove TpProxy::interface-added, and dbus-glib marshaller registrationSimon McVittie4-34/+0
In the glorious GDBus future, we won't need marshaller and signal registration. This also means we can get rid of the init_known_interfaces() family of functions, which were only there to support interface-added. This commit is the first of many that will break bisection. That's somewhat unavoidable if you want to go from libdbus to GDBus without having a single mega-commit :-)
2014-03-25examples: use telepathy-1-example-* naming conventionSimon McVittie8-61/+61
This prevents them from colliding with installable examples from telepathy-0. Similarly, install their .manager files to the expected place for telepathy-1 (DATADIR/telepathy-1, not DATADIR/telepathy). Reviewed-by: Xavier Claessens
2014-03-18base-client: remove _object suffix from higher level filter APIGuillaume Desmottes5-8/+8
2014-03-18TpChannelFilter: addSimon McVittie7-55/+34
This is the object-oriented/GVariant-flavoured version of GHashTable-based filtering. Also use it in code examples, for much simplification.
2014-03-06echo-message-parts: use tp_message_dup_part()Guillaume Desmottes1-23/+36
2014-02-27base-client: rename filter vardict APIGuillaume Desmottes5-8/+8
2014-02-27examples: use tp_base_client_*_vardict APIGuillaume Desmottes5-69/+43
Looks like we forgot to re-enable some code while porting to Call.
2014-02-27rename tp_account_channel_request_new_vardictGuillaume Desmottes2-2/+2
2014-02-18tube examples: use tp_account_channel_request_new_vardict()Guillaume Desmottes2-42/+16
2014-02-13TargetHandleType has been renamed to TargetEntityTypeGuillaume Desmottes24-37/+37
2014-02-13TpHandleType has been renmed to TpEntityTypeGuillaume Desmottes19-55/+55
2014-01-29tp_channel_manager_*: be a proper methodGuillaume Desmottes3-20/+21
Make gir happier.
2014-01-29remove tp_channel_manager_request_channel()Guillaume Desmottes3-7/+0
RequestChannel() has been removed.
2014-01-29TpChannelManagerRequestFunc: take a TpChannelManagerRequestGuillaume Desmottes3-48/+50
2014-01-24Approver high level API: make singularGuillaume Desmottes1-11/+4
2014-01-24Handler high level API: make singularGuillaume Desmottes3-92/+31
2014-01-24rename TpHandleChannelsContext to TpHandleChannelContextGuillaume Desmottes3-11/+11
2014-01-24Observer high level API: make singularGuillaume Desmottes1-25/+12
2014-01-24rename TpObserveChannelsContext to TpObserveChannelContextGuillaume Desmottes1-3/+3
2014-01-20HandleWithTime() has been removedGuillaume Desmottes1-1/+1
2014-01-20Approver is now singularGuillaume Desmottes1-5/+5
2014-01-13TpBaseContactList: add mandatory is_blocked vfuncSimon McVittie1-0/+10
This makes the implementation of the former Contacts methods more efficient. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-13Simplify TpPresenceMixin by making the "get contact status" vfunc singularSimon McVittie2-63/+46
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-13Assume that Conn.I.Requests is supported, and don't put it in InterfacesSimon McVittie5-5/+0
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-13Adjust telepathy-glib code for removal of Contacts interfaceSimon McVittie10-10/+5
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-13TpBaseConnection: absorb the functionality of the TpContactsMixinSimon McVittie10-121/+43
It's a somewhat different "shape" - using a fill_contacts_attribute() virtual method - so that it's (hopefully) introspectable. This is a step towards folding Contacts into Connection. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-07Merge branch 'master' into nextSimon McVittie16-23/+0
[Also remove g_type_init() from the Logger, matching telepathy-glib. -smcv] Conflicts: examples/client/js/contact-list.js examples/client/js/debug-client.js examples/client/python/contact-list.py examples/client/python/dialler.py examples/client/python/ensure-channel.py examples/client/python/file-transfer.py examples/client/python/ft-handler.py examples/client/python/inspect-cm.py examples/client/python/stream-tube-accepter.py examples/client/python/stream-tube-offerer.py examples/client/python/text-handler.py examples/client/stream-tubes/offerer.c telepathy-glib/file-transfer-channel.c tests/dbus/connection-balance.c tests/dbus/connection-bug-18845.c tests/dbus/connection-getinterfaces-failure.c tests/dbus/connection-handles.c tests/dbus/connection-inject-bug16307.c tests/dbus/params-cm.c tests/dbus/text-mixin.c tests/enums.c
2014-01-07examples: explicitly ask for TelepathyGLib-1Simon McVittie11-0/+28
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49737 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-07examples: explicitly ask for TelepathyGLib-0.12Simon McVittie11-0/+28
TelepathyGLib-1 isn't going to be fully compatible. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49737 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-07Stop calling g_type_init()Simon McVittie16-23/+0
It was deprecated in GLib 2.36, and we already have a hard dependency on that version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-11-11Merge branch 'master' into nextSimon McVittie2-11/+82
Conflicts: docs/reference/telepathy-glib-sections.txt
2013-11-11Replace some remaining uses of org.freedesktop.TelepathySimon McVittie11-28/+28
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71262 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-11-11Replace im.telepathy1 with im.telepathy.v1Simon McVittie2-16/+16
This also fixes a few uses of im.telepathy1 in object paths in Logger code, which was presumably a misuse of sed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71262 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-11-11TpProtocol: add high-level API for the Addressing interfaceSimon McVittie1-0/+68
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-11-11tp_protocol_identify_account_async: add and testSimon McVittie1-1/+1
To make the test a little more interesting and a little more realistic, we normalize the 'account' parameter to lower-case. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>