diff options
author | Ziyan <jaraidaniel@gmail.com> | 2016-09-09 18:04:54 +0200 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-09-15 13:29:15 +0200 |
commit | b74ba5d64209c27fd57fc80752ddba5764b5beba (patch) | |
tree | 6bf7129f80dee08f88e3abb87994e15be8252973 /rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h | |
parent | e3365c5214b4d20702852955143a2938e94f8a1d (diff) | |
download | device_samsung_espresso3g-b74ba5d64209c27fd57fc80752ddba5764b5beba.zip device_samsung_espresso3g-b74ba5d64209c27fd57fc80752ddba5764b5beba.tar.gz device_samsung_espresso3g-b74ba5d64209c27fd57fc80752ddba5764b5beba.tar.bz2 |
ril: add open-sourced libsecnativefeature, used by libsec-ril
Change-Id: I2f487db23b31c63ba919863f393ca37cc9a81191
Diffstat (limited to 'rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h')
-rw-r--r-- | rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h b/rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h new file mode 100644 index 0000000..37cb085 --- /dev/null +++ b/rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h @@ -0,0 +1,27 @@ +#ifndef SEC_NATIVE_FEATURE_CPPIF_H +#define SEC_NATIVE_FEATURE_CPPIF_H + +#include <string> +#include <map> + +class SecNativeFeature { +public: + bool getEnableStatus(const char* tag); + bool getEnableStatus(const char* tag, bool defaultValue); + const char* getString(const char* tag); + const char* getString(const char* tag, char* defaultValue); + int getInteger(const char* tag); + int getInteger(const char* tag, int defaultValue); + + static SecNativeFeature* getInstance(); +private: + static SecNativeFeature* _instance; + SecNativeFeature(); + ~SecNativeFeature(); + int _loadFeature(); + int _loadDefault(); + std::map<std::string,std::string> _features; +}; + +#endif // SEC_NATIVE_FEATURE_CPPIF_H + |