summaryrefslogtreecommitdiff
path: root/services/SimpleUI/SimplePopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/SimpleUI/SimplePopup.h')
-rwxr-xr-x[-rw-r--r--]services/SimpleUI/SimplePopup.h117
1 files changed, 65 insertions, 52 deletions
diff --git a/services/SimpleUI/SimplePopup.h b/services/SimpleUI/SimplePopup.h
index d19cd0f4..54518a25 100644..100755
--- a/services/SimpleUI/SimplePopup.h
+++ b/services/SimpleUI/SimplePopup.h
@@ -30,61 +30,74 @@
namespace tizen_browser
{
-namespace base_ui
-{
-
-struct PopupData {
- virtual ~PopupData() {};
-};
-
-struct CertificatePopupData : public PopupData {
- basic_webengine::CertificateConfirmationPtr cert;
-};
-
-struct EntryPopupData : public PopupData {
- std::string text;
- Evas_Object * entry;
-};
-
-class SimplePopup : public interfaces::AbstractPopup
-{
-public:
- static SimplePopup* createPopup(Evas_Object* parent);
- static SimplePopup* createPopup(Evas_Object* parent, const std::string &title, const std::string &message);
-
- void show();
- void dismiss();
- void onBackPressed();
+ namespace base_ui
+ {
+
+ struct PopupData
+ {
+ virtual ~PopupData()
+ {
+ };
+ };
+
+ struct CertificatePopupData:public PopupData
+ {
+ basic_webengine::CertificateConfirmationPtr cert;
+ };
+
+ struct EntryPopupData:public PopupData
+ {
+ std::string text;
+ Evas_Object *entry;
+ };
+
+ class SimplePopup:public interfaces::AbstractPopup
+ {
+ public:
+ static SimplePopup *createPopup(Evas_Object * parent);
+ static SimplePopup *createPopup(Evas_Object * parent,
+ const std::string & title,
+ const std::string & message);
+
+ void show();
+ void dismiss();
+ void onBackPressed();
#if PROFILE_MOBILE
- void orientationChanged() {};
+ void orientationChanged()
+ {
+ };
#endif
- void setTitle(const std::string &title);
- void setMessage(const std::string &message);
- void setContent(Evas_Object *content);
- void setData(std::shared_ptr<PopupData> popupData);
- void addButton(PopupButtons buttonId);
-
- boost::signals2::signal<void (PopupButtons, std::shared_ptr<PopupData>)> buttonClicked;
-
- ~SimplePopup();
-
-private:
- SimplePopup(Evas_Object* parent);
- SimplePopup(Evas_Object* parent, const std::string &title, const std::string &message);
-
- Evas_Object *m_parent;
- Evas_Object *popup;
- Evas_Object *content;
- std::string title;
- std::string message;
- std::list<PopupButtons> buttons;
- static void _response_cb(void *data, Evas_Object *obj, void *event_info);
- std::map<Evas_Object *, PopupButtons> addedButtons;
- std::shared_ptr<PopupData> popupData;
-};
-
-}
+ void setTitle(const std::string & title);
+ void setMessage(const std::string & message);
+ void setContent(Evas_Object * content);
+ void setData(std::shared_ptr < PopupData > popupData);
+ void addButton(PopupButtons buttonId);
+
+ boost::signals2::signal < void(PopupButtons,
+ std::shared_ptr < PopupData >) >
+ buttonClicked;
+
+ ~SimplePopup();
+
+ private:
+ SimplePopup(Evas_Object * parent);
+ SimplePopup(Evas_Object * parent, const std::string & title,
+ const std::string & message);
+
+ Evas_Object *m_parent;
+ Evas_Object *popup;
+ Evas_Object *content;
+ std::string title;
+ std::string message;
+ std::list < PopupButtons > buttons;
+ static void _response_cb(void *data, Evas_Object * obj,
+ void *event_info);
+ std::map < Evas_Object *, PopupButtons > addedButtons;
+ std::shared_ptr < PopupData > popupData;
+ };
+
+ }
}