EEN for Chris
Fork of MTS-Cellular by
Revision 80:e66bf5723b98, committed 2015-09-09
- Comitter:
- mfiore
- Date:
- Wed Sep 09 18:12:52 2015 +0000
- Parent:
- 79:da70f86996a1
- Child:
- 81:b0a720f7deae
- Commit message:
- add function to get radio type enum, rename original to getRadioTypeString
Changed in this revision
Cellular/Cellular.cpp | Show annotated file Show diff for this revision Revisions of this file |
Cellular/Cellular.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Cellular/Cellular.cpp Wed Sep 09 11:59:17 2015 -0500 +++ b/Cellular/Cellular.cpp Wed Sep 09 18:12:52 2015 +0000 @@ -425,7 +425,12 @@ return equipmentIdentifier; } -std::string Cellular::getRadioType() +int Cellular::getRadioType() +{ + return type; +} + +std::string Cellular::getRadioTypeString() { return getRadioNames(type); }
--- a/Cellular/Cellular.h Wed Sep 09 11:59:17 2015 -0500 +++ b/Cellular/Cellular.h Wed Sep 09 18:12:52 2015 +0000 @@ -494,10 +494,15 @@ */ std::string getEquipmentIdentifier(); + /** Get radio type + * @returns the radio type (MTSMC-H5, etc) + */ + int getRadioType(); + /** Get string representation of radio type * @returns string containing the radio type (MTSMC-H5, etc) */ - std::string getRadioType(); + std::string getRadioTypeString(); /** Enables GPS. * @returns true if GPS is enabled, false if GPS is not supported.