QSet<ctkServiceSlotEntry> ctkPluginFrameworkListeners::getMatchingServiceSlots(
    const ctkServiceReference& sr)
{
  QMutexLocker lock(&mutex); Q_UNUSED(lock);

  QSet<ctkServiceSlotEntry> set;
  // Check complicated or empty listener filters
  int n = 0;
  foreach (ctkServiceSlotEntry sse, complicatedListeners)
  {
    ++n;
    if (sse.getLDAPExpr().isNull() || sse.getLDAPExpr().evaluate(sr.d_func()->getProperties(), false))
    {
      set.insert(sse);
    }
  }
Пример #2
0
bool ctkLDAPSearchFilter::match(const ctkServiceReference& reference) const
{
  return d->ldapExpr.evaluate(reference.d_func()->getProperties(), true);
}