aboutsummaryrefslogtreecommitdiffstats
path: root/rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h
diff options
context:
space:
mode:
Diffstat (limited to 'rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h')
-rw-r--r--rilsrc/libsecnativefeature/SecNativeFeatureCppIf.h27
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
+