replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / notification / cpp-wrapper / provider / inc / NSConsumer.h
index 203ab9e..6a3f89d 100755 (executable)
@@ -29,6 +29,7 @@
 \r
 \r
 #include <string>\r
+#include <memory>\r
 #include "NSCommon.h"\r
 #include "NSUtils.h"\r
 #include "NSTopicsList.h"\r
@@ -82,8 +83,9 @@ namespace OIC
                       * This method is for setting icon image for the Notification service media contents.\r
                       * This function is valid only when subControllability is set true.\r
                       * @param accepted - as bool.\r
+                      * @return :: OK or result code of NSResult\r
                       */\r
-                int acceptSubscription(bool accepted);\r
+                NSResult acceptSubscription(bool accepted);\r
 \r
                 /**\r
                      * Select a topic name for a consumer\r
@@ -103,10 +105,11 @@ namespace OIC
                      * Request topic list with selection state for the consumer\r
                      * @return :: Topic list\r
                      */\r
-                NSTopicsList *getConsumerTopicList();\r
+                std::shared_ptr<NSTopicsList> getConsumerTopicList();\r
 \r
             private:\r
                 ::NSConsumer *getNSConsumer();\r
+                bool isValid() const;\r
 \r
             private:\r
                 std::string m_consumerId;\r