Modify some debug sentences
This commit is contained in:
parent
a058591a12
commit
a3d256fad1
|
@ -82,7 +82,7 @@ int main(int argc, char *argv[])
|
||||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
qInstallMessageHandler(messageOutput);
|
//qInstallMessageHandler(messageOutput);
|
||||||
|
|
||||||
openlog(LOG_IDENT, LOG_NDELAY | LOG_NOWAIT | LOG_PID, LOG_USER);
|
openlog(LOG_IDENT, LOG_NDELAY | LOG_NOWAIT | LOG_PID, LOG_USER);
|
||||||
syslog(LOG_DEBUG, "Kylin Network Manager Is Already Launched");
|
syslog(LOG_DEBUG, "Kylin Network Manager Is Already Launched");
|
||||||
|
|
|
@ -978,7 +978,6 @@ void MainWindow::onPhysicalCarrierChanged(bool flag)
|
||||||
syslog(LOG_DEBUG,"wired physical cable is already plug out");
|
syslog(LOG_DEBUG,"wired physical cable is already plug out");
|
||||||
QtConcurrent::run([=](){
|
QtConcurrent::run([=](){
|
||||||
while (1) {
|
while (1) {
|
||||||
//activeLanDisconn();
|
|
||||||
BackThread *bt = new BackThread();
|
BackThread *bt = new BackThread();
|
||||||
IFace *iface = bt->execGetIface();
|
IFace *iface = bt->execGetIface();
|
||||||
if (iface->lstate != 0) {
|
if (iface->lstate != 0) {
|
||||||
|
@ -1622,7 +1621,7 @@ void MainWindow::getLanListDone(QStringList slist)
|
||||||
|
|
||||||
OneLancForm *ccfAct = new OneLancForm(topLanListWidget, this, confForm, ksnm);
|
OneLancForm *ccfAct = new OneLancForm(topLanListWidget, this, confForm, ksnm);
|
||||||
connect(ccfAct, SIGNAL(selectedOneLanForm(QString, QString)), this, SLOT(oneTopLanFormSelected(QString, QString)));
|
connect(ccfAct, SIGNAL(selectedOneLanForm(QString, QString)), this, SLOT(oneTopLanFormSelected(QString, QString)));
|
||||||
connect(ccfAct, SIGNAL(disconnActiveLan()), this, SLOT(activeLanDisconn()));
|
connect(ccfAct, SIGNAL(requestHandleLanDisconn()), this, SLOT(handleLanDisconn()));
|
||||||
ccfAct->setLanName(nname, ltype, nuuid, mIfName);//第二个参数本来是strLanName,但目前不需要翻译
|
ccfAct->setLanName(nname, ltype, nuuid, mIfName);//第二个参数本来是strLanName,但目前不需要翻译
|
||||||
ccfAct->setIcon(true);
|
ccfAct->setIcon(true);
|
||||||
ccfAct->setLanInfo(objKyDBus->dbusActiveLanIpv4, objKyDBus->dbusActiveLanIpv6, mwBandWidth, macInterface);
|
ccfAct->setLanInfo(objKyDBus->dbusActiveLanIpv4, objKyDBus->dbusActiveLanIpv6, mwBandWidth, macInterface);
|
||||||
|
@ -1776,11 +1775,11 @@ void MainWindow::getWifiListDone(QStringList slist)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current_wifi_list_state == RECONNECT_WIFI) {
|
if (current_wifi_list_state == RECONNECT_WIFI) {
|
||||||
qDebug()<<"======优选后的列表为======";
|
//qDebug()<<"======优选后的列表为======";
|
||||||
foreach (QString line, slist) {
|
//foreach (QString line, slist) {
|
||||||
qDebug()<<line;
|
// qDebug()<<line;
|
||||||
}
|
//}
|
||||||
qDebug()<<"========================";
|
//qDebug()<<"========================";
|
||||||
QVector<structWifiProperty> targetWifiStructList = connectableWifiPriorityList(slist);
|
QVector<structWifiProperty> targetWifiStructList = connectableWifiPriorityList(slist);
|
||||||
if (!targetWifiStructList.isEmpty()) {
|
if (!targetWifiStructList.isEmpty()) {
|
||||||
if (!isReconnectingWifi) {
|
if (!isReconnectingWifi) {
|
||||||
|
@ -2298,9 +2297,9 @@ QVector<structWifiProperty> MainWindow::connectableWifiPriorityList(const QStrin
|
||||||
//再按照wifiPriority进行排序,先简单的选出最高优先级的wifi进行连接
|
//再按照wifiPriority进行排序,先简单的选出最高优先级的wifi进行连接
|
||||||
if (selectedWifiListStruct.size() > 1) {
|
if (selectedWifiListStruct.size() > 1) {
|
||||||
devListSort(&selectedWifiListStruct);
|
devListSort(&selectedWifiListStruct);
|
||||||
foreach (structWifiProperty wifiPriorityAfterSort, selectedWifiListStruct) {
|
//foreach (structWifiProperty wifiPriorityAfterSort, selectedWifiListStruct) {
|
||||||
qDebug() << wifiPriorityAfterSort.bssid << " 的自动连接优先级是 : " << wifiPriorityAfterSort.priority;
|
// qDebug() << wifiPriorityAfterSort.bssid << " 的自动连接优先级是 : " << wifiPriorityAfterSort.priority;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
ocf->deleteLater();
|
ocf->deleteLater();
|
||||||
return selectedWifiListStruct;
|
return selectedWifiListStruct;
|
||||||
|
@ -2546,7 +2545,7 @@ void MainWindow::loadWifiListDone(QStringList slist)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
qDebug()<<"Wifi ssid="<<wname<<". max_freq="<<max_freq<<". min_freq="<<min_freq;
|
//qDebug()<<"Wifi ssid="<<wname<<". max_freq="<<max_freq<<". min_freq="<<min_freq;
|
||||||
int freqState = 0;
|
int freqState = 0;
|
||||||
if (max_freq < 3000) {
|
if (max_freq < 3000) {
|
||||||
//只有2.4GHZ
|
//只有2.4GHZ
|
||||||
|
@ -2829,7 +2828,7 @@ void MainWindow::updateWifiListDone(QStringList slist)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug()<<"Wifi ssid="<<wname<<". max_freq="<<max_freq<<". min_freq="<<min_freq;
|
//qDebug()<<"Wifi ssid="<<wname<<". max_freq="<<max_freq<<". min_freq="<<min_freq;
|
||||||
int freqState = 0;
|
int freqState = 0;
|
||||||
if (max_freq < 3000) {
|
if (max_freq < 3000) {
|
||||||
//只有2.4GHZ
|
//只有2.4GHZ
|
||||||
|
@ -3380,7 +3379,7 @@ void MainWindow::oneTopWifiFormSelected(QString wifibssid, int extendLength)
|
||||||
}
|
}
|
||||||
|
|
||||||
//断开网络处理
|
//断开网络处理
|
||||||
void MainWindow::activeLanDisconn()
|
void MainWindow::handleLanDisconn()
|
||||||
{
|
{
|
||||||
syslog(LOG_DEBUG, "Wired net is disconnected");
|
syslog(LOG_DEBUG, "Wired net is disconnected");
|
||||||
|
|
||||||
|
@ -4030,7 +4029,7 @@ void MainWindow::connWifiDone(int connFlag)
|
||||||
syslog(LOG_DEBUG, "Connect Hidden Wifi Success.");
|
syslog(LOG_DEBUG, "Connect Hidden Wifi Success.");
|
||||||
this->ksnm->execGetWifiList(this->wcardname, this->isHuaWeiPC);
|
this->ksnm->execGetWifiList(this->wcardname, this->isHuaWeiPC);
|
||||||
QString txt(tr("Connect Hidden Wifi Success"));
|
QString txt(tr("Connect Hidden Wifi Success"));
|
||||||
qWarning()<<"Wi-Fi connected failed. res=6";
|
qWarning()<<"Connect Hidden Wifi Success. res=6";
|
||||||
objKyDBus->showDesktopNotify(txt);
|
objKyDBus->showDesktopNotify(txt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,7 @@ private slots:
|
||||||
|
|
||||||
void on_btnAdvConf_clicked();
|
void on_btnAdvConf_clicked();
|
||||||
|
|
||||||
void activeLanDisconn();
|
void handleLanDisconn();
|
||||||
void handleWifiDisconn();
|
void handleWifiDisconn();
|
||||||
void handleWifiDisconnLoading();
|
void handleWifiDisconnLoading();
|
||||||
void onRequestScanAccesspoint();
|
void onRequestScanAccesspoint();
|
||||||
|
|
|
@ -566,6 +566,8 @@ void OneConnForm::on_btnDisConn_clicked()
|
||||||
|
|
||||||
syslog(LOG_DEBUG, "DisConnect button about wifi net is clicked, current wifi name is %s .", wifiName.toUtf8().data());
|
syslog(LOG_DEBUG, "DisConnect button about wifi net is clicked, current wifi name is %s .", wifiName.toUtf8().data());
|
||||||
qDebug()<<"DisConnect button about wifi net is clicked, current wifi name is "<<wifiName;
|
qDebug()<<"DisConnect button about wifi net is clicked, current wifi name is "<<wifiName;
|
||||||
|
//syslog(LOG_DEBUG, "DisConnect button about wifi net is clicked, wifi may be disconnected .");
|
||||||
|
//qDebug()<<"DisConnect button about wifi net is clicked, wifi may be disconnected";
|
||||||
if (mw->canReconnectWifiList.contains(wifiName)) {
|
if (mw->canReconnectWifiList.contains(wifiName)) {
|
||||||
mw->canReconnectWifiList.removeOne(wifiName);
|
mw->canReconnectWifiList.removeOne(wifiName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,6 +311,8 @@ void OneLancForm::on_btnDisConn_clicked()
|
||||||
{
|
{
|
||||||
syslog(LOG_DEBUG, "DisConnect button about lan net is clicked, current wired net name is %s .", ui->lbName->text().toUtf8().data());
|
syslog(LOG_DEBUG, "DisConnect button about lan net is clicked, current wired net name is %s .", ui->lbName->text().toUtf8().data());
|
||||||
qDebug()<<"DisConnect button about lan net is clicked, current wired net name is "<<ui->lbName->text();
|
qDebug()<<"DisConnect button about lan net is clicked, current wired net name is "<<ui->lbName->text();
|
||||||
|
//syslog(LOG_DEBUG, "DisConnect button about lan net is clicked, a wired network may be disconnected .");
|
||||||
|
//qDebug()<<"DisConnect button about lan net is clicked, a wired network may be disconnected";
|
||||||
|
|
||||||
this->startWaiting(false);
|
this->startWaiting(false);
|
||||||
mw->is_stop_check_net_state = 1;
|
mw->is_stop_check_net_state = 1;
|
||||||
|
@ -324,7 +326,7 @@ void OneLancForm::on_btnDisConn_clicked()
|
||||||
|
|
||||||
disconnect(this, SIGNAL(selectedOneLanForm(QString, QString)), mw, SLOT(oneTopLanFormSelected(QString, QString)));
|
disconnect(this, SIGNAL(selectedOneLanForm(QString, QString)), mw, SLOT(oneTopLanFormSelected(QString, QString)));
|
||||||
|
|
||||||
emit disconnActiveLan();
|
emit requestHandleLanDisconn();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OneLancForm::toDisConnWiredNetwork(QString netUuid)
|
void OneLancForm::toDisConnWiredNetwork(QString netUuid)
|
||||||
|
|
|
@ -121,7 +121,7 @@ private:
|
||||||
signals:
|
signals:
|
||||||
void selectedOneLanForm(QString lanName, QString uniqueName);
|
void selectedOneLanForm(QString lanName, QString uniqueName);
|
||||||
void connDone(int connFlag);
|
void connDone(int connFlag);
|
||||||
void disconnActiveLan();
|
void requestHandleLanDisconn();
|
||||||
|
|
||||||
void sigConnLan(QString, QString, QString);
|
void sigConnLan(QString, QString, QString);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue