Imported Upstream version 0.9.1
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SSMCore / src / SensorProcessor / ResourceFinder.h
index 1ad2ccf..d9ea15f 100644 (file)
@@ -50,17 +50,18 @@ class CResourceFinder: public CObjectRoot< CObjectMultiThreadModel >,
         SSMRESULT finalConstruct();
         void finalRelease();
 
-        SSMRESULT registerResourceFinderEvent(IN IResourceFinderEvent *pEvent);
+        SSMRESULT registerResourceFinderEvent(IResourceFinderEvent *pEvent);
         void onResourceFound(std::shared_ptr< OC::OCResource > resource);
         void presenceHandler(OCStackResult result, const unsigned int nonce,
                              const std::string &hostAddress);
         SSMRESULT startResourceFinder();
+        SSMRESULT stopResourceFinder();
 
-        SSMRESULT startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent);
-        SSMRESULT stopObserveResource(IN ISSMResource *pSensor);
+        SSMRESULT startObserveResource(ISSMResource *pSensor, IEvent *pEvent);
+        SSMRESULT stopObserveResource(ISSMResource *pSensor);
 
-        void onExecute(IN void *pArg);
-        void onTerminate(IN void *pArg);
+        void onExecute(void *pArg);
+        void onTerminate(void *pArg);
 
     private:
         class OICResourceHandler
@@ -75,7 +76,7 @@ class CResourceFinder: public CObjectRoot< CObjectMultiThreadModel >,
                 }
 
                 SSMRESULT initHandler(std::shared_ptr< OC::OCResource > resource,
-                                      IN IThreadClient *pThreadClient)
+                                      IThreadClient *pThreadClient)
                 {
                     SSMRESULT res = SSM_E_FAIL;
 
@@ -201,8 +202,10 @@ CLEANUP: return res;
             RESOURCE_DISCOVER_INSTALL_RESOURCE,
             RESOURCE_DISCOVER_UNINSTALL_RESOURCE
         };
+
         IResourceFinderEvent *m_pResourceFinderEvent;
         CObjectPtr< ITasker > m_pTasker;
+        OC::OCPlatform::OCPresenceHandle m_multicastPresenceHandle;
         std::map< std::string, OICResourceHandler * > m_mapResourceHandler;
         std::map< std::string, std::vector<std::string> >
         m_mapResources;    // <hostaddress, std::vector<resources> >