Bug 41654

Summary: Accessors in Channel and other D-Bus proxies which are initialized from immutable properties should return the immutable property data immediately after construction
Product: Telepathy Reporter: Olli Salli <ollisal>
Component: tp-qtAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: ollisal
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Olli Salli 2011-10-10 08:55:56 UTC
Currently, Channel only populates the accessors like channelType() from the immutable properties when FeatureCore preparing is started. This makes us and others write code like the following in the handleChannels() implementation of the internal SimpleStreamTubeHandler class:

> // TODO: if Channel ever starts utilizing its immutable props for the immutable
> // accessors, use Channel::channelType() here
> const QString channelType =
>     chan->immutableProperties()[QLatin1String(
>          TELEPATHY_INTERFACE_CHANNEL ".ChannelType")].toString();

I believe a similar situation exists for some other classes too. I specifically fixed ChannelRequest to work sensibly in this regard last year.
Comment 1 GitLab Migration User 2019-12-03 20:28:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-qt/issues/28.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.