[Bug 24901] voicemail interface usable with at least GSM and Skype

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 29 01:18:24 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=24901

--- Comment #38 from Danielle Madeley <danielle.madeley at collabora.co.uk> 2011-01-28 16:18:23 PST ---
(In reply to comment #32)
> I'm implementing a UI in Empathy, but when implementing voicemail deletion, I'm
> confused on whether VoicemailToken inside a Voicemail map as returned by
> NewVoicemails is a variant inside a variant (as everything else is something
> inside a variant) or is just the variant itself. It may be good to clarify
> this.

GValue *token = tp_asv_get_boxed (props, EMP_PROP_..._VOICEMAIL_TOKEN,
G_TYPE_VALUE); will return the opaque voicemail token.

However I've just remembered that there's no g_value_cmp() or g_value_equal()
etc. function we can use to actually compare the opaque GValues for equality.
This isn't a problem with GVariant, where we have g_variant_equal(), so I
suppose we could work around it by converting the GValues to GVariants via
dbus_g_value_build_g_variant().

It's worth noting that simply using the token is not enough, multiple
connections could use the same tokens (e.g. if the tokens are just say uint32s
enumerating from 1), so when finding which voicemail to remove it will be
important to compare the tuple (Connection, token).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list