#include "excepted-apps-efl.h"
#include "common-efl.h"
+#define DO_NOT_DISTURB_OP "http://tizen.org/appcontrol/operation/setting/do_not_disturb"
+#define APP_NOTIFICATIONS_OP "http://tizen.org/appcontrol/operation/setting/app_notifications"
+
typedef enum
{
NOTIF_APP_TYPE,
NOTISET_DBG("%s", op_str);
- // TODO: impl choice of necessary view
- ugd->layout = _create_fullview(ugd->win, ugd, NOTIF_APP_TYPE);
+ app_type type = NOTIF_APP_TYPE;
+ if (strcmp(DO_NOT_DISTURB_OP, op_str) == 0)
+ {
+ type = DO_NOT_DISTURB_APP_TYPE;
+ }
+
+ ugd->layout = _create_fullview(ugd->win, ugd, type);
elm_object_content_set(ugd->win, ugd->layout);
free(op_str);
<ui-application appid="org.tizen.setting-notification" exec="setting-notification" launch_mode="caller" multiple="false" nodisplay="true" taskmanage="false" type="capp">
<label>setting-notification</label>
<icon>setting-notification.png</icon>
+ <app-control>
+ <operation name="http://tizen.org/appcontrol/operation/setting/do_not_disturb"/>
+ <operation name="http://tizen.org/appcontrol/operation/setting/app_notifications"/>
+ </app-control>
</ui-application>
<privileges>
<privilege>http://tizen.org/privilege/packagemanager.info</privilege>