EntryModel::EntryModel(QObject *parent) : ListModel(new EntryItem, parent), initer(parent) { reInit = false; Settings *s = Settings::instance(); connect(s,SIGNAL(filterChanged()),this,SLOT(initInThread())); connect(&initer,SIGNAL(finished()),this,SLOT(initFinished())); connect(s,SIGNAL(showOldestFirstChanged()),this,SLOT(init())); }
void eaps8000UsbUICharWindow::connectPortFunctions() { connect( &_port, SIGNAL( initSuccessful( QString ) ), this, SLOT( initFinished( QString ) ) ); connect( &_port, SIGNAL( portError( QString ) ), this, SLOT( portError( QString ) ) ); connect( &_port, SIGNAL( newVoltage( double ) ), this, SLOT( voltageUpdate( double ) ) ); connect( &_port, SIGNAL( newCurrent( double ) ), this, SLOT( currentUpdate( double ) ) ); connect( &_port, SIGNAL( newPower( double ) ), this, SLOT( powerUpdate( double ) ) ); }
void elFlowWindow::connectPortFunctions() { connect( &_port, SIGNAL( initSuccessful( QString ) ), this, SLOT( initFinished( QString ) ) ); connect( &_port, SIGNAL( portError( QString ) ), this, SLOT( portError( QString ) ) ); connect( &_port, SIGNAL( newFlow( double ) ), this, SLOT( flowUpdate( double ) ) ); connect( &_port, SIGNAL( newTemperature( double ) ), this, SLOT( temperatureUpdate( double ) ) ); connect( &_port, SIGNAL( newPressure( double ) ), this, SLOT( pressureUpdate( double ) ) ); }
void ObexManagerPrivate::nameHasOwnerFinished(QDBusPendingCallWatcher *watcher) { const QDBusPendingReply<bool> &reply = *watcher; watcher->deleteLater(); if (reply.isError()) { Q_EMIT initError(reply.error().message()); return; } m_obexRunning = reply.value(); if (m_obexRunning) { load(); } else { m_initialized = true; Q_EMIT initFinished(); } }
void ObexManagerPrivate::getManagedObjectsFinished(QDBusPendingCallWatcher *watcher) { const QDBusPendingReply<DBusManagerStruct> &reply = *watcher; watcher->deleteLater(); if (reply.isError()) { Q_EMIT initError(reply.error().message()); return; } DBusManagerStruct::const_iterator it; const DBusManagerStruct &managedObjects = reply.value(); for (it = managedObjects.constBegin(); it != managedObjects.constEnd(); ++it) { const QString &path = it.key().path(); const QVariantMapMap &interfaces = it.value(); if (interfaces.contains(Strings::orgBluezObexSession1())) { addSession(path, interfaces.value(Strings::orgBluezObexSession1())); } else if (interfaces.contains(Strings::orgBluezObexClient1()) && interfaces.contains(Strings::orgBluezObexAgentManager1())) { m_obexClient = new ObexClient(Strings::orgBluezObex(), path, DBusConnection::orgBluezObex(), this); m_obexAgentManager = new ObexAgentManager(Strings::orgBluezObex(), path, DBusConnection::orgBluezObex(), this); } } if (!m_obexClient) { Q_EMIT initError(QStringLiteral("Cannot find org.bluez.obex.Client1 object!")); return; } if (!m_obexAgentManager) { Q_EMIT initError(QStringLiteral("Cannot find org.bluez.obex.AgentManager1 object!")); return; } m_loaded = true; m_initialized = true; Q_EMIT q->operationalChanged(true); Q_EMIT initFinished(); }