예제 #1
0
void QuteMessenger::deviceDiscoveryCompleteReport()
{
    disconnect(devDisc, SIGNAL(newDeviceFound(QBtDevice)), this,
               SLOT(populateDeviceList(QBtDevice)));
    disconnect(devDisc, SIGNAL(discoveryStopped()), this, SLOT(deviceDiscoveryCompleteReport()));

    if (dialog) {
        dialog->hide();
        delete dialog;
    }
}
예제 #2
0
void BTSettingsMainWindow::init()
{
    MyDevicesDisplay *pairedDevices = new MyDevicesDisplay(m_localDevice);

    m_tabs->setUpdatesEnabled(false);
    QString title = m_tabs->tabText(1);
    delete m_tabs->widget(1);
    m_tabs->insertTab(1, pairedDevices, title);
    m_tabs->setUpdatesEnabled(true);

    connect(m_controller, SIGNAL(powerStateChanged(QCommDeviceController::PowerState)),
            SLOT(setTabsEnabled(QCommDeviceController::PowerState)));
    setTabsEnabled(m_controller->powerState());

    QTimer::singleShot(200, pairedDevices, SLOT(populateDeviceList()));
}
예제 #3
0
void QuteMessenger::startDeviceDiscovery()
{
    SetupMenu(true);
    if (devDisc) {
        ui.deviceListWidget->clear();
        foundDevices.clear();
        connect(devDisc, SIGNAL(newDeviceFound(QBtDevice)), this,
                SLOT(populateDeviceList(QBtDevice)));
        connect(devDisc, SIGNAL(discoveryStopped()), this, SLOT(deviceDiscoveryCompleteReport()));
        devDisc->startDiscovery();

        dialog = new QProgressDialog("Searching devices...", "Stop", 0, 0, this);
        dialog->setWindowModality(Qt::WindowModal);
        connect(dialog, SIGNAL(canceled()), this, SLOT(deviceDiscoveryCompleteReport()));
        dialog->setBar(NULL);

        dialog->show();
    }
}
void PortAudioSettingsPage::hostAPIIndexChanged(int)
{
  populateDeviceList();
  autoselectDevice();
}
RealSenseDeviceManager::RealSenseDeviceManager ()
{
  populateDeviceList ();
}