Index: src/shared/Communication.h |
=================================================================== |
--- a/src/shared/Communication.h |
+++ b/src/shared/Communication.h |
@@ -24,6 +24,8 @@ |
PROC_IS_WHITELISTED_URL, |
PROC_ADD_FILTER, |
PROC_REMOVE_FILTER, |
+ PROC_SET_PREF, |
+ PROC_GET_PREF |
}; |
enum ValueType : uint32_t { |
TYPE_PROC, TYPE_STRING, TYPE_WSTRING, TYPE_INT64, TYPE_INT32, TYPE_BOOL |
@@ -40,6 +42,7 @@ |
InputBuffer& operator>>(int64_t& value) { return Read(value, TYPE_INT64); } |
InputBuffer& operator>>(int32_t& value) { return Read(value, TYPE_INT32); } |
InputBuffer& operator>>(bool& value) { return Read(value, TYPE_BOOL); } |
+ ValueType GetType(); |
private: |
std::istringstream buffer; |
ValueType currentType; |
@@ -78,6 +81,7 @@ |
buffer.read(reinterpret_cast<char*>(&value), sizeof(T)); |
if (buffer.fail()) |
throw new std::runtime_error("Unexpected end of input buffer"); |
+ hasType = false; |
} |
}; |