summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-03-19Make activation for tests work like our real activation setupactivation2Simon McVittie5-2/+11
2013-02-13More NEWSSimon McVittie1-0/+10
2013-02-13Merge branch 'altered-one-54780'Simon McVittie26-200/+957
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54780 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> [deleted a stray line from a comment as per wjt's review -smcv] Conflicts: src/mcd-account.c
2013-02-13More NEWS for 5.15Simon McVittie1-1/+15
2013-02-13Merge branch 'mock-account-store-54873'Simon McVittie29-183/+2803
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54873 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Conflicts: tests/twisted/account-manager/avatar.py
2013-02-13Merge branch 'typed-settings-54872'Simon McVittie15-221/+1064
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54872 [amended to add GLib 2.32 dependency -smcv] Conflicts: src/mcd-account.c
2013-01-09NEWS for 5.15Simon McVittie1-1/+42
2013-01-09Clean all generated files, so we can distcheck successfullySimon McVittie1-1/+10
2013-01-09Communicate the detailed error from McdConnection to McdAccountSimon McVittie4-20/+169
In particular, this propagates the error from RequestConnection failing correctly, so add a regression test for that. Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39334
2013-01-09Remove McdAccount::connection-status-changed signalSimon McVittie1-17/+0
Nothing listens to it. Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39334
2013-01-09account-addressing: fire PropertiesChanged on URISchemes changeGuillaume Desmottes2-1/+26
2013-01-09addressing.py: 'mailto' is the proper URI schemeGuillaume Desmottes1-6/+6
2013-01-09Bump tp-glib dependency for tp_vardict_get_*Will Thompson1-1/+1
a5a5d850 started using these functions, which were introduced in telepathy-glib 0.20.0.
2012-11-16build: honor NOCONFIGURE in autogen.shCosimo Cecchi1-10/+15
Like telepathy-glib does already. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=57165 Reviewed-By: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-11-01Update to current ConnMan APIMike Ruprecht2-22/+52
ConnMan 0.79 removed the GetState method and StateChanged signal. Use the GetProperties method and PropertyChanged signals as their replacements. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56600 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2012-10-30Add missing config.h includesGuillaume Desmottes4-0/+8
g_type_init() has been deprecated in GLib master. By including those files I can build without raising a deprecation error as we define GLIB_VERSION_MIN_REQUIRED to 2.30.
2012-10-09Merge branch 'aliasing-avatars'Simon McVittie8-484/+705
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55668 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-09Check for the specific error codes when reconnectingEmilio Pozuelo Monfort1-2/+79
The NetworkError connection status maps to several TpErrors, so first check the error codes to decide whether we should automatically reconnect, and fallback to the connection status if we don't recognize the error. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37844 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-10-09mcd_account_self_contact_changed_cb: ignore no-op changesSimon McVittie1-5/+5
2012-10-09mcd_account_process_initial_avatar_token: don't take self_contact argumentSimon McVittie1-6/+10
It can be retrieved from the McdAccount.
2012-10-09Ignore changes to the avatar of former self-contactsSimon McVittie1-2/+8
This is highly theoretical, but in principle it could happen.
2012-10-09Implement Set("Nickname", "") by using the normalized name insteadSimon McVittie2-5/+46
This is consistent with what we do when we first connect, and ensures that we always have some sort of nickname.
2012-10-09nickname test: test what happens when we set an empty nicknameSimon McVittie1-21/+49
2012-10-09Downgrade failure to prepare self-contact from WARNING to DEBUGSimon McVittie1-1/+1
2012-10-09Downgrade failure to set alias/avatar from WARNING to DEBUGSimon McVittie1-3/+3
2012-10-09Track Avatars using McdAccount, and use the self-contact for itSimon McVittie3-277/+229
2012-10-09Emulate the Aliasing interface a little more realisticallySimon McVittie3-13/+31
2012-10-09Knock out most of the IRC test until fd.o #55666 is fixedSimon McVittie1-0/+4
2012-10-09Add a regression test for an IRC-like protocolSimon McVittie3-0/+134
IRC has plenty of oddities, but the one we're interested in here is that your nickname and your unique identifier are inextricably linked.
2012-10-09McdAccount: cope with self-contact changes; follow the self-contactSimon McVittie1-14/+39
2012-10-09nickname test: verify that a trivial nickname is not set on connectSimon McVittie2-20/+69
2012-10-09enable_fakecm_account: copy parameters and alter the copySimon McVittie1-1/+5
Mutable defaults for arguments are dangerous. If we call enable_fakecm_account twice with default arguments, when we alter expect_before_connect/expect_after_connect, we are actually altering the default! Python doesn't construct a new empty list for us every time. The C equivalent would be a static GPtrArray * or something.
2012-10-09Don't set the nickname to the normalized name on connectSimon McVittie1-3/+17
We still allow the nickname to be set to the normalized name by user action later, because in that case, the intention is unambiguous: the user really does want their nickname to take that value. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39381
2012-10-09McdAccount: take responsibility for setting the nicknameSimon McVittie3-168/+107
As well as being implemented in a more streamlined way (using the self-contact instead of calling D-Bus methods directly), this reduces the circular dependencies between McdConnection and McdAccount.
2012-10-09McdAccount: store the self-contactSimon McVittie1-4/+7
2012-10-08_mcd_client_match_property: take channel properties as GVariantSimon McVittie2-20/+13
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08Generally use GVariant, not GHashTable, for channels' propertiesSimon McVittie13-51/+113
This means we can avoid the deprecated tp_channel_borrow_immutable_properties(). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08mc-tool: have a TpSimpleClientFactory to manufacture accountsSimon McVittie1-1/+5
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08McpDispatchOperation: use a new factory for each connectionSimon McVittie1-6/+16
This avoids the deprecated tp_channel_new_from_properties(). It has the same disadvantages as that function, but is a bit more obvious about it. Also comment how to change things at the next ABI break. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08McdConnection: use TpWeakRef instead of replicating itSimon McVittie1-53/+22
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08McdChannel: use the TpConnection's factory to make TpChannel objectsSimon McVittie1-4/+8
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08McdAccountManager: have a TpSimpleClientFactorySimon McVittie3-13/+41
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08McdAccountManager: use tp_dbus_daemon_register_objectSimon McVittie1-7/+3
dbus_g_connection_register_g_object isn't deprecated, but it's more code. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08McdChannel: use tp_channel_get_requested instead of reinventing itSimon McVittie1-18/+2
MC's reinvention was potentially better if the channel might lack the Requested property... but that property has been mandatory for years, so CMs that haven't caught up can just deal with it. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08Use tp_channel_get_connection instead of tp_channel_borrow_connectionSimon McVittie3-4/+4
This requires telepathy-glib 0.19.9, so depend on it. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08mc-tool: use tp_account_manager_dup_valid_accountsSimon McVittie1-8/+8
tp_account_manager_get_valid_accounts has the confusing (transfer container) transfer-mode, and is deprecated in telepathy-glib 0.19.9. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08Enable TP_DISABLE_SINGLE_INCLUDESimon McVittie1-0/+1
Tested with telepathy-glib 0.20.0. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08Update code generation tools from telepathy-glib 0.20.0Simon McVittie6-275/+474
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08Enable TP_SEAL_ENABLESimon McVittie1-0/+1
Tested with telepathy-glib 0.20.0. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-10-08replace sealed struct members with getters and use TpProtocolSimon McVittie9-60/+85
Originally two patches for 'next' by Jonny Lamb. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>