diff options
Diffstat (limited to 'src/MTS_IO_CdmaRadio.cpp')
| -rw-r--r-- | src/MTS_IO_CdmaRadio.cpp | 76 | 
1 files changed, 38 insertions, 38 deletions
| diff --git a/src/MTS_IO_CdmaRadio.cpp b/src/MTS_IO_CdmaRadio.cpp index 09db89b..f84fd34 100644 --- a/src/MTS_IO_CdmaRadio.cpp +++ b/src/MTS_IO_CdmaRadio.cpp @@ -44,12 +44,12 @@ CdmaRadio::~CdmaRadio() {  } -CdmaRadio::CODE CdmaRadio::getImei(std::string& sImei) { +ICellularRadio::CODE CdmaRadio::getImei(std::string& sImei) {      printTrace("%s| Get IMEI", getName().c_str());      return getMeid(sImei);  } -CdmaRadio::CODE CdmaRadio::getMeid(std::string& sMeid) { +ICellularRadio::CODE CdmaRadio::getMeid(std::string& sMeid) {      printTrace("%s| Get MEID", getName().c_str());      sMeid = ICellularRadio::VALUE_NOT_SUPPORTED;      std::string sCmd("AT#MEIDESN?"); @@ -72,7 +72,7 @@ CdmaRadio::CODE CdmaRadio::getMeid(std::string& sMeid) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::getMsid(std::string& sMsid) { +ICellularRadio::CODE CdmaRadio::getMsid(std::string& sMsid) {      printTrace("%s| Get MSID", getName().c_str());      sMsid = ICellularRadio::VALUE_NOT_SUPPORTED;      std::string sCmd("AT$MSID?"); @@ -92,14 +92,14 @@ CdmaRadio::CODE CdmaRadio::getMsid(std::string& sMsid) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::getCarrier(std::string& sCarrier) { +ICellularRadio::CODE CdmaRadio::getCarrier(std::string& sCarrier) {      if(m_sCarrier != "") {          sCarrier = m_sCarrier;          return SUCCESS;      }      std::string sFirmware; -    CODE code = getFirmware(sFirmware); +    ICellularRadio::CODE code = getFirmware(sFirmware);      if(code != SUCCESS) {          return code;      } @@ -113,29 +113,29 @@ CdmaRadio::CODE CdmaRadio::getCarrier(std::string& sCarrier) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::getNetwork(std::string& sNetwork) { +ICellularRadio::CODE CdmaRadio::getNetwork(std::string& sNetwork) {      return getCarrier(sNetwork);  } -CdmaRadio::CODE CdmaRadio::getSimStatus(std::string& sSimStatus) { +ICellularRadio::CODE CdmaRadio::getSimStatus(std::string& sSimStatus) {      printTrace("%s| Get SIM Status", getName().c_str());      sSimStatus = ICellularRadio::VALUE_NOT_SUPPORTED;      return NOT_APPLICABLE;  } -CdmaRadio::CODE CdmaRadio::getIccid(std::string& sIccid) { +ICellularRadio::CODE CdmaRadio::getIccid(std::string& sIccid) {      printTrace("%s| Get ICCID", getName().c_str());      sIccid = ICellularRadio::VALUE_NOT_SUPPORTED;      return NOT_APPLICABLE;  } -CdmaRadio::CODE CdmaRadio::getLac(std::string& sLac) { +ICellularRadio::CODE CdmaRadio::getLac(std::string& sLac) {      printTrace("%s| Get LAC", getName().c_str());      sLac = ICellularRadio::VALUE_NOT_SUPPORTED;      return NOT_APPLICABLE;  } -CdmaRadio::CODE CdmaRadio::getService(std::string& sService) { +ICellularRadio::CODE CdmaRadio::getService(std::string& sService) {      printTrace("%s| Get Service", getName().c_str());      sService = ICellularRadio::VALUE_NOT_SUPPORTED;      std::string sCmd("AT+SERVICE?"); @@ -167,7 +167,7 @@ CdmaRadio::CODE CdmaRadio::getService(std::string& sService) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::getHardware(std::string& sHardware) { +ICellularRadio::CODE CdmaRadio::getHardware(std::string& sHardware) {      printTrace("%s| Get Hardware", getName().c_str());      sHardware = ICellularRadio::VALUE_NOT_SUPPORTED;      std::string sCmd("AT#HWREV"); @@ -187,7 +187,7 @@ CdmaRadio::CODE CdmaRadio::getHardware(std::string& sHardware) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::getMdn(std::string& sMdn) { +ICellularRadio::CODE CdmaRadio::getMdn(std::string& sMdn) {      printTrace("%s| Get MDN", getName().c_str());      sMdn = ICellularRadio::VALUE_NOT_SUPPORTED;      std::string sCmd("AT+CNUM"); @@ -213,7 +213,7 @@ CdmaRadio::CODE CdmaRadio::getMdn(std::string& sMdn) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::validateMsl(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::validateMsl(const Json::Value& jArgs) {      printTrace("%s| Validate MSL", getName().c_str());      if(!jArgs["msl"].isString()) { @@ -239,7 +239,7 @@ CdmaRadio::CODE CdmaRadio::validateMsl(const Json::Value& jArgs) {      return setMdn(jMdn);  } -CdmaRadio::CODE CdmaRadio::setMdn(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMdn(const Json::Value& jArgs) {      printTrace("%s| Set MDN", getName().c_str());      if(!jArgs["mdn"].isString()) { @@ -283,7 +283,7 @@ CdmaRadio::CODE CdmaRadio::setMdn(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMsid(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMsid(const Json::Value& jArgs) {      printTrace("%s| Set MSID", getName().c_str());      if(!jArgs["msid"].isString()) {          printError("%s| Arguments missing \"msid\"", getName().c_str()); @@ -318,7 +318,7 @@ CdmaRadio::CODE CdmaRadio::setMsid(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::getMipProfile(Json::Value& jMipProfile) { +ICellularRadio::CODE CdmaRadio::getMipProfile(Json::Value& jMipProfile) {      printTrace("%s| Get MIP Active Profile", getName().c_str());      initMipProfile(jMipProfile); @@ -406,7 +406,7 @@ CdmaRadio::CODE CdmaRadio::getMipProfile(Json::Value& jMipProfile) {  } -CdmaRadio::CODE CdmaRadio::setMipActiveProfile(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipActiveProfile(const Json::Value& jArgs) {      printTrace("%s| Set MIP Active Profile", getName().c_str());      if(!jArgs["activeProfile"].isString()) { @@ -426,7 +426,7 @@ CdmaRadio::CODE CdmaRadio::setMipActiveProfile(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipNai(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipNai(const Json::Value& jArgs) {      printTrace("%s| Set MIP NAI", getName().c_str());      if(!jArgs["nai"].isString()) { @@ -446,7 +446,7 @@ CdmaRadio::CODE CdmaRadio::setMipNai(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipHomeIp(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipHomeIp(const Json::Value& jArgs) {      printTrace("%s| Set MIP Home IP", getName().c_str());      if(!jArgs["homeIp"].isString()) { @@ -466,7 +466,7 @@ CdmaRadio::CODE CdmaRadio::setMipHomeIp(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipPrimaryHa(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipPrimaryHa(const Json::Value& jArgs) {      printTrace("%s| Set MIP Primary HA", getName().c_str());      if(!jArgs["primaryHa"].isString()) { @@ -486,7 +486,7 @@ CdmaRadio::CODE CdmaRadio::setMipPrimaryHa(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipSecondaryHa(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipSecondaryHa(const Json::Value& jArgs) {      printTrace("%s| Set MIP Secondary HA", getName().c_str());      if(!jArgs["secondaryHa"].isString()) { @@ -506,7 +506,7 @@ CdmaRadio::CODE CdmaRadio::setMipSecondaryHa(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipMnAaaSpi(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipMnAaaSpi(const Json::Value& jArgs) {      printTrace("%s| Set MIP MN-AAA SPI", getName().c_str());      if(!jArgs["mnAaaSpi"].isString()) { @@ -526,7 +526,7 @@ CdmaRadio::CODE CdmaRadio::setMipMnAaaSpi(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipMnHaSpi(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipMnHaSpi(const Json::Value& jArgs) {      printTrace("%s| Set MIP MN-HA SPI", getName().c_str());      if(!jArgs["mnHaSpi"].isString()) { @@ -546,7 +546,7 @@ CdmaRadio::CODE CdmaRadio::setMipMnHaSpi(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipRevTun(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipRevTun(const Json::Value& jArgs) {      printTrace("%s| Set MIP Rev Tun", getName().c_str());      if(!jArgs["revTun"].isString()) { @@ -566,7 +566,7 @@ CdmaRadio::CODE CdmaRadio::setMipRevTun(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipMnAaaSs(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipMnAaaSs(const Json::Value& jArgs) {      printTrace("%s| Set MIP MN-AAA SS", getName().c_str());      if(!jArgs["mnAaaSs"].isString()) { @@ -586,7 +586,7 @@ CdmaRadio::CODE CdmaRadio::setMipMnAaaSs(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::setMipMnHaSs(const Json::Value& jArgs) { +ICellularRadio::CODE CdmaRadio::setMipMnHaSs(const Json::Value& jArgs) {      printTrace("%s| Set MIP MN-HA SS", getName().c_str());      if(!jArgs["mnHaSs"].isString()) { @@ -606,7 +606,7 @@ CdmaRadio::CODE CdmaRadio::setMipMnHaSs(const Json::Value& jArgs) {      return SUCCESS;  } -CdmaRadio::CODE CdmaRadio::updateDc(const Json::Value& jArgs, UpdateCb& stepCb) { +ICellularRadio::CODE CdmaRadio::updateDc(const Json::Value& jArgs, UpdateCb& stepCb) {      printTrace("%s| Update Device Configuration", getName().c_str());      std::string sCarrier; @@ -616,7 +616,7 @@ CdmaRadio::CODE CdmaRadio::updateDc(const Json::Value& jArgs, UpdateCb& stepCb)          return NOT_APPLICABLE;      } -    CODE result = FAILURE; +    ICellularRadio::CODE result = FAILURE;      std::size_t pos = 0;      std::size_t end = 0; @@ -703,7 +703,7 @@ CdmaRadio::CODE CdmaRadio::updateDc(const Json::Value& jArgs, UpdateCb& stepCb)      return result;  } -CdmaRadio::CODE CdmaRadio::updatePrl(const Json::Value& jArgs, UpdateCb& stepCb) { +ICellularRadio::CODE CdmaRadio::updatePrl(const Json::Value& jArgs, UpdateCb& stepCb) {      printTrace("%s| Update Preferred Roaming List", getName().c_str());      std::string sCarrier; @@ -713,7 +713,7 @@ CdmaRadio::CODE CdmaRadio::updatePrl(const Json::Value& jArgs, UpdateCb& stepCb)          return NOT_APPLICABLE;      } -    CODE result = FAILURE; +    ICellularRadio::CODE result = FAILURE;      std::size_t pos = 0;      std::size_t end = 0; @@ -800,7 +800,7 @@ CdmaRadio::CODE CdmaRadio::updatePrl(const Json::Value& jArgs, UpdateCb& stepCb)      return result;  } -CdmaRadio::CODE CdmaRadio::updateFumo(const Json::Value& jArgs, UpdateCb& stepCb) { +ICellularRadio::CODE CdmaRadio::updateFumo(const Json::Value& jArgs, UpdateCb& stepCb) {      printTrace("%s| Update Firmware Update Management Object", getName().c_str());      std::string sCarrier; @@ -810,7 +810,7 @@ CdmaRadio::CODE CdmaRadio::updateFumo(const Json::Value& jArgs, UpdateCb& stepCb          return NOT_APPLICABLE;      } -    CODE result = FAILURE; +    ICellularRadio::CODE result = FAILURE;      std::size_t pos = 0;      std::size_t end = 0; @@ -957,7 +957,7 @@ CdmaRadio::CODE CdmaRadio::updateFumo(const Json::Value& jArgs, UpdateCb& stepCb      return result;  } -CdmaRadio::CODE CdmaRadio::resetHfa(const Json::Value& jArgs, UpdateCb& stepCb) { +ICellularRadio::CODE CdmaRadio::resetHfa(const Json::Value& jArgs, UpdateCb& stepCb) {      printTrace("%s| HFA Reset (after device reboot HFA will occur)", getName().c_str());      std::string sCarrier; @@ -971,7 +971,7 @@ CdmaRadio::CODE CdmaRadio::resetHfa(const Json::Value& jArgs, UpdateCb& stepCb)          return INVALID_ARGS;      } -    CODE result = FAILURE; +    ICellularRadio::CODE result = FAILURE;      std::size_t pos = 0;      std::size_t end = 0; @@ -1075,7 +1075,7 @@ CdmaRadio::CODE CdmaRadio::resetHfa(const Json::Value& jArgs, UpdateCb& stepCb)      return result;  } -CdmaRadio::CODE CdmaRadio::activate(const Json::Value& jArgs, UpdateCb& stepCb) { +ICellularRadio::CODE CdmaRadio::activate(const Json::Value& jArgs, UpdateCb& stepCb) {      printTrace("%s| Activation", getName().c_str());      std::string sActivationCmd; @@ -1107,7 +1107,7 @@ CdmaRadio::CODE CdmaRadio::activate(const Json::Value& jArgs, UpdateCb& stepCb)          }          //Set MDN & MSID -        CODE code; +        ICellularRadio::CODE code;          code = setMdn(jArgs);          if(code != SUCCESS) {              return code; @@ -1130,7 +1130,7 @@ CdmaRadio::CODE CdmaRadio::activate(const Json::Value& jArgs, UpdateCb& stepCb)          return NOT_APPLICABLE;      } -    CODE result = FAILURE; +    ICellularRadio::CODE result = FAILURE;      std::size_t pos = 0;      std::size_t end = 0; @@ -1214,7 +1214,7 @@ CdmaRadio::CODE CdmaRadio::activate(const Json::Value& jArgs, UpdateCb& stepCb)      return result;  } -CdmaRadio::CODE CdmaRadio::getNetworkStatus(Json::Value& jData) { +ICellularRadio::CODE CdmaRadio::getNetworkStatus(Json::Value& jData) {      printTrace("%s| Get Network Status", getName().c_str());      getCommonNetworkStats(jData); | 
