Bug 41654 - Accessors in Channel and other D-Bus proxies which are initialized from immutable properties should return the immutable property data immediately after construction
Summary: Accessors in Channel and other D-Bus proxies which are initialized from immut...
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: git master
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 08:55 UTC by Olli Salli
Modified: 2019-12-03 20:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.