Changed plugin public setValue API to private.
authorheesung84.kim <heesung84.kim@samsung.com>
Mon, 15 Dec 2014 04:55:06 +0000 (13:55 +0900)
committerheesung84.kim <heesung84.kim@samsung.com>
Mon, 15 Dec 2014 04:55:06 +0000 (13:55 +0900)
    Application developer shoud not change the plugin infomation.
    remove unnecessary code.

Change-Id: Id1ca15282d0b6a4facb547a6b40250c1b61cbd13
Signed-off-by: heesung84.kim <heesung84.kim@samsung.com>
service/protocol-plugin/build/linux/Makefile
service/protocol-plugin/plugin-manager/src/Plugin.h
service/protocol-plugin/plugin-manager/src/PluginManagerImpl.cpp

index 53f0396..dafa22e 100644 (file)
@@ -1,6 +1,6 @@
 PROTOCOL_ROOT = ../../
 
-.PHONY:pre resource plugin-manager plugins sample-app
+.PHONY:pre plugin-manager plugins sample-app
 
 all: .PHONY
 
index 5b1e3a6..d360cf0 100644 (file)
@@ -60,11 +60,7 @@ namespace OIC
     */
     class Plugin
     {
-
-
         public:
-
-
             /**
             * Constructor for Plugin.
             *
@@ -120,18 +116,6 @@ namespace OIC
             */
             std::string getValueByAttribute(const std::string attribute);
 
-
-            /**
-            * Set key, value. key is attribute name.
-            *
-            * @param key is atrribute name.
-            * @param value for the attribute.
-            * @return void
-            *
-            */
-            void setValue(const std::string key, const std::string value);
-
-
             /**
             * Check whether the plugin same or not.
             *
@@ -142,6 +126,18 @@ namespace OIC
             bool operator==(Plugin &plugin);
 
         private:
+            friend class CpluffAdapter;
+            friend class FelixAdapter;
+              /**
+            * Set key, value. key is attribute name.
+            *
+            * @param key is atrribute name.
+            * @param value for the attribute.
+            * @return void
+            *
+            */
+            void setValue(const std::string key, const std::string value);
+
             std::map<std::string, AttributeValue> m_attributeMap;
             std::vector<std::string> m_supportedType;
     };
index 2795e83..1f527fb 100644 (file)
@@ -74,9 +74,6 @@ int PluginManagerImpl::unregisterPlugin(std::string id)
 {
     int flag = 0;
 
-    Plugin *plugin = new Plugin;
-    plugin->setValue("Id", id);
-
     for (unsigned int i = 0 ; i < m_plugins.size(); i++)
     {
         if (!m_plugins[i].getID().compare(id))