summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/request_info.h
diff options
context:
space:
mode:
authorBrad Pankow <brad@livio.io>2016-07-22 16:19:01 -0400
committerBrad Pankow <brad@livio.io>2016-07-26 13:27:43 -0400
commit19f2ed4c5e5613d8ea4bc200df3daf7e92ee2108 (patch)
tree39dbd1422971c3f3db3b723419ef4b8d3fc6c8f8 /src/components/application_manager/include/application_manager/request_info.h
parent0b1b68d18950fdb1bf735dd80090aef9d6fcf0ab (diff)
downloadsdl_core-19f2ed4c5e5613d8ea4bc200df3daf7e92ee2108.tar.gz
Initialize RequestInfo members, add new RequestType (CID 80058, 80066, 80067)
Diffstat (limited to 'src/components/application_manager/include/application_manager/request_info.h')
-rw-r--r--src/components/application_manager/include/application_manager/request_info.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/components/application_manager/include/application_manager/request_info.h b/src/components/application_manager/include/application_manager/request_info.h
index 3b48d78d48..25fd025f76 100644
--- a/src/components/application_manager/include/application_manager/request_info.h
+++ b/src/components/application_manager/include/application_manager/request_info.h
@@ -55,16 +55,27 @@ namespace request_controller {
typedef utils::SharedPtr<commands::Command> RequestPtr;
struct RequestInfo {
- enum RequestType {MobileRequest, HMIRequest};
-
- RequestInfo() {}
+ enum RequestType {RequestNone, MobileRequest, HMIRequest};
+
+ RequestInfo()
+ : timeout_sec_(0),
+ app_id_(0),
+ hmi_level_(mobile_apis::HMILevel::INVALID_ENUM),
+ requst_type_(RequestNone),
+ correlation_id_(0) {
+ start_time_ = date_time::DateTime::getCurrentTime();
+ updateEndTime();
+ }
virtual ~RequestInfo() {}
RequestInfo(RequestPtr request,
const RequestType requst_type,
const uint64_t timeout_sec)
: request_(request),
- timeout_sec_(timeout_sec) {
+ timeout_sec_(timeout_sec),
+ app_id_(0),
+ hmi_level_(mobile_apis::HMILevel::INVALID_ENUM),
+ correlation_id_(0) {
start_time_ = date_time::DateTime::getCurrentTime();
updateEndTime();
requst_type_ = requst_type;