1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 /// @file OCPlatformHandler.h
8 /// @brief This file contains the declaration of classes and its members related to
11 #ifndef __OCPLATFORMHANDLER_H
12 #define __OCPLATFORMHANDLER_H
21 * @brief OCPlatformHandler is a pure abstract class and it can be used for
22 * registering and getting callbacks
24 class OCPlatformHandler
27 OCPlatformHandler(void);
29 virtual ~OCPlatformHandler(void);
32 * @fn This function is called when the platform gets initialzed
34 * @param platform pointer to OCPlatform object
36 virtual void onPlatformInitialized(OCPlatform *platform) = 0;
39 * @fn This function is called when platform status is changed
41 * @param platform - pointer to OCPlatform object
42 * @param status - OCPlatform status
44 virtual void onPlatformStatusChanged(OCPlatform *platform, OCPlatformStatus status) = 0;
48 #endif // __OCPLATFORMHANDLER_H