Exemplo n.º 1
0
  void AnalysisObject_Impl::connectChild(AnalysisObject& child, bool setParent) const {
    if (setParent) {
      AnalysisObject copyOfThis = getPublicObject<AnalysisObject>();
      child.setParent(copyOfThis);
    }

    connect(this, &AnalysisObject_Impl::clean, child.getImpl<detail::AnalysisObject_Impl>().get(), &detail::AnalysisObject_Impl::onParentClean);
    bool connected = child.connect(SIGNAL(changed(ChangeType)), this, SLOT(onChildChanged(ChangeType)));
    OS_ASSERT(connected);
  }
Exemplo n.º 2
0
  void AnalysisObject_Impl::disconnectChild(AnalysisObject& child,bool clearParent) const {
    if (clearParent) {
      child.clearParent();
    }

    disconnect(this, &AnalysisObject_Impl::clean, child.getImpl<detail::AnalysisObject_Impl>().get(), &detail::AnalysisObject_Impl::onParentClean);
    bool disconnected = child.disconnect(SIGNAL(changed(ChangeType)),
                                    this,
                                    SLOT(onChildChanged(ChangeType)));
    OS_ASSERT(disconnected);
  }
Exemplo n.º 3
0
  void AnalysisObject_Impl::disconnectChild(AnalysisObject& child) const {
    child.clearParent();

    bool disconnected = disconnect(SIGNAL(clean()),
                                   child.getImpl<detail::AnalysisObject_Impl>().get(),
                                   SLOT(onParentClean()));
    BOOST_ASSERT(disconnected);
    disconnected = child.disconnect(SIGNAL(changed(ChangeType)),
                                    this,
                                    SLOT(onChildChanged(ChangeType)));
    BOOST_ASSERT(disconnected);
  }
Exemplo n.º 4
0
 bool AnalysisObject_Impl::uuidAndVersionEqual(const AnalysisObject& other) const {
   return ((uuid() == other.uuid()) && (versionUUID() == other.versionUUID()));
 }
Exemplo n.º 5
0
 bool AnalysisObject_Impl::uuidEqual(const AnalysisObject& other) const {
   return (uuid() == other.uuid());
 }