if(KMessageBox::questionYesNo(0,i18n("<qt><p>The network has stopped broadcasting its ESSID since the last time you were connected.</p><p>Would you like to use '<b>%1</b>' as an ESSID for this network?</p><p><i>NOTE: If you answer No, a dialog will appear where you will be able to specify a different ESSID.</i></p></qt>").arg(essid))!=3)// !=YES
if(KMessageBox::questionYesNo(0,i18n("<qt><p>The network has stopped broadcasting its ESSID since the last time you were connected.</p><p>Would you like to use '<b>%1</b>' as an ESSID for this network?</p><p><i>NOTE: If you answer No, a dialog will appear where you will be able to specify a different ESSID.</i></p></qt>").tqarg(essid))!=3)// !=YES
if(autoReconnect||KMessageBox::questionYesNo(0,i18n("Connection to '%1' has been lost!\nWould you like to reconnect?").arg(NetParams.essid),i18n("Connection Lost"),KStdGuiItem::yes(),KStdGuiItem::no())==KMessageBox::Yes){
if(autoReconnect||KMessageBox::questionYesNo(0,i18n("Connection to '%1' has been lost!\nWould you like to reconnect?").tqarg(NetParams.essid),i18n("Connection Lost"),KStdGuiItem::yes(),KStdGuiItem::no())==KMessageBox::Yes){
if(KMessageBox::warningContinueCancel(0,i18n("<qt><p>Settings for network '<b>%1</b>' are about to be deleted.</p><p>Would you like to continue?</p></qt>").arg(essid))==KMessageBox::Continue){
if(KMessageBox::warningContinueCancel(0,i18n("<qt><p>Settings for network '<b>%1</b>' are about to be deleted.</p><p>Would you like to continue?</p></qt>").tqarg(essid))==KMessageBox::Continue){
std::cout<<"dns setup error: "<<f.name().ascii()<<" is not writeable."<<std::endl;
KMessageBox::error(0,i18n("<qt><p>File '<i>%1</i>' could not be opened for writing.</p><p>Nameserver(s) and/or domain are not set.</p></qt>").arg(f.name()));
KMessageBox::error(0,i18n("<qt><p>File '<i>%1</i>' could not be opened for writing.</p><p>Nameserver(s) and/or domain are not set.</p></qt>").tqarg(f.name()));
//can't connect if WPA needed, and wpa_supplicant and wpa_cli not available
if(NetParams.wpa&&!wpaAvailable){
KMessageBox::error(0,i18n("<qt><p><b>Can not connect to network '%1'.<b></p><p>The network you are trying to connect to requires WPA authentication. The necessary executables <i>wpa_supplicant</i> and <i>wpa_cli</i> could not be found. Install <i>wpa_supplicant</i> and restart Wireless Assistant to connect.</p></qt>").arg(NetParams.essid));
KMessageBox::error(0,i18n("<qt><p><b>Can not connect to network '%1'.<b></p><p>The network you are trying to connect to requires WPA authentication. The necessary executables <i>wpa_supplicant</i> and <i>wpa_cli</i> could not be found. Install <i>wpa_supplicant</i> and restart Wireless Assistant to connect.</p></qt>").tqarg(NetParams.essid));
if((quiet)||(KMessageBox::warningContinueCancel(0,i18n("<qt><p>You are about to disconnect from '<b>%1</b>'.</p><p>Would you like to continue?<p></qt>").arg(connectedItem->essid()))==KMessageBox::Continue)){
if((quiet)||(KMessageBox::warningContinueCancel(0,i18n("<qt><p>You are about to disconnect from '<b>%1</b>'.</p><p>Would you like to continue?<p></qt>").tqarg(connectedItem->essid()))==KMessageBox::Continue)){
timerConnectionCheck->stop();//stop while disconnecting.