|
|
@ -103,7 +103,7 @@ void KNetworkConfigParser::readListIfacesSlot(){
|
|
|
|
//The gst backend puts a \n at the beginning of the xml output, so
|
|
|
|
//The gst backend puts a \n at the beginning of the xml output, so
|
|
|
|
//we have to erase it first before we parse it.
|
|
|
|
//we have to erase it first before we parse it.
|
|
|
|
xmlOuput = xmlOuput.section('\n',1);
|
|
|
|
xmlOuput = xmlOuput.section('\n',1);
|
|
|
|
qDebug("XML -d list_ifaces: %s",xmlOuput.latin1());
|
|
|
|
tqDebug("XML -d list_ifaces: %s",xmlOuput.latin1());
|
|
|
|
TQString err;
|
|
|
|
TQString err;
|
|
|
|
int x,y;
|
|
|
|
int x,y;
|
|
|
|
TQDomDocument doc( "network-ifaces");
|
|
|
|
TQDomDocument doc( "network-ifaces");
|
|
|
@ -112,7 +112,7 @@ void KNetworkConfigParser::readListIfacesSlot(){
|
|
|
|
KMessageBox::error(0,
|
|
|
|
KMessageBox::error(0,
|
|
|
|
i18n("Could not parse the XML output from the network configuration backend."),
|
|
|
|
i18n("Could not parse the XML output from the network configuration backend."),
|
|
|
|
i18n("Error While Listing Network Interfaces"));
|
|
|
|
i18n("Error While Listing Network Interfaces"));
|
|
|
|
// qDebug("error: %s %d,%d",err.latin1(),x,y);
|
|
|
|
// tqDebug("error: %s %d,%d",err.latin1(),x,y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TQDomElement root = doc.documentElement();
|
|
|
|
TQDomElement root = doc.documentElement();
|
|
|
|
TQDomNode node = root.firstChild();
|
|
|
|
TQDomNode node = root.firstChild();
|
|
|
@ -287,7 +287,7 @@ void KNetworkConfigParser::saveNetworkInfo(KNetworkInfo *networkInfo)
|
|
|
|
doc.appendChild( endComment );
|
|
|
|
doc.appendChild( endComment );
|
|
|
|
|
|
|
|
|
|
|
|
TQString xml = doc.toString();
|
|
|
|
TQString xml = doc.toString();
|
|
|
|
qDebug("--set XML:\n%s",xml.latin1());
|
|
|
|
tqDebug("--set XML:\n%s",xml.latin1());
|
|
|
|
procSaveNetworkInfo = new TQProcess(this);
|
|
|
|
procSaveNetworkInfo = new TQProcess(this);
|
|
|
|
procSaveNetworkInfo->addArgument( locate("data",BACKEND_PATH) );
|
|
|
|
procSaveNetworkInfo->addArgument( locate("data",BACKEND_PATH) );
|
|
|
|
|
|
|
|
|
|
|
@ -816,7 +816,7 @@ void KNetworkConfigParser::readNetworkInfo()
|
|
|
|
//The gst backend puts a \n at the beginning of the xml output, so
|
|
|
|
//The gst backend puts a \n at the beginning of the xml output, so
|
|
|
|
//we have to erase it first before we can parse it.
|
|
|
|
//we have to erase it first before we can parse it.
|
|
|
|
xmlOuput = xmlOuput.section('\n',1);
|
|
|
|
xmlOuput = xmlOuput.section('\n',1);
|
|
|
|
qDebug("--get XML:\n%s",xmlOuput.latin1());
|
|
|
|
tqDebug("--get XML:\n%s",xmlOuput.latin1());
|
|
|
|
|
|
|
|
|
|
|
|
//If the platform where knetworkconf is running isn't supported, show the
|
|
|
|
//If the platform where knetworkconf is running isn't supported, show the
|
|
|
|
//user a dialog with all the supported platforms to choose.
|
|
|
|
//user a dialog with all the supported platforms to choose.
|
|
|
@ -836,7 +836,7 @@ void KNetworkConfigParser::readNetworkInfo()
|
|
|
|
KMessageBox::error(0,
|
|
|
|
KMessageBox::error(0,
|
|
|
|
i18n("Could not parse the XML output from the network configuration backend."),
|
|
|
|
i18n("Could not parse the XML output from the network configuration backend."),
|
|
|
|
i18n("Error Loading The Network Configuration"));
|
|
|
|
i18n("Error Loading The Network Configuration"));
|
|
|
|
// qDebug("error: %s %d,%d",err.latin1(),x,y);
|
|
|
|
// tqDebug("error: %s %d,%d",err.latin1(),x,y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQDomElement root = doc.documentElement();
|
|
|
|
TQDomElement root = doc.documentElement();
|
|
|
|