Accessors in Channel and other D-Bus proxies which are initialized from immutable properties should return the immutable property data immediately after construction
@oggis
Submitted by Olli Salli Assigned to Telepathy bugs list
Description
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.
Version: git master