void get_setup_params() { int res; if(sp.state_connect != 0) { QString er_id, er_str; WareReferenceErrorText(55, er_str, er_id); InterfaceErrorWin(er_str, er_id); } else if((res = sp.Get_All_Param()) != 0) { ////printf("state in main = %d\n", res); QString er_id, er_str; WareReferenceErrorText(56, er_str, er_id); InterfaceErrorWin(er_str, er_id); } }
//======================================================================// void get_setup_params() { int res; if(sp.state_connect != 0) { QString er_id, er_str; RegistrationErrorText(78, er_str, er_id); InterfaceErrorWin(er_str, er_id); } else if((res = sp.Get_All_Param()) != 0) { //printf("state in main = %d\n", res); QString er_id, er_str; RegistrationErrorText(79, er_str, er_id); InterfaceErrorWin(er_str, er_id); } QTextCodec * DSPCodec = QTextCodec::codecForName(HWCODEC); UpStr = DBCodec->toUnicode(sp.cdsp_up_not_work); UpStr = DSPCodec->fromUnicode(UpStr); DownStr = DBCodec->toUnicode(sp.cdsp_down_not_work); DownStr = DSPCodec->fromUnicode(DownStr); }