2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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.
21 #include <syspopup_caller.h>
23 #include <bundle_internal.h>
27 #include "stc-plugin.h"
30 int stc_plugin_popup_send_warn_message(const char *content,
31 const char *type, const char *app_id, const char *iftype, const char *warn)
34 bundle *b = bundle_create();
36 STC_LOGD("Warn message : content[%s] type[%s] app_id[%s] warn[%s]",
37 content, type, app_id, warn);
39 bundle_add(b, "_SYSPOPUP_CONTENT_", content);
40 bundle_add(b, "_SYSPOPUP_TYPE_", type);
41 bundle_add(b, "_APP_ID_", app_id);
42 bundle_add(b, "_IF_TYPE_", iftype);
43 bundle_add(b, "_WARN_LIMIT_", warn);
45 ret = syspopup_launch("net-popup", b);
52 int stc_plugin_popup_send_restriction_message(const char *content,
53 const char *type, const char *app_id, const char *iftype, const char *limit)
56 bundle *b = bundle_create();
58 STC_LOGD("Restriction message : content[%s] type[%s] app_id[%s] limit[%s]",
59 content, type, app_id, limit);
61 bundle_add(b, "_SYSPOPUP_CONTENT_", content);
62 bundle_add(b, "_SYSPOPUP_TYPE_", type);
63 bundle_add(b, "_APP_ID_", app_id);
64 bundle_add(b, "_IF_TYPE_", iftype);
65 bundle_add(b, "_RESTRICTION_LIMIT_", limit);
67 ret = syspopup_launch("net-popup", b);