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,
85 NS_MESSAGE_DELETED = 12
90 * Notification topic state
94 NS_TOPIC_UNSUBSCRIBED = 0,
95 NS_TOPIC_SUBSCRIBED = 1,
102 typedef struct _nsTopic
106 struct _nsTopic * next;
111 * Consumer information
115 char consumerId[NS_UUID_STRING_SIZE];
120 * Provider information
124 char providerId[NS_UUID_STRING_SIZE];
129 * Media Contents of Notification Message (Optional)
138 * Notification Message
144 char providerId[NS_UUID_STRING_SIZE];
153 NSMediaContents * mediaContents;
155 OCRepPayload * extraInfo;
160 * Synchronization information of the notification message
165 char providerId[NS_UUID_STRING_SIZE];
170 #endif /* _NS_COMMON_H_ */