From 14955b35b62b08c95d259d30b09112664eaa2a6e Mon Sep 17 00:00:00 2001 From: Sashi Penta Date: Tue, 9 Sep 2014 13:09:51 -0700 Subject: [PATCH] Removing unwanted .h and .cpp files from C++ stack. Change-Id: Ib130b2c6849b4b13683229fcf0811ad246dccd9a --- include/OCObject.h | 55 -------------------------------------- include/OCObserver.h | 63 ------------------------------------------- include/OCObserverHandler.h | 54 ------------------------------------- include/OCResourceHandler.h | 65 --------------------------------------------- src/OCObject.cpp | 32 ---------------------- src/OCObserver.cpp | 32 ---------------------- 6 files changed, 301 deletions(-) delete mode 100644 include/OCObject.h delete mode 100644 include/OCObserver.h delete mode 100644 include/OCObserverHandler.h delete mode 100644 include/OCResourceHandler.h delete mode 100644 src/OCObject.cpp delete mode 100644 src/OCObserver.cpp diff --git a/include/OCObject.h b/include/OCObject.h deleted file mode 100644 index cf5423a..0000000 --- a/include/OCObject.h +++ /dev/null @@ -1,55 +0,0 @@ -//****************************************************************** -// -// 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 - diff --git a/include/OCObserver.h b/include/OCObserver.h deleted file mode 100644 index efe6a2f..0000000 --- a/include/OCObserver.h +++ /dev/null @@ -1,63 +0,0 @@ -//****************************************************************** -// -// 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 - -#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 - void bind_observer(HandlerT handler, ResourceT& resource, const std::string& name) - {}; - - // unbind the specified handler: - template - void unbind_observer(HandlerT handler, ResourceT& resource) - {}; - - // unbind by name: - template - void unbind_observer(HandlerT handler, ResourceT& resource, const std::string& name) - {}; - -} // namespace OC - -#endif //__OCOBSERVER_H diff --git a/include/OCObserverHandler.h b/include/OCObserverHandler.h deleted file mode 100644 index 77f7362..0000000 --- a/include/OCObserverHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -//****************************************************************** -// -// 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 diff --git a/include/OCResourceHandler.h b/include/OCResourceHandler.h deleted file mode 100644 index c8303e1..0000000 --- a/include/OCResourceHandler.h +++ /dev/null @@ -1,65 +0,0 @@ -//****************************************************************** -// -// 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 - diff --git a/src/OCObject.cpp b/src/OCObject.cpp deleted file mode 100644 index 5d074e1..0000000 --- a/src/OCObject.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//****************************************************************** -// -// 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) - { - } -} diff --git a/src/OCObserver.cpp b/src/OCObserver.cpp deleted file mode 100644 index fd646a1..0000000 --- a/src/OCObserver.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//****************************************************************** -// -// 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 -- 2.7.4