Imported Upstream version 1.0.1
[platform/upstream/iotivity.git] / service / simulator / src / service-provider / resource_update_automation.h
index ba80911..6ae1f0e 100644 (file)
@@ -66,17 +66,17 @@ class ResourceUpdateAutomation
 
         void stop();
 
-        void finished(int id);
-
     private:
+        void updateAttributes(std::vector<SimulatorResourceModel::Attribute> attributes);
+
         SimulatorResourceServer *m_resource;
         AutomationType m_type;
         int m_id;
+        bool m_stopRequested;
         int m_updateInterval;
-        SimulatorResourceModel m_resModel;
-        std::map<int, AttributeUpdateAutomationSP> m_attrUpdationList;
         updateCompleteCallback m_callback;
         std::function<void (const int)> m_finishedCallback;
+        std::thread *m_thread;
 };
 
 typedef std::shared_ptr<ResourceUpdateAutomation> ResourceUpdateAutomationSP;