2 * Copyright (c) 2016 Samsung Electronics Co.
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 * @file src/notification-daemon/GuiRunner.h
18 * @author Oskar Ĺwitalski <o.switalski@samsung.com>
19 * @brief Declaration of GuiRunner class
24 #include <Elementary.h>
28 #include <types/NotificationResponse.h>
33 namespace Notification {
35 typedef std::function<bool()> DropHandler;
51 NResponseType popupRun(const std::string &app, const std::string &perm);
53 void setDropHandler(DropHandler dropHandler);
56 std::string getErrorMsg() { return m_errorMsg; }
59 PopupData *m_popupData;
60 DropHandler m_dropHandler;
65 Evas_Object *m_content;
66 Evas_Object *m_allowButton;
67 Evas_Object *m_neverButton;
68 Evas_Object *m_denyButton;
71 bool m_running = false;
72 bool m_initialized = false;
74 std::string m_errorMsg;
79 } /* namespace Notification */
81 } /* namespace AskUser */