summaryrefslogtreecommitdiff
path: root/src/components/resumption/include/resumption/last_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/resumption/include/resumption/last_state.h')
-rw-r--r--src/components/resumption/include/resumption/last_state.h28
1 files changed, 5 insertions, 23 deletions
diff --git a/src/components/resumption/include/resumption/last_state.h b/src/components/resumption/include/resumption/last_state.h
index a331d9291c..3481fc9327 100644
--- a/src/components/resumption/include/resumption/last_state.h
+++ b/src/components/resumption/include/resumption/last_state.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, Ford Motor Company
+ * Copyright (c) 2017, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -35,7 +35,6 @@
#include <string>
-#include "utils/macro.h"
#include "json/json.h"
namespace resumption {
@@ -43,36 +42,19 @@ namespace resumption {
class LastState {
public:
/**
- * @brief Constructor
- */
- LastState(const std::string& app_storage_folder,
- const std::string& app_info_storage);
-
- /**
* @brief Destructor
*/
- ~LastState();
+ virtual ~LastState() {}
/**
* @brief Saving dictionary to filesystem
*/
- void SaveToFileSystem();
-
- /**
- * @brief public dictionary
- */
- Json::Value dictionary;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(LastState);
+ virtual void SaveStateToFileSystem() = 0;
/**
- * @brief Load dictionary from filesystem
+ * @brief Get reference to dictionary
*/
- void LoadFromFileSystem();
-
- std::string app_storage_folder_;
- std::string app_info_storage_;
+ virtual Json::Value& get_dictionary() = 0;
};
} // namespace resumption