From 6a4fcadd06f0b52951dd445aeb380d7d0865c438 Mon Sep 17 00:00:00 2001 From: Taeyoung Kim Date: Tue, 28 Jan 2014 20:53:10 +0900 Subject: [PATCH] Add common file which contains functions used at other popups Signed-off-by: Taeyoung Kim Change-Id: I71d1dc8971af4e3261a6979d9e7dc71ec614927b --- data/lowbatt-popup.ini | 2 - data/lowmem-popup.ini | 2 - data/mmc-popup.ini | 2 - data/org.tizen.lowbat-syspopup.png | Bin 5759 -> 0 bytes data/org.tizen.lowmem-syspopup.png | Bin 5759 -> 0 bytes data/org.tizen.poweroff-syspopup.png | Bin 5759 -> 0 bytes data/poweroff-popup.ini | 2 - share/common.c | 86 +++++++++++++++++++++++++++++++++++ share/common.h | 84 ++++++++++++++++++++++++++++++++++ 9 files changed, 170 insertions(+), 8 deletions(-) delete mode 100644 data/lowbatt-popup.ini delete mode 100644 data/lowmem-popup.ini delete mode 100644 data/mmc-popup.ini delete mode 100755 data/org.tizen.lowbat-syspopup.png delete mode 100755 data/org.tizen.lowmem-syspopup.png delete mode 100755 data/org.tizen.poweroff-syspopup.png delete mode 100644 data/poweroff-popup.ini create mode 100755 share/common.c create mode 100644 share/common.h diff --git a/data/lowbatt-popup.ini b/data/lowbatt-popup.ini deleted file mode 100644 index 5abbace..0000000 --- a/data/lowbatt-popup.ini +++ /dev/null @@ -1,2 +0,0 @@ -[ProcessSetting] -BG_SCHEDULE=true diff --git a/data/lowmem-popup.ini b/data/lowmem-popup.ini deleted file mode 100644 index 5abbace..0000000 --- a/data/lowmem-popup.ini +++ /dev/null @@ -1,2 +0,0 @@ -[ProcessSetting] -BG_SCHEDULE=true diff --git a/data/mmc-popup.ini b/data/mmc-popup.ini deleted file mode 100644 index 5abbace..0000000 --- a/data/mmc-popup.ini +++ /dev/null @@ -1,2 +0,0 @@ -[ProcessSetting] -BG_SCHEDULE=true diff --git a/data/org.tizen.lowbat-syspopup.png b/data/org.tizen.lowbat-syspopup.png deleted file mode 100755 index ef74fd1f771bfaa00f098b1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%0l1K5a!=5~Ph%cN;kbe10WBkQa zRb(?7l&E=j+eW-|*XC38YW-B9P(&`5byBKfHCn>Xye5&2&FZaAP9nl)!I{@r=^r~Xj`w>I%Cv>Arld0 zGnonPjg7Hm=bR%Dh@G=x7%!3#5i^hS*xkh`dJuhsR|B2(J^x?NSN8t=_lGv*vz{d| zg3w}i+Z28H-EVq^T>KmZ5K@viW}%%T$rSBeuo9lC$*`fPo>Mn`ykOYfX>sghqqgnc>wmIlNA1i~~Jj!H00 z72Ur)I#u+jC^}VjZ~czGfKFjwI-j2AqmxfSPjl!C*mc_A{g~@u0A#HtW)1*&MC6hK zmv$YqCm}@37}N8yf|WoEW~Qa3r7MW&Og^6vnAtk#Vq**s;xNvru4=VfT3A@PN-1^e zidIUMopbp(j!TtF<(;)!ElB#m+)I6bIoop-MY%8xb+K3k5gBH-Xbd!AH`(m+}z2lBMZfE9q zC4o~USIppo8@jAV)=DXq%jLO;AAb1BTCGL^VgQQ(mH;#pm9Gq%h;#zf2T%myC7?rG zaG#O&2s*KfaR3__-Ck_g(YZ@b zE!h@+auw5c{;~<5unRO_Y#tpae;NQStce3g17EHSwtc;zZP!&xtHb44bu5)H);hYc x7win_main) || !content) + return -EINVAL; + + evas_object_show(ad->win_main); + ad->popup = elm_popup_add(ad->win_main); + evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_object_style_set(ad->popup, "transparent"); + elm_object_text_set(ad->popup, content); + + if (title) { + /* Popup title */ + elm_object_part_text_set(ad->popup, "title,text", title); + } + + if (lbtnText && lbtn_cb) { + /* Left button */ + lbtn = elm_button_add(ad->popup); + elm_object_text_set(lbtn, lbtnText); + elm_object_part_content_set(ad->popup, "button1", lbtn); + evas_object_smart_callback_add(lbtn, "clicked", lbtn_cb, ad); + } + + if (rbtnText && rbtn_cb) { + /* Right button */ + rbtn = elm_button_add(ad->popup); + elm_object_text_set(rbtn, rbtnText); + elm_object_part_content_set(ad->popup, "button2", rbtn); + evas_object_smart_callback_add(rbtn, "clicked", rbtn_cb, ad); + } + + xwin = elm_win_xwindow_get(ad->popup); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + + evas_object_show(ad->popup); + + return 0; +} + diff --git a/share/common.h b/share/common.h new file mode 100644 index 0000000..c7b5c16 --- /dev/null +++ b/share/common.h @@ -0,0 +1,84 @@ +/* + * system-popup + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#ifndef __COMMON_H_ +#define __COMMON_H_ + +#include +#include +#include +#include +#include +#include + +#undef LOG_TAG +#define LOG_TAG "SYSTEM_POPUP" +#define _D(fmt, args...) SLOGD(fmt, ##args) +#define _E(fmt, args...) SLOGE(fmt, ##args) +#define _I(fmt, args...) SLOGI(fmt, ##args) + +#define FREE(arg) \ + do { \ + if(arg) { \ + free((void *)arg); \ + arg = NULL; \ + } \ + } while (0); + +struct appdata { + /* Common */ + Evas_Object *win_main; + Evas_Object *layout_main; + Evas_Object *popup; + bundle *b; + syspopup_handler handler; + + /* For poweroff popup */ + Evas_Object *popup_poweroff; + Evas_Object *popup_access; + Evas_Object *popup_notification; + Evas_Object *popup_chk; + Evas_Object *list; + Evas_Object *list_access; + + /* For usbotg popup */ + Evas_Object *storage_added_popup; + Evas_Object *storage_unmount_popup; + Evas_Object *camera_added_popup; + char *storage_added_path; + char *storage_unmount_path; + + /* IPC by dbus */ + E_DBus_Signal_Handler *edbus_handler; + E_DBus_Connection *edbus_conn; + +}; + +void popup_terminate(void); +int load_normal_popup(struct appdata *ad, + char *title, + char *content, + char *lbtnText, + Evas_Smart_Cb lbtn_cb, + char *rbtnText, + Evas_Smart_Cb rbtn_cb); + + +#endif /* __COMMON_H__ */ -- 2.7.4