diff options
Diffstat (limited to 'wearable_src/Tizen/PluginOnDemandPriv.cpp')
-rw-r--r-- | wearable_src/Tizen/PluginOnDemandPriv.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/wearable_src/Tizen/PluginOnDemandPriv.cpp b/wearable_src/Tizen/PluginOnDemandPriv.cpp new file mode 100644 index 0000000..3d9027e --- /dev/null +++ b/wearable_src/Tizen/PluginOnDemandPriv.cpp @@ -0,0 +1,57 @@ +// +// Tizen Web Device API +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// 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 PluginOnDemandPriv.cpp + * @author + * @version 0.1 + * @brief + */ + +#include "PluginOnDemandPriv.h" + +namespace DeviceAPI {
namespace Tizen { + +using namespace WrtDeviceApis::PluginManager::Api; + +PluginOnDemandPriv::PluginOnDemandPriv(const IPluginManagerPtr &pluginManager) : + m_pluginManager(pluginManager) +{ +} + +PluginOnDemandPriv::~PluginOnDemandPriv() +{ +} + +IPluginManagerPtr PluginOnDemandPriv::getPluginManager() const +{ + return m_pluginManager; +} + +bool PluginOnDemandPriv::propertyInited(std::string &propertyName) +{ + if(m_initedProperties.find(propertyName) == m_initedProperties.end()) + { + m_initedProperties.insert(propertyName); + return false; + } + + return true; +} + +} +} |