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) { }
60 * Constructor of NSTopic.
62 * @param topicName - topicName of the Notification service Topic.
63 * @param state - as NSTopicState.
65 NSTopic(const std::string &topicName, const NSTopicState state)
66 : m_topicName(topicName) , m_state(state) {}
70 * Destructor of NSTopic.
75 * This method is for getting topicName from the Notification service Topic.
77 * @return topicName as string.
79 std::string getTopicName() const;
82 * This method is for setting topicName for the Notification service Topic.
84 * @param topicName - as string.
86 void setTopicName(const std::string &topicName);
89 * This method is for getting state from the Notification service Topic.
91 * @return state as NSTopicState.
93 NSTopicState getState() const;
96 * This method is for setting state for the Notification service Topic.
98 * @param state - as NSTopicState.
100 void setState(const NSTopicState state);
103 std::string m_topicName;
104 NSTopicState m_state;
109 #endif /* _NS_TOPIC_H_ */