Exemplo n.º 1
0
void ELD::show()
{
    int i;

    if (!isValid())
    {
        VBAUDIO("Invalid ELD");
        return;
    }
    VBAUDIO(QString("Detected monitor %1 at connection type %2")
            .arg(product_name().simplified())
            .arg(connection_name()));

    if (m_e.spk_alloc)
    {
        VBAUDIO(QString("available speakers:%1")
                .arg(channel_allocation_desc()));
    }
    VBAUDIO(QString("max LPCM channels = %1").arg(maxLPCMChannels()));
    VBAUDIO(QString("max channels = %1").arg(maxChannels()));
    VBAUDIO(QString("supported codecs = %1").arg(codecs_desc()));
    for (i = 0; i < m_e.sad_count; i++)
    {
        VBAUDIO(sad_desc(i));
    }
}
Exemplo n.º 2
0
void DBConnectMainWindow::disconnect(void)
{
    // clear query associated with DB.
    m_QueryModel.setQuery(QSqlQuery());

    // clear model and close database.
    m_QueryModel.clear();
    m_FullFetchModel.clear();
    m_DbConnection.close();

    // remove the connection.
    QString connection_name(m_DbConnection.connectionName());
    m_DbConnection = QSqlDatabase();
    m_DbConnection.removeDatabase(connection_name);
}