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 provides APIs of Notification Service for common functions.
33 #define NS_UUID_STRING_SIZE 37
36 * Result code of notification service
48 * Provider state of notification consumer service
60 * Notification message status to synchronize
71 * Notification Message Type
72 * Alert mean is High / critical
73 * Notice mean is low / critical
74 * Event mean is High / Normal
75 * Information mean is Low / Normal
80 NS_MESSAGE_NOTICE = 2,
83 NS_MESSAGE_WARNING = 5,
88 * Notification topic state
92 NS_TOPIC_UNSUBSCRIBED = 0,
93 NS_TOPIC_SUBSCRIBED = 1,
100 typedef struct _nsTopic
104 struct _nsTopic * next;
109 * Consumer information
113 char consumerId[NS_UUID_STRING_SIZE];
118 * Provider information
122 char providerId[NS_UUID_STRING_SIZE];
127 * Media Contents of Notification Message (Optional)
136 * Notification Message
142 char providerId[NS_UUID_STRING_SIZE];
151 NSMediaContents * mediaContents;
153 OCRepPayload * extraInfo;
158 * Synchronization information of the notification message
163 char providerId[NS_UUID_STRING_SIZE];
168 #endif /* _NS_COMMON_H_ */