summaryrefslogtreecommitdiff
path: root/src/MTS_IO_TelitRadio.cpp
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2019-07-18 11:41:24 +0300
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2019-07-18 15:41:52 +0300
commit0330513b8913d1d7bf14bad99d64ab002b770b7c (patch)
tree4f0e44ed31f0e536835260ff5b4849f84289ee9c /src/MTS_IO_TelitRadio.cpp
parentfe970f5bb77354b7507e230b1465e9178c80ee7a (diff)
downloadlibmts-io-0330513b8913d1d7bf14bad99d64ab002b770b7c.tar.gz
libmts-io-0330513b8913d1d7bf14bad99d64ab002b770b7c.tar.bz2
libmts-io-0330513b8913d1d7bf14bad99d64ab002b770b7c.zip
[MTR-MTQ] Namespace-related usage improvements
Restored full qualification of the ICellularRadio::CODE object type for all files that used full qualification before (effectively, for all source files and only one header file). This commit partially reverses 53efcef2e2f521135b323e194c45f1d9fa7b5d5d.
Diffstat (limited to 'src/MTS_IO_TelitRadio.cpp')
-rw-r--r--src/MTS_IO_TelitRadio.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp
index c8448e2..340c0ac 100644
--- a/src/MTS_IO_TelitRadio.cpp
+++ b/src/MTS_IO_TelitRadio.cpp
@@ -46,7 +46,7 @@ bool TelitRadio::resetRadio(uint32_t iTimeoutMillis) {
}
-CellularRadio::CODE TelitRadio::getModel(std::string& sModel) {
+ICellularRadio::CODE TelitRadio::getModel(std::string& sModel) {
printTrace("%s| Get Model", getName().c_str());
//Always returns SUCCESS because the model should be m_sName
sModel = getName();
@@ -72,7 +72,7 @@ CellularRadio::CODE TelitRadio::getModel(std::string& sModel) {
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::getIccid(std::string& sIccid) {
+ICellularRadio::CODE TelitRadio::getIccid(std::string& sIccid) {
printTrace("%s| Get ICCID", getName().c_str());
sIccid = ICellularRadio::VALUE_NOT_SUPPORTED;
std::string sCmd("AT#CCID");
@@ -95,7 +95,7 @@ CellularRadio::CODE TelitRadio::getIccid(std::string& sIccid) {
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::getService(std::string& sService) {
+ICellularRadio::CODE TelitRadio::getService(std::string& sService) {
printTrace("%s| Get Service", getName().c_str());
sService = ICellularRadio::VALUE_NOT_SUPPORTED;
std::string sCmd("AT#PSNT?");
@@ -127,7 +127,7 @@ CellularRadio::CODE TelitRadio::getService(std::string& sService) {
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::getNetwork(std::string& sNetwork) {
+ICellularRadio::CODE TelitRadio::getNetwork(std::string& sNetwork) {
Json::Value jData;
printTrace("%s| Get Network", getName().c_str());
@@ -217,7 +217,7 @@ CellularRadio::CODE TelitRadio::getNetwork(std::string& sNetwork) {
<SD> -
<ABND> -
*/
-CellularRadio::CODE TelitRadio::getNetworkStatus(Json::Value& jData) {
+ICellularRadio::CODE TelitRadio::getNetworkStatus(Json::Value& jData) {
int32_t iValue;
std::string sValue;
const uint32_t GSM_NETWORK_FORMAT = 14;
@@ -396,7 +396,7 @@ CellularRadio::CODE TelitRadio::getNetworkStatus(Json::Value& jData) {
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::convertSignalStrengthTodBm(const int32_t& iRssi, int32_t& iDbm) {
+ICellularRadio::CODE TelitRadio::convertSignalStrengthTodBm(const int32_t& iRssi, int32_t& iDbm) {
//Telit Conversion
if(iRssi < 0 || iRssi == 99) {
@@ -419,7 +419,7 @@ CellularRadio::CODE TelitRadio::convertSignalStrengthTodBm(const int32_t& iRssi,
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::convertdBmToSignalStrength(const int32_t& iDBm, int32_t& iRssi) {
+ICellularRadio::CODE TelitRadio::convertdBmToSignalStrength(const int32_t& iDBm, int32_t& iRssi) {
//Telit Conversion
if(iDBm <= -113) {
iRssi = 0;
@@ -437,7 +437,7 @@ CellularRadio::CODE TelitRadio::convertdBmToSignalStrength(const int32_t& iDBm,
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::setMdn(const Json::Value& jArgs) {
+ICellularRadio::CODE TelitRadio::setMdn(const Json::Value& jArgs) {
printTrace("%s| Set MDN", getName().c_str());
if(!jArgs["mdn"].isString()) {
@@ -574,7 +574,7 @@ ICellularRadio::CODE TelitRadio::setRadioNetworkMode(RADIO_NETWORK_MODE mode)
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::getIsSimInserted(bool& bData) {
+ICellularRadio::CODE TelitRadio::getIsSimInserted(bool& bData) {
printTrace("%s| Get SIM insertion status", getName().c_str());
std::string sCmd("AT#SIMDET?");
std::string sResult = sendCommand(sCmd);
@@ -611,9 +611,9 @@ CellularRadio::CODE TelitRadio::getIsSimInserted(bool& bData) {
return SUCCESS;
}
-CellularRadio::CODE TelitRadio::getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk) {
+ICellularRadio::CODE TelitRadio::getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk) {
std::string sLockStatus;
- CODE retCode;
+ ICellularRadio::CODE retCode;
retCode = getSimLockStatus(sLockStatus);
if (retCode != SUCCESS) {
@@ -624,7 +624,7 @@ CellularRadio::CODE TelitRadio::getSimLockAttempts(int& iAttemptsPin, int& iAtte
return getSimLockAttempts(iAttemptsPin, iAttemptsPuk, sLockStatus);
}
-CellularRadio::CODE TelitRadio::getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk, const std::string& sLockStatus) {
+ICellularRadio::CODE TelitRadio::getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk, const std::string& sLockStatus) {
printTrace("%s| Get SIM unlock attempts left", getName().c_str());
std::string sCmd("AT#PCT");
std::string sResult = sendCommand(sCmd, DEFAULT_BAIL_STRINGS, 500);