1 //******************************************************************
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
24 * This file contains Notification service topic representation.
40 * @brief This class provides a set of APIs for Notification service Topic.
46 * Notification topic State
48 enum class NSTopicState
55 * Constructor of NSTopic.
57 NSTopic(): m_state(NSTopicState::UNSUBSCRIBED)
62 * Constructor of NSTopic.
64 * @param topicName - topicName of the Notification service Topic.
65 * @param state - as NSTopicState.
67 NSTopic(const std::string &topicName, const NSTopicState state)
68 : m_topicName(topicName) , m_state(state)
74 * Destructor of NSTopic.
79 * This method is for getting topicName from the Notification service Topic.
81 * @return topicName as string.
83 std::string getTopicName() const;
86 * This method is for setting topicName for the Notification service Topic.
88 * @param topicName - as string.
90 void setTopicName(const std::string &topicName);
93 * This method is for getting state from the Notification service Topic.
95 * @return state as NSTopicState.
97 NSTopicState getState() const;
100 * This method is for setting state for the Notification service Topic.
102 * @param state - as NSTopicState.
104 void setState(const NSTopicState state);
107 std::string m_topicName;
108 NSTopicState m_state;
113 #endif /* _NS_TOPIC_H_ */