\r
\r
#include <string>\r
+#include <memory>\r
#include "NSCommon.h"\r
#include "NSUtils.h"\r
#include "NSTopicsList.h"\r
* @param consumerId -consumerId of the Notification service Consumer.\r
*/\r
NSConsumer(const std::string &consumerId)\r
- : m_consumerId(consumerId) {}\r
+ : m_consumerId(consumerId)\r
+ {\r
+ }\r
\r
/**\r
* Constructor of NSConsumer.\r
* 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
* 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