Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / include / OCObserverHandler.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 /// @file OCObserverHandler.h 
7
8 /// @brief      This file contains the declaration of classes and its members related to 
9 ///                     ObserverHandler.
10
11 #ifndef __OCOBSERVERHANDLER_H
12 #define __OCOBSERVERHANDLER_H
13
14 #include "OCApi.h"
15
16 namespace OC
17 {
18         /**
19         * @brief        OCObserverHandler is a pure abstract class and it can be used for 
20         *                       observer related callbacks
21         */
22
23         class OCObserverHandler
24         {
25         public:
26                 virtual ~OCObserverHandler(void)
27                 {}
28
29                 /**
30                 * @fn   This function is called when the property gets updated
31                 * 
32                 * @param propertyName name of the property
33                 * @param value value of the property
34                 */
35                 virtual void onObserverUpdate(std::string propertyName, void *value) = 0;
36         };
37
38 }
39 #endif //__OCOBSERVERHANDLER_H