2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 ////////////////////////////////////////////////////////////////////////////////////////////////////
18 /// \defgroup <<Group Tag>> <<Group Name>>
19 /// \ingroup tag_NS_NPPService
21 ////////////////////////////////////////////////////////////////////////////////////////////////////
23 ////////////////////////////////////////////////////////////////////////////////////////////////////
24 /// \ingroup tag_NS_NPPService
25 /// \brief This file contains declaration of class CRegularNotification.
27 ////////////////////////////////////////////////////////////////////////////////////////////////////
29 #ifndef NOTIFICATION_PERSISTENT_SERVICE_SERVER_INCLUDE_NS_NPP_REGULAR_NOTIFICATION_H_
30 #define NOTIFICATION_PERSISTENT_SERVICE_SERVER_INCLUDE_NS_NPP_REGULAR_NOTIFICATION_H_
32 ////////////////////////////////////////////////////////////////////////////////////////////////////
34 ////////////////////////////////////////////////////////////////////////////////////////////////////
36 #include "ns_npp_notification.h"
39 * This class inherits CNotification class and implements regular notification related operations.
41 class CRegularNotification : public CNotification {
43 // no members in private
46 ////////////////////////////////////////////////////////////////////////////////////////////////
47 /// CRegularNotification
48 /// Constructor of CRegularNotification class
50 /// \param [IN] f_cnotificationname
51 /// std::string - Notification name
53 /// \param [IN] f_uimaxmsgsize
54 /// UI_32 - Maximum size of notification data
58 ////////////////////////////////////////////////////////////////////////////////////////////////
59 CRegularNotification(const std::string &f_cnotificationname,
60 const UI_32 f_uimaxmsgsize);
62 ////////////////////////////////////////////////////////////////////////////////////////////////
63 /// ~CRegularNotification
64 /// Destructor of CRegularNotification class
70 ////////////////////////////////////////////////////////////////////////////////////////////////
71 ~CRegularNotification();
73 ////////////////////////////////////////////////////////////////////////////////////////////////
75 /// This function adds the name of the application to receiver list of particular notification.
77 /// \param [IN] f_csubscribername
78 /// std::string - name of application subscribing for notification
80 /// \return EFrameworkunifiedStatus
81 // EFrameworkunifiedStatus - success or failure status
83 ////////////////////////////////////////////////////////////////////////////////////////////////
84 EFrameworkunifiedStatus AddEventReciever(const std::string &f_csubscribername);
86 ////////////////////////////////////////////////////////////////////////////////////////////////
88 /// This function publishes the notification to subscribed clients.
90 /// \param [IN] f_cservicename
91 /// std::string - name of service publishing the notification
93 /// \param [IN] f_pmessage
94 /// std::string - data of notification
96 /// \param [IN] f_uimsgsize
97 /// std::string - length of data
99 /// \return EFrameworkunifiedStatus
100 // EFrameworkunifiedStatus - success or failure status
102 ////////////////////////////////////////////////////////////////////////////////////////////////
103 EFrameworkunifiedStatus Publish(const std::string &f_cservicename,
105 const UI_32 f_uimsgsize);
109 #endif // NOTIFICATION_PERSISTENT_SERVICE_SERVER_INCLUDE_NS_NPP_REGULAR_NOTIFICATION_H_