Changes: fix listening to group contacts by simply listening to changes on resources...
authorFriedrich W. H. Kossebau <friedrich@openismus.com>
Fri, 15 Oct 2010 14:51:02 +0000 (16:51 +0200)
committerFriedrich W. H. Kossebau <friedrich@openismus.com>
Fri, 15 Oct 2010 14:51:02 +0000 (16:51 +0200)
commit224e29481e962dd44b1cacbf789c273c5c71eb05
treed625dee94f18eaa2c981d87730d7c6922799a64e
parent267a2b422fdc68dc9729c7110c0950cdf123de61
Changes: fix listening to group contacts by simply listening to changes on resources of type nco:contact

RevBy: TrustMe

Details:
nco:ContactGroup is not flagged for property signalling in tracker, so Signaler::get(nco::ContactGroup::iri())
will never deliver. Instead we just listen to the common base class of both,
nco:Contact, which is flagged for signalling, and check if the iri is matching that of plain or group contact.
This works as described by iridian:
"the basic principle is that as long as the resource you're interested in, has the type you're listening through,
you will get notifications for all properties of that resource"
src/engine/trackerchangelistener.cpp
src/engine/trackerchangelistener.h