2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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 widget_install_popup.h
18 * @author lke01.lee (lke01.lee@samsung.com)
20 * @brief Implementation file for installer popup
23 #ifndef WIDGET_INSTALL_POPUP_H
24 #define WIDGET_INSTALL_POPUP_H
28 #include <Elementary.h>
30 class InstallerContext;
33 namespace WidgetInstall {
35 WIDGET_INSTALL_POPUP = 0,
36 WIDGET_FEATURE_INFO, //sp-2390
37 WIDGET_WRONG_FEATURE_INFO, //sp-3240
39 WIDGET_MIN_VERSION, //sp-3240
47 WRT_POPUP_BUTTON_CANCEL
50 class WidgetInstallPopup
53 explicit WidgetInstallPopup(InstallerContext &installContext);
54 virtual ~WidgetInstallPopup();
58 void loadPopup(PopupType type, const std::string &label);
60 bool addWin(const char *name);
62 void addTitle(PopupType type);
63 void addScrollLabel(const std::string &str);
64 void addContent(PopupType type, const std::string &str);
65 void addButton(PopupType type);
67 static void userPermitCallback(void *data,
70 static void userCancelCallback(void *data,
77 InstallerContext &m_installContext;