summaryrefslogtreecommitdiff
path: root/mobile_src/Tizen/PluginOnDemandPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Tizen/PluginOnDemandPriv.h')
-rw-r--r--mobile_src/Tizen/PluginOnDemandPriv.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/mobile_src/Tizen/PluginOnDemandPriv.h b/mobile_src/Tizen/PluginOnDemandPriv.h
new file mode 100644
index 0000000..06a605e
--- /dev/null
+++ b/mobile_src/Tizen/PluginOnDemandPriv.h
@@ -0,0 +1,59 @@
+//
+// 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.h
+ * @version 0.1
+ * @brief
+ */
+
+#ifndef _WRT_PLUGIN_STANDARDS_TIZEN_DEVICEAPIS_PLUGIN_ON_DEMAND_PRIV
+#define _WRT_PLUGIN_STANDARDS_TIZEN_DEVICEAPIS_PLUGIN_ON_DEMAND_PRIV
+
+#include <map>
+#include <set>
+#include <string>
+#include <dpl/shared_ptr.h>
+#include <JavaScriptCore/JavaScript.h>
+#include <PluginManager/IPluginManager.h>
+
+namespace DeviceAPI { namespace Tizen {
+
+class PluginOnDemandPriv
+{
+ public:
+ PluginOnDemandPriv(
+ const WrtDeviceApis::PluginManager::Api::IPluginManagerPtr &pluginManager);
+
+ virtual ~PluginOnDemandPriv();
+
+ WrtDeviceApis::PluginManager::Api::IPluginManagerPtr getPluginManager() const;
+
+ bool propertyInited(std::string &propertyName);
+
+ private:
+ WrtDeviceApis::PluginManager::Api::IPluginManagerPtr m_pluginManager;
+
+ std::set<std::string> m_initedProperties;
+};
+
+typedef DPL::SharedPtr<PluginOnDemandPriv> PluginOnDemandPrivPtr;
+
+}
+}
+
+#endif