+++ /dev/null
-//******************************************************************
-//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-/// @file OCObject.h
-
-/// @brief This file contains the declaration of classes and its members related to
-/// OCObject.
-
-#ifndef __OCOBJECT_H
-#define __OCOBJECT_H
-
-namespace OC
-{
- /**
- * @brief The OCObject is the root abstract class from which many of the OC related objects derive from.
- * It implements a common set of functionality supported by all the OC classes in the
- * SDK such as object naming, ID, natural sort order and comparison.
- */
- class OCObject
- {
- public:
- OCObject(void);
-
- virtual ~OCObject(void);
-
- /**
- * @fn Determines if the resource should be listed in the well-known core list.
- *
- * NOTE: This may be better handled at a different location.
- *
- * @return Returns true if resource should be listed.
- */
- virtual bool isVisible() = 0;
- };
-}
-
-#endif //__OCOBJECT_H
-
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-/// @file OCObserver.h
-
-/// @brief This file contains the declaration of classes and its members related to
-/// OCObserver.
-
-#ifndef __OCOBSERVER_H
-#define __OCOBSERVER_H
-
-#include <string>
-
-#include "OCObserver.h"
-
-namespace OC
-{
- /* It allows an app to register a method handler to monitor for
- state changes on a resource. Not all resource attributes are observable.
- */
- class OCObserver
- {
- public:
- OCObserver(void);
-
- virtual ~OCObserver(void);
- };
-
- /* It is likely that these signatures will change somewhat: */
- template <typename HandlerT, typename ResourceT>
- void bind_observer(HandlerT handler, ResourceT& resource, const std::string& name)
- {};
-
- // unbind the specified handler:
- template <typename HandlerT, typename ResourceT>
- void unbind_observer(HandlerT handler, ResourceT& resource)
- {};
-
- // unbind by name:
- template <typename HandlerT, typename ResourceT>
- void unbind_observer(HandlerT handler, ResourceT& resource, const std::string& name)
- {};
-
-} // namespace OC
-
-#endif //__OCOBSERVER_H
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-/// @file OCObserverHandler.h
-
-/// @brief This file contains the declaration of classes and its members related to
-/// ObserverHandler.
-
-#ifndef __OCOBSERVERHANDLER_H
-#define __OCOBSERVERHANDLER_H
-
-#include "OCApi.h"
-
-namespace OC
-{
- /**
- * @brief OCObserverHandler is a pure abstract class and it can be used for
- * observer related callbacks
- */
-
- class OCObserverHandler
- {
- public:
- virtual ~OCObserverHandler(void)
- {}
-
- /**
- * @fn This function is called when the property gets updated
- *
- * @param propertyName name of the property
- * @param value value of the property
- */
- virtual void onObserverUpdate(std::string propertyName, void *value) = 0;
- };
-
-}
-#endif //__OCOBSERVERHANDLER_H
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-/// @file OCResourceHandler.h
-
-/// @brief This file contains the declaration of classes and its members related to
-/// ResourceHandler.
-
-#ifndef _OCRESOURCEHANDLER_H
-#define _OCRESOURCEHANDLER_H
-
-#include "ocapi.h"
-#include "OCResource.h"
-
-namespace OC
-{
- /**
- * @brief OCResourceHandler is a pure abstract class and it can be used for
- * resource related callbacks
- */
- class OCResourceHandler
- {
- public:
- virtual ~OCResourceHandler(void){}
- /**
- * @fn This function is called when it finds the resource
- *
- * @param update resource result information
- * @param params reserved
- */
- virtual void onFoundResource(OCResourceResult *update, void *params) = 0;
- /**
- * @fn This function is called when the find is completed
- *
- * @param propertyName name of the property
- * @param value value of the property
- */
- virtual void onCompleted() = 0;
- /**
- * @fn This function is called when the find is failed
- *
- */
- virtual void onFailed() = 0;
-
- };
-}
-#endif //_OCRESOURCEHANDLER_H
-
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-#include "OCObject.h"
-
-namespace OC {
- OCObject::OCObject(void)
- {
- }
-
-
- OCObject::~OCObject(void)
- {
- }
-}
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-#include "OCObserver.h"
-
-namespace OC {
- OCObserver::OCObserver(void)
- {
- }
-
-
- OCObserver::~OCObserver(void)
- {
- }
-}
\ No newline at end of file