bool QGenieWiFiProfileManagerController::getProfileAuthAndConnType(const QString &profileName,QString &auth,bool &binfrastructure)
{
    QString profileXml;
    bool bresult = false;

    auth.clear();
    binfrastructure = false;

    if(diagnose_inf && diagnose_inf->GetWlanInterfaceProfile(m_curInterface,profileName,profileXml))
    {
        auth = getProfileInfo(profileXml,"authentication");
        if(auth == "WPA2PSK")
        {
            auth = "WPA2-PSK";
        }
        else if(auth == "WPAPSK")
        {
            auth = "WPA-PSK";
        }

        QString connType = getProfileInfo(profileXml,"connectionType");
        binfrastructure = (connType == "ESS");

        bresult = true;
    }

    return bresult;
}
Ejemplo n.º 2
0
void ColumnGathererStream::readSuffixImpl()
{
    const BlockStreamProfileInfo & profile_info = getProfileInfo();
    double seconds = profile_info.total_stopwatch.elapsedSeconds();
    LOG_DEBUG(log, std::fixed << std::setprecision(2)
        << "Gathered column " << name
        << " (" << static_cast<double>(profile_info.bytes) / profile_info.rows << " bytes/elem.)"
        << " in " << seconds << " sec., "
        << profile_info.rows / seconds << " rows/sec., "
        << profile_info.bytes / 1048576.0 / seconds << " MiB/sec.");
}
void MergingSortedBlockInputStream::readSuffixImpl()
{
 	if (quiet)
 		return;

	const BlockStreamProfileInfo & profile_info = getProfileInfo();
	double seconds = profile_info.total_stopwatch.elapsedSeconds();
	LOG_DEBUG(log, std::fixed << std::setprecision(2)
		<< "Merge sorted " << profile_info.blocks << " blocks, " << profile_info.rows << " rows"
		<< " in " << seconds << " sec., "
		<< profile_info.rows / seconds << " rows/sec., "
		<< profile_info.bytes / 1000000.0 / seconds << " MB/sec.");
}
Ejemplo n.º 4
0
void ColumnGathererStream::readSuffixImpl()
{
    const BlockStreamProfileInfo & profile_info = getProfileInfo();

    /// Don't print info for small parts (< 10M rows)
    if (profile_info.rows < 10000000)
        return;

    double seconds = profile_info.total_stopwatch.elapsedSeconds();
    std::stringstream speed;
    if (seconds)
        speed << ", " << profile_info.rows / seconds << " rows/sec., "
            << profile_info.bytes / 1048576.0 / seconds << " MiB/sec.";
    LOG_TRACE(log, std::fixed << std::setprecision(2)
        << "Gathered column " << name
        << " (" << static_cast<double>(profile_info.bytes) / profile_info.rows << " bytes/elem.)"
        << " in " << seconds << " sec."
        << speed.str());
}