X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fcpp-wrapper%2Fprovider%2Finc%2FNSConsumer.h;h=6a3f89de8086016a61e134613a78c6540e9808ba;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=203ab9ec015812a0a8a2bac1f725fddd5442bbcc;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/cpp-wrapper/provider/inc/NSConsumer.h b/service/notification/cpp-wrapper/provider/inc/NSConsumer.h index 203ab9e..6a3f89d 100755 --- a/service/notification/cpp-wrapper/provider/inc/NSConsumer.h +++ b/service/notification/cpp-wrapper/provider/inc/NSConsumer.h @@ -29,6 +29,7 @@ #include +#include #include "NSCommon.h" #include "NSUtils.h" #include "NSTopicsList.h" @@ -82,8 +83,9 @@ namespace OIC * This method is for setting icon image for the Notification service media contents. * This function is valid only when subControllability is set true. * @param accepted - as bool. + * @return :: OK or result code of NSResult */ - int acceptSubscription(bool accepted); + NSResult acceptSubscription(bool accepted); /** * Select a topic name for a consumer @@ -103,10 +105,11 @@ namespace OIC * Request topic list with selection state for the consumer * @return :: Topic list */ - NSTopicsList *getConsumerTopicList(); + std::shared_ptr getConsumerTopicList(); private: ::NSConsumer *getNSConsumer(); + bool isValid() const; private: std::string m_consumerId;