summaryrefslogtreecommitdiff
path: root/examples/client
AgeCommit message (Collapse)AuthorFilesLines
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 McVittie15-19/+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-11inspect-cm.py: on errors, exit rather than blocking foreverSimon McVittie1-10/+13
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-26Make more use of tp_value_array_unpack, tp_value_array_buildSimon McVittie1-6/+7
As well as being less code, they're not flagged as deprecated. This requires a bit of extra copying, because there's no tp_value_array_unpack_dup() or tp_value_array_build_take(), but it seems worth it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-09-24Revert "Copy contact-list.c into the ${builddir} so the XInclude in the docs ↵Simon McVittie1-21/+0
works" This reverts commit ff26814b44720336cdcb298ddf45aea2edcfae0a. It has a race condition which *sometimes* breaks distcheck :-(
2013-09-24Copy contact-list.c into the ${builddir} so the XInclude in the docs worksSimon McVittie1-0/+21
This fixes the long-standing bug that if telepathy-glib was built out-of-tree, the documentation had "FIXME: MISSING XINCLUDE CONTENT" instead of the example. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69753
2013-09-24inspect-cm example: allow inspecting all CMsSimon McVittie1-78/+186
Also print a bit more information about protocols, and allow requesting timestamps in debug output. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68390 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24Revert "Copy contact-list.c into the ${builddir} so the XInclude in the docs ↵Guillaume Desmottes1-16/+0
works" This reverts commit ca33bfa878946a1ad904e0dcd88455e989223707.
2013-09-24Copy contact-list.c into the ${builddir} so the XInclude in the docs worksSimon McVittie1-0/+16
This fixes the long-standing bug that if telepathy-glib was built out-of-tree, the documentation had "FIXME: MISSING XINCLUDE CONTENT" instead of the example. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69753 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-06C text handler: comment why the subclass / feature-prep worksSimon McVittie1-3/+3
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-06Python text handler: ensure that we get a Tp.AutomaticClientFactorySimon McVittie1-2/+2
We want a Tp.TextChannel, not just a Tp.Channel, and the easiest way to do that is to use Tp.AccountManager.dup() (which provides a Tp.AutomaticClientFactory). Tp.SimpleHandler.new() is deprecated, for approximately this reason. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-06extended-client: comment that we're going behind MC's backSimon McVittie1-1/+4
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-06tube examples: use g_message(), not g_debug()Simon McVittie4-42/+42
g_debug() is invisible unless you set G_MESSAGES_DEBUG, which is unhelpful when smoke-testing example code. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-06tube offering examples: don't dump core on invalid argumentsSimon McVittie2-2/+9
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-06tube offerers: use an automatic client factorySimon McVittie2-2/+2
The TpSimpleClientFactory base class doesn't use channel-type-specific subclasses, which these examples rely on. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-06-10Add a simple JavaScript debug-client which collects debug logsSimon McVittie2-1/+241
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65518 Acked-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-04-02Merge branch 'telepathy-glib-0.20'Simon McVittie1-1/+1
2013-04-02contact list C-example: fix iteratingMaksim Melnikau1-1/+1
Signed-off-by: Maksim Melnikau <maxposedon@gmail.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=62968 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-01-08add missing config.h includesGuillaume Desmottes4-0/+8
g_type_init() has been deprecated in GLib master. By including config.h we avoid the deprecation warning as it contains GLib's versions macros.
2013-01-07del unused magic import in ft-handler.py exampleMaksim Melnikau1-2/+0
1) it isn't used now 2) it is prevents run example on machines, which hasn't magic 3) magic(libmagic) isn't popular in various linux distributions Signed-off-by: Maksim Melnikau <maxposedon@gmail.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-09-05TpTextChannel: Deprecate _get_ functions returning a GList and replace them ↵Xavier Claessens1-2/+2
by _dup_ New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib
2012-09-05TpAccountManager: Deprecate _get_ functions returning a GList and replace ↵Xavier Claessens1-4/+5
them by _dup_ New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib
2012-09-05TpDispatchOperation: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens1-1/+1
New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib There is intentionally no tp_dispatch_operation_get_immutable_properties() since those are internal implementation detail. Individual property getters should be enough.
2012-09-05TpChannel: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens1-13/+2
New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib _tp_channel_get_immutable_properties() is kept internal because we don't want to expose more dbus-glib structures. tp_channel_dup_immutable_properties() is added, it returns a GVariant and should be needed only to TpChannel subclasses.
2012-07-03Examples: stop using tp_account/connection/channel_new()Xavier Claessens6-92/+39
https://bugs.freedesktop.org/show_bug.cgi?id=49372
2012-06-05Remove useless TP_SEAL_ENABLEXavier Claessens3-3/+0
2012-06-05Examples: disable single includeXavier Claessens3-0/+3
https://bugs.freedesktop.org/show_bug.cgi?id=49384
2012-06-04Examples: Stop using tp_connection_manager_protocol_*Xavier Claessens1-25/+18
They are soon to be deprecated
2012-06-04Examples: Stop using tp_list_connection_managers()Xavier Claessens1-18/+15
It is soon to be deprecated
2012-06-04Compile all examples with TP_SEAL_ENABLESimon McVittie4-2/+10
The only changes needed were in extended-client.c.
2012-05-09Examples: do not use soon to be deprecated APIsXavier Claessens2-85/+54
2012-05-07All examples: follow the meta-header policySimon McVittie3-5/+0
Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49384
2012-05-02Stop using TP_ERRORSSimon McVittie2-2/+2
We deprecated this in 0.11.
2012-05-02TpConnection: Deprecate _get_self_handle()Xavier Claessens1-18/+10
New code should be using _get_self_contact()
2012-04-27TpChannel: Deprecate all TpHandle APIs that have TpContact variantXavier Claessens1-7/+9
https://bugs.freedesktop.org/show_bug.cgi?id=49213
2012-04-12Install remaining Python examplesSimon McVittie3-2/+4
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48504 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-04-12Optionally install most of the Python examplesSimon McVittie1-0/+20
We already optionally install many of the C examples. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48504 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-04-12Add a simple Gtk3 diallerSimon McVittie2-0/+201
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48504 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-04-04add stream-tubes.py/accepter.pyGuillaume Desmottes2-1/+75
2012-04-04add stream-tubes.py/offerer.pyGuillaume Desmottes2-1/+106
2012-04-03stream tube examples: send \n with dataGuillaume Desmottes2-2/+2
This will allow us to use g_data_input_stream_read_line_utf8() in Python as g_input_stream_read() is not bindable.
2012-04-03stream tube examples: use tp_channel_close_async()Guillaume Desmottes1-6/+14
2012-04-03stream tube examples: split sending/receiving data debug messagesGuillaume Desmottes2-5/+6
Make it easier to understand/debug what's going on.
2012-04-02Merge branch '29271-some-dbus-tube-api'Will Thompson6-3/+493
https://bugs.freedesktop.org/show_bug.cgi?id=29271 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2012-04-01dbus-tubes example: check method argument typesWill Thompson1-6/+15
2012-03-30Add an example dbus tube offerer and accepter.Will Thompson5-1/+482
2012-03-30media-observer: use more TpChannel accessorsGuillaume Desmottes1-9/+3
2012-03-30media-observer: Observe Call channels instead of StreamedMediaGuillaume Desmottes1-2/+2
2012-03-30approver.c: Approve Call channels instead of StreamedMediaGuillaume Desmottes1-1/+1
2012-03-28examples/client/stream-tubes/Makefile.am: ensure that we link on tp-glib ↵Guillaume Desmottes1-2/+2
from source It has to be the first one in LDADD