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>
31 class InstallerContext;
34 namespace WidgetInstall {
37 WIDGET_INSTALL_POPUP = 0,
38 WIDGET_FEATURE_INFO, //sp-2390
39 WIDGET_WRONG_FEATURE_INFO, //sp-3240
41 WIDGET_MIN_VERSION, //sp-3240
49 WRT_POPUP_BUTTON_CANCEL
53 class WidgetInstallPopup
56 explicit WidgetInstallPopup(InstallerContext &installContext);
57 virtual ~WidgetInstallPopup();
61 void loadPopup(PopupType type, const std::string &label);
63 bool addWin(const char *name);
65 void addTitle(PopupType type);
66 void addScrollLabel(const std::string &str);
67 void addContent(PopupType type, const std::string &str);
68 void addButton(PopupType type);
70 static void userPermitCallback(void *data,
73 static void userCancelCallback(void *data,
80 InstallerContext &m_installContext;