Using the Tizen application manager to receive information about installed apps and...
[staging/HomeScreen.git] / HomeScreen / src / popupwidget.h
1 /*
2  * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef POPUPWIDGET_H
18 #define POPUPWIDGET_H
19
20 #include <QWidget>
21 #include <include/popup.hpp>
22 #include "popup_adapter.h"
23
24 namespace Ui {
25 class PopupWidget;
26 }
27
28 class PopupWidget : public QWidget
29 {
30     Q_OBJECT
31
32 public:
33     explicit PopupWidget(QWidget *parent = 0);
34     ~PopupWidget();
35 public slots:
36     void updateColorScheme();
37
38     // from popup_adapter.h
39 public Q_SLOTS: // METHODS
40     void showPopup(int /*type*/, const QString &text);
41
42 private slots:
43     void on_pushButton_OK_clicked();
44
45 private:
46     Ui::PopupWidget *mp_ui;
47
48     PopupAdaptor *mp_popupAdaptor;
49     // for showPupupFor LayoutSelection
50     //QList<QPushButton> m_pushButtons;
51 };
52
53 #endif // POPUPWIDGET_H