tizen 2.3.1 release tizen_2.3.1 submit/tizen_2.3.1/20150915.080502 tizen_2.3.1_release
authorjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:17:59 +0000 (22:17 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:17:59 +0000 (22:17 +0900)
38 files changed:
CMakeLists.txt
data/mobile/syspopup_db.sql [new file with mode: 0755]
data/syspopup_db.sql [deleted file]
data/wearable/syspopup_db.sql [new file with mode: 0755]
debian/changelog [deleted file]
debian/compat [deleted file]
debian/control [deleted file]
debian/dirs [deleted file]
debian/docs [deleted file]
debian/rules [deleted file]
debian/syspopup-0.install.in [deleted file]
debian/syspopup-0.postinst [deleted file]
debian/syspopup-caller-0.install.in [deleted file]
debian/syspopup-caller-0.postinst [deleted file]
debian/syspopup-caller-dev.install.in [deleted file]
debian/syspopup-dev.install.in [deleted file]
image/README [deleted file]
image/syspopup_diag.png [new file with mode: 0755]
include/SLP_SYSPOPUP_PG.h
include/simple_util.h
include/syspopup.h
include/syspopup_caller.h
include/syspopup_core.h
include/syspopup_db.h
org.tizen.syspopup-app.manifest [new file with mode: 0644]
org.tizen.syspopup-app.rule [new file with mode: 0755]
packaging/syspopup.spec
src/syspopup_core.c
src/syspopup_db.c
syspopup-app/CMakeLists.txt
syspopup-app/syspopup-app.c
syspopup-app/syspopup-app.h
syspopup-caller.manifest [new file with mode: 0755]
syspopup.manifest [new file with mode: 0755]
syspopup/syspopup.c
syspopup/syspopup_efl.c
test/CMakeLists.txt
test/test.c

index b67f39c..9bbf853 100644 (file)
@@ -59,7 +59,11 @@ add_library(syspopup_mods STATIC
                )
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/SLP_SYSPOPUP_PG.h DESTINATION include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/syspopup_db.sql DESTINATION /usr/share/syspopup/)
+IF(_WEARABLE)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/wearable/syspopup_db.sql DESTINATION /usr/share/syspopup/)
+ELSE(_WEARABLE)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/mobile/syspopup_db.sql DESTINATION /usr/share/syspopup/)
+ENDIF(_WEARABLE)
 
 add_subdirectory(syspopup)
 add_subdirectory(syspopup-caller)
diff --git a/data/mobile/syspopup_db.sql b/data/mobile/syspopup_db.sql
new file mode 100755 (executable)
index 0000000..f4623ca
--- /dev/null
@@ -0,0 +1,58 @@
+PRAGMA journal_mode = PERSIST;
+
+/* prio : 0~2 (0:low, 2:high) */
+/* focus : 0~1 (0:focus, 1:unfocus) */
+/* timeout : -1 ~ integer value (-1:infinite, 0:don't use) */
+/* term_act : 0~2(0:TERM, 1:HIDE, 2:IGNORE) */
+/* endkey_act : 0~2(0:TERM, 1:HIDE, 2:IGNORE) */
+CREATE TABLE IF NOT EXISTS syspopup_info (
+       id INTEGER PRIMARY KEY,
+       name TEXT UNIQUE NOT NULL,
+       prio INTEGER,
+       focus INTEGER,
+       timeout INTEGER,
+       term_act INTEGER,
+       endkey_act INTEGER,
+       pkgname TEXT
+);
+
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"syspopup-app",             2,1,5,0,0,"org.tizen.syspopup-app");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"volume",                    1,1,-1,1,1,"org.tizen.volume");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"bt-syspopup",              0,0,-1,0,0,"org.tizen.bt-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"wifi-qs",                  0,0,-1,0,2,"net.wifi-qs");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"poweroff-syspopup",                2,0,-1,0,0,"org.tizen.poweroff-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"lowmem-syspopup",          0,0,5,0,0,"org.tizen.lowmem-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"lowbat-syspopup",          1,0,5,0,0,"org.tizen.lowbat-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"net-popup",                        0,0,-1,0,0,"net.netpopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"usb-syspopup",             1,0,-1,2,2,"org.tizen.usb-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"usbotg-syspopup",          0,1,-1,0,0,"org.tizen.usbotg-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"mmc-syspopup",             0,0,-1,0,0,"org.tizen.mmc-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"mobileap-syspopup",                0,0,-1,0,0,"org.tizen.mobileap-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"telephony-syspopup",       1,1,5,0,0,"org.tizen.telephony-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"system-syspopup",          2,0,-1,0,0,"org.tizen.system-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"safetyvolume-syspopup",    1,0,-1,0,0,"org.tizen.safetyvolume-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"datausage-syspopup",       1,0,-1,0,0,"org.tizen.datausage-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"crash-popup",              1,0,-1,0,0,"org.tizen.crash-popup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"gps-syspopup",             0,0,-1,0,0,"org.tizen.gps-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"mode-syspopup",            1,0,-1,0,0,"org.tizen.mode-syspopup");
+/*
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"drm",                       0,0,5,0,0,"com.samsung.drm-popup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"incoming_call",            2,0,-1,2,2,"com.samsung.incoming_call");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"phone_lock",               2,0,-1,2,2,"com.samsung.screen_lock");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"screen_lock",              1,0,-1,0,2,"com.samsung.screen_lock");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"alarm",                    1,0,-1,0,2,"com.samsung.alarm");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"timer",                    1,0,5,0,2,"com.samsung.timer");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"schedule_alarm",           1,0,-1,0,2,"com.samsung.schedule_alarm");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"change_select_network",    0,0,-1,0,0,"com.samsung.change_select_network");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"privacy_lock",             0,0,-1,0,2,"com.samsung.privacy_lock");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"active_sync_policy",       0,0,-1,0,0,"com.samsung.active_sync_policy");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"memory_full",              0,1,5,0,0,"com.samsung.memory_full");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"charger_conn",             0,1,5,0,0,"com.samsung.charger_conn");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"sim_extraction",           0,1,5,0,0,"com.samsung.sim_extraction");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"time_zone_update",         0,1,5,0,0,"com.samsung.time_zone_update");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"dnet-popup",               0,0,5,0,0,"com.samsung.dnet-popup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"nfc-syspopup",             0,1,3,0,0,"com.samsung.nfc-sys-popup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"push-syspopup",            2,0,5,0,0,"com.samsung.push-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"hdmi-syspopup",            0,1,-1,0,0,"com.samsung.hdmi-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"tickernoti-syspopup",      1,1,-1,2,2,"com.samsung.tickernoti-syspopup");
+*/
diff --git a/data/syspopup_db.sql b/data/syspopup_db.sql
deleted file mode 100755 (executable)
index edf5c2b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-PRAGMA journal_mode = PERSIST;
-
-/* prio : 0~2 (0:low, 2:high) */
-/* focus : 0~1 (0:focus, 1:unfocus) */
-/* timeout : -1 ~ integer value (-1:infinite, 0:don't use) */
-/* term_act : 0~2(0:TERM, 1:HIDE, 2:IGNORE) */
-/* endkey_act : 0~2(0:TERM, 1:HIDE, 2:IGNORE) */
-CREATE TABLE IF NOT EXISTS syspopup_info (
-       id INTEGER PRIMARY KEY,
-       name TEXT UNIQUE NOT NULL,
-       prio INTEGER,
-       focus INTEGER,
-       timeout INTEGER,
-       term_act INTEGER,
-       endkey_act INTEGER,
-       pkgname TEXT
-);
-
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"syspopup-app",             2,1,5,0,0,"org.tizen.syspopup-app");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"incoming_call",            2,0,-1,2,2,"org.tizen.incoming_call");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"phone_lock",               2,0,-1,2,2,"org.tizen.screen_lock");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"screen_lock",              1,0,-1,0,2,"org.tizen.screen_lock");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"volume",                   1,1,-1,1,1,"org.tizen.volume");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"alarm",                    1,0,-1,0,2,"org.tizen.alarm");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"timer",                    1,0,5,0,2,"org.tizen.timer");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"schedule_alarm",           1,0,-1,0,2,"org.tizen.schedule_alarm");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"bt-syspopup",              0,0,-1,0,0,"org.tizen.bt-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"change_select_network",    0,0,-1,0,0,"org.tizen.change_select_network");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"wifi-qs",                  0,0,-1,0,0,"net.wifi-qs");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"privacy_lock",             0,0,-1,0,2,"org.tizen.privacy_lock");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"poweroff-syspopup",                1,1,-1,0,0,"org.tizen.poweroff-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"drm",                      0,0,5,0,0,"org.tizen.drm-popup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"active_sync_policy",       0,0,-1,0,0,"org.tizen.active_sync_policy");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"memory_full",              0,1,5,0,0,"org.tizen.memory_full");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"lowmem-syspopup",          1,1,5,0,0,"org.tizen.lowmem-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"lowbat-syspopup",          1,1,5,0,0,"org.tizen.lowbat-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"charger_conn",             0,1,5,0,0,"org.tizen.charger_conn");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"sim_extraction",           0,1,5,0,0,"org.tizen.sim_extraction");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"time_zone_update",         0,1,5,0,0,"org.tizen.time_zone_update");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"dnet-popup",               0,0,5,0,0,"org.tizen.dnet-popup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"nfc-syspopup",             0,1,3,0,0,"org.tizen.nfc-sys-popup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"push-syspopup",            2,0,5,0,0,"org.tizen.push-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"net-popup",                        0,0,-1,0,0,"net.netpopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"usb-syspopup",             1,1,-1,2,2,"org.tizen.usb-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"ims-syspopup",             1,1,-1,2,2,"org.tizen.ims-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"mdm-syspopup",             1,1,5,0,0,"org.tizen.mdm-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"tickernoti-syspopup",      1,1,-1,2,2,"org.tizen.tickernoti-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"usbotg-syspopup",          0,1,5,0,0,"org.tizen.usbotg-syspopup");
-INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"allshare-popup",            0,0,-1,0,0,"org.tizen.allshare-popup");
diff --git a/data/wearable/syspopup_db.sql b/data/wearable/syspopup_db.sql
new file mode 100755 (executable)
index 0000000..99128ee
--- /dev/null
@@ -0,0 +1,27 @@
+PRAGMA journal_mode = PERSIST;
+
+/* prio : 0~2 (0:low, 2:high) */
+/* focus : 0~1 (0:focus, 1:unfocus) */
+/* timeout : -1 ~ integer value (-1:infinite, 0:don't use) */
+/* term_act : 0~2(0:TERM, 1:HIDE, 2:IGNORE) */
+/* endkey_act : 0~2(0:TERM, 1:HIDE, 2:IGNORE) */
+CREATE TABLE IF NOT EXISTS syspopup_info (
+       id INTEGER PRIMARY KEY,
+       name TEXT UNIQUE NOT NULL,
+       prio INTEGER,
+       focus INTEGER,
+       timeout INTEGER,
+       term_act INTEGER,
+       endkey_act INTEGER,
+       pkgname TEXT
+);
+
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"volume",                    1,1,-1,1,1,"org.tizen.windicator");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"poweroff-syspopup",         2,0,-1,0,0,"org.tizen.poweroff-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"lowmem-syspopup",           0,0,5,0,0,"org.tizen.lowmem-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"lowbat-syspopup",           1,0,5,0,0,"org.tizen.lowbat-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"system-syspopup",           2,0,-1,0,0,"org.tizen.system-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"safetyvolume-syspopup",     2,1,-1,0,0,"org.tizen.safetyvolume-syspopup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"crash-popup",               1,0,-1,0,0,"org.tizen.crash-popup");
+INSERT OR REPLACE INTO "syspopup_info" VALUES(NULL,"wc-syspopup",               0,0,-1,0,0,"net.wc-syspopup");
+
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100755 (executable)
index dcea1d7..0000000
+++ /dev/null
@@ -1,583 +0,0 @@
-syspopup (0.0.75) unstable; urgency=low
-
-  * Added OTG syspopup info
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.75
-
- -- Sewook Park <sewook7.park@samsung.com>  Mon, 21 May 2012 21:07:17 +0900
-
-syspopup (0.0.74) unstable; urgency=low
-
-  * Fixed compile warnings
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.74
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Tue, 20 Mar 2012 14:45:42 +0900
-
-syspopup (0.0.73) unstable; urgency=low
-
-  * Changed network syspopup name, Fixed desktop field
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.73
-
- -- Sewook Park <sewook7.park@samsung.com>  Thu, 15 Mar 2012 16:07:54 +0900
-
-syspopup (0.0.72) unstable; urgency=low
-
-  * Added ticker popup info
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.72
-
- -- Sewook Park <sewook7.park@samsung.com>  Wed, 14 Mar 2012 16:22:20 +0900
-
-syspopup (0.0.71) unstable; urgency=low
-
-  * API Changes in elementary
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.71
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Tue, 13 Mar 2012 17:59:18 +0900
-
-syspopup (0.0.70) unstable; urgency=low
-
-  * Fixed to use dbus instead of heynoti
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.70
-
- -- Sewook Park <sewook7.park@samsung.com>  Wed, 22 Feb 2012 10:41:10 +0900
-
-syspopup (0.0.69) unstable; urgency=low
-
-  * Added ims-syspopup info
-  * Git: slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.69
-
- -- Sewook Park <sewook7.park@samsung.com>  Wed, 15 Feb 2012 16:25:22 +0900
-
-syspopup (0.0.68) unstable; urgency=low
-
-  * remove quickpanel dependency
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.68
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Fri, 16 Dec 2011 09:51:11 +0900
-
-syspopup (0.0.67) unstable; urgency=low
-
-  * Updated changelog
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.67
-
- -- Sewook Park <sewook7.park@samsung.com>  Mon, 05 Dec 2011 15:55:09 +0900
-
-syspopup (0.0.66) unstable; urgency=low
-
-  * Fix desktop not to be removed
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.66
-
- -- Sewook Park <sewook7.park@samsung.com>  Mon, 21 Nov 2011 12:51:51 +0900
-
-syspopup (0.0.65) unstable; urgency=low
-
-  * Changed Boilerplate as per the guideline
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.65
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Mon, 07 Nov 2011 18:38:10 +0900
-
-syspopup (0.0.64) unstable; urgency=low
-
-  * Fix syspopup focus concept
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.64
-
- -- Sewook Park <sewook7.park@samsung.com>  Thu, 27 Oct 2011 16:40:49 +0900
-
-syspopup (0.0.63) unstable; urgency=low
-
-  * Change active window angle to root angle
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.63
-
- -- Sewook Park <sewook7.park@samsung.com>  Wed, 19 Oct 2011 19:14:24 +0900
-
-syspopup (0.0.62) unstable; urgency=low
-
-  * Fix syspopup-app layout
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.62 
-
- -- Sewook Park <sewook7.park@samsung.com>  Tue, 11 Oct 2011 11:11:31 +0900
-
-syspopup (0.0.61) unstable; urgency=low
-
-  * add usb-syspopup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.61 
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Wed, 05 Oct 2011 16:02:45 +0900
-
-syspopup (0.0.60) unstable; urgency=low
-
-  * Fix prevent issue
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.60 
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Mon, 05 Sep 2011 13:42:51 +0900
-
-syspopup (0.0.59) unstable; urgency=low
-
-  * Add alert-3g-syspopup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.59
-
- -- Sewook Park <sewook7.park@samsung.com>  Tue, 23 Aug 2011 16:08:24 +0900
-
-syspopup (0.0.58) unstable; urgency=low
-
-  * Apply code cleanup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.58 
-
- -- Sewook Park <sewook7.park@samsung.com>  Mon, 01 Aug 2011 19:59:37 +0900
-
-syspopup (0.0.57) unstable; urgency=low
-
-  * Fix Boilerplate module name
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.57
-
- -- Sewook Park <sewook7.park@samsung.com>  Sat, 16 Jul 2011 13:38:40 +0900
-
-syspopup (0.0.56) unstable; urgency=low
-
-  * Apply Boilerplate
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.56
-
- -- Sewook Park <sewook7.park@samsung.com>  Wed, 13 Jul 2011 17:31:28 +0900
-
-syspopup (0.0.55) unstable; urgency=low
-
-  * Modify bt-syspopup to be unfocused
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.55
-
- -- Sewook Park <sewook7.park@samsung.com>  Fri, 01 Jul 2011 14:37:08 +0900
-
-syspopup (0.0.54) unstable; urgency=low
-
-  * Modify push popup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.54
-
- -- Noha Park <noha.park@samsung.com>  Tue, 17 May 2011 20:53:53 +0900
-
-syspopup (0.0.53) unstable; urgency=low
-
-  * Modify push popup 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.53
-
- -- Noha Park <noha.park@samsung.com>  Tue, 17 May 2011 20:43:19 +0900
-
-syspopup (0.0.52) unstable; urgency=low
-
-  * Modify push popup 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.52
-
- -- Noha Park <noha.park@samsung.com>  Tue, 17 May 2011 20:29:23 +0900
-
-syspopup (0.0.51) unstable; urgency=low
-
-  * Modify push popup 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.51
-
- -- Noha Park <noha.park@samsung.com>  Tue, 17 May 2011 20:02:11 +0900
-
-syspopup (0.0.50) unstable; urgency=low
-
-  * Add push popup 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.50
-
- -- Noha Park <noha.park@samsung.com>  Wed, 11 May 2011 09:55:52 +0900
-
-syspopup (0.0.49) unstable; urgency=low
-
-  * Remove deb. from package name
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.49
-
- -- Noha Park <noha.park@samsung.com>  Tue, 12 Apr 2011 11:47:30 +0900
-
-syspopup (0.0.48) unstable; urgency=low
-
-  * Remove quickpanel insert option
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.48
-
- -- Noha Park <noha.park@samsung.com>  Wed, 16 Mar 2011 19:02:23 +0900
-
-syspopup (0.0.47) unstable; urgency=low
-
-  * Remove quickpanel insert option
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.47
-
- -- Noha Park <noha.park@samsung.com>  Wed, 16 Mar 2011 18:55:50 +0900
-
-syspopup (0.0.46) unstable; urgency=low
-
-  * Call term act callback when the option is hide
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.46
-
- -- Noha Park <noha.park@samsung.com>  Tue, 22 Feb 2011 15:47:35 +0900
-
-syspopup (0.0.45) unstable; urgency=low
-
-  * Image optimization 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.45
-
- -- Noha Park <noha.park@samsung.com>  Mon, 21 Feb 2011 11:37:26 +0900
-
-syspopup (0.0.44) unstable; urgency=low
-
-  * Image optimization 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.44
-
- -- Noha Park <noha.park@samsung.com>  Mon, 21 Feb 2011 11:37:26 +0900
-
-syspopup (0.0.43) unstable; urgency=low
-
-  * Rebuild for quickpanel structure 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.43
-
- -- Noha Park <noha.park@samsung.com>  Fri, 18 Feb 2011 09:13:42 +0900
-
-syspopup (0.0.42) unstable; urgency=low
-
-  * Move desktop file destination
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.42
-
- -- Noha Park <noha.park@samsung.com>  Mon, 14 Feb 2011 17:03:56 +0900
-
-syspopup (0.0.41) unstable; urgency=low
-
-  * Add NFC syspopup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.41
-
- -- Noha Park <noha.park@samsung.com>  Thu, 27 Jan 2011 14:20:40 +0900
-
-syspopup (0.0.40) unstable; urgency=low
-
-  * Add extern C to syspopup_caller header 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.40
-
- -- Noha Park <noha.park@samsung.com>  Thu, 27 Jan 2011 10:35:47 +0900
-
-syspopup (0.0.39) unstable; urgency=low
-
-  * Add extern C to syspopup_caller header 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.39
-
- -- Noha Park <noha.park@samsung.com>  Thu, 27 Jan 2011 10:30:18 +0900
-
-syspopup (0.0.38) unstable; urgency=low
-   
-  * Modify wifi qs timeout 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.38
-
- -- Noha Park <noha.park@samsung.com>  Wed, 12 Jan 2011 16:45:21 +0900
-
-syspopup (0.0.37) unstable; urgency=low
-
-  * Modify syspopup app
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.37
-
- -- Noha Park <noha.park@samsung.com>  Wed, 05 Jan 2011 08:59:54 +0900
-
-syspopup (0.0.36) unstable; urgency=low
-
-  * Modify bt syspopup name
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.36
-
- -- Noha Park <noha.park@samsung.com>  Tue, 04 Jan 2011 08:47:34 +0900
-
-syspopup (0.0.35) unstable; urgency=low
-
-  * Modify drm popup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.35
-
- -- Noha Park <noha.park@samsung.com>  Tue, 21 Dec 2010 10:02:26 +0900
-
-syspopup (0.0.34) unstable; urgency=low
-
-  * Add dnet popup
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.34
-
- -- Noha Park <noha.park@samsung.com>  Mon, 20 Dec 2010 17:25:43 +0900
-
-syspopup (0.0.33) unstable; urgency=low
-
-  * Modify ap_con_wifi to wifi-qs
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.33
-
- -- Noha Park <noha.park@samsung.com>  Mon, 20 Dec 2010 17:12:50 +0900
-
-syspopup (0.0.32) unstable; urgency=low
-
-  * Modify ap_con_wifi to wifi-qs
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.32
-
- -- Noha Park <noha.park@samsung.com>  Wed, 15 Dec 2010 16:39:25 +0900
-
-syspopup (0.0.31) unstable; urgency=low
-
-  * Modify ap_con_wifi to wifi-qs
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.31
-
- -- Noha Park <noha.park@samsung.com>  Wed, 15 Dec 2010 14:57:17 +0900
-
-syspopup (0.0.30) unstable; urgency=low
-
-  * Modify wifi-qs to ap_con_wifi
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.30
-
- -- Noha Park <noha.park@samsung.com>  Wed, 15 Dec 2010 11:37:51 +0900
-
-syspopup (0.0.29) unstable; urgency=low
-
-  * Update bash shell script (== to =)
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.29
-
- -- Noha Park <noha.park@samsung.com>  Wed, 15 Dec 2010 09:54:41 +0900
-
-syspopup (0.0.28) unstable; urgency=low
-
-  * Add wifi-qs 
-  * Git: slp-source.sec.samsung.net:slp/pkgs/s/syspopup
-  * Tag: syspopup_0.0.28
-
- -- Noha Park <noha.park@samsung.com>  Mon, 13 Dec 2010 14:53:03 +0900
-
-syspopup (0.0.27) unstable; urgency=low
-
-  * Modify Sample code (syspopup-app)
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.27
-
- -- Noha Park <noha.park@samsung.com>  Thu, 02 Dec 2010 10:56:57 +0900
-
-syspopup (0.0.26) unstable; urgency=low
-
-  * Modify power off popup
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.26
-
- -- Noha Park <noha.park@samsung.com>  Fri, 26 Nov 2010 21:41:14 +0900
-
-syspopup (0.0.25) unstable; urgency=low
-
-  * Modify default rotation angle
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.25
-
- -- Noha Park <noha.park@samsung.com>  Mon, 22 Nov 2010 20:33:07 +0900
-
-syspopup (0.0.24) unstable; urgency=low
-
-  * Modified desktop file
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.24
-
- -- Noha Park <noha.park@samsung.com>  Mon, 22 Nov 2010 15:59:26 +0900
-
-syspopup (0.0.23) unstable; urgency=low
-
-  * Modified desktop file
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.23
-
- -- Noha Park <noha.park@samsung.com>  Mon, 22 Nov 2010 13:57:09 +0900
-
-syspopup (0.0.22) unstable; urgency=low
-
-  * Code regeneration 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.22
-
- -- Noha Park <noha.park@samsung.com>  Mon, 15 Nov 2010 18:14:36 +0900
-
-syspopup (0.0.21) unstable; urgency=low
-
-  * Modify rotation cb in syspopup-app 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.21
-
- -- Noha Park <noha.park@samsung.com>  Fri, 12 Nov 2010 21:49:34 +0900
-
-syspopup (0.0.20) unstable; urgency=low
-
-  * Modify rotation cb in syspopup-app 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.20
-
- -- Noha Park <noha.park@samsung.com>  Fri, 12 Nov 2010 14:17:49 +0900
-
-syspopup (0.0.19) unstable; urgency=low
-
-  * Modify DB create procedure(updated)
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.19
-
- -- Noha Park <noha.park@samsung.com>  Thu, 11 Nov 2010 11:44:26 +0900
-
-syspopup (0.0.18) unstable; urgency=low
-
-  * Modify DB create procedure(updated)
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.18
-
- -- Noha Park <noha.park@samsung.com>  Thu, 11 Nov 2010 09:37:41 +0900
-
-syspopup (0.0.17) unstable; urgency=low
-
-  * Modify DB create procedure(updated)
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.17
-
- -- Noha Park <noha.park@samsung.com>  Wed, 10 Nov 2010 15:23:36 +0900
-
-syspopup (0.0.16) unstable; urgency=low
-
-  * Modify DB create procedure(updated)
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.16
-
- -- Noha Park <noha.park@samsung.com>  Wed, 10 Nov 2010 14:32:11 +0900
-
-syspopup (0.0.15) unstable; urgency=low
-
-  * Modify DB create procedure
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.15
-
- -- Noha Park <noha.park@samsung.com>  Wed, 10 Nov 2010 11:31:47 +0900
-
-syspopup (0.0.14) unstable; urgency=low
-
-  * Modify Syspopup API name
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.14
-
- -- Noha Park <noha.park@samsung.com>  Tue, 09 Nov 2010 10:18:47 +0900
-
-syspopup (0.0.13) unstable; urgency=low
-
-  * Modify Syspopup create procedure
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.13
-
- -- Noha Park <noha.park@samsung.com>  Mon, 08 Nov 2010 12:18:06 +0900
-
-syspopup (0.0.12) unstable; urgency=low
-
-  * Modify Syspopup create procedure
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.12
-
- -- Noha Park <noha.park@samsung.com>  Mon, 08 Nov 2010 11:16:33 +0900
-
-syspopup (0.0.11) unstable; urgency=low
-
-  * Modify Syspopup Caller
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.11
-
- -- Noha Park <noha.park@samsung.com>  Thu, 04 Nov 2010 11:54:31 +0900
-
-syspopup (0.0.10) unstable; urgency=low
-
-  * Modify e17
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.10
-
- -- Noha Park <noha.park@samsung.com>  Thu, 04 Nov 2010 10:18:19 +0900
-
-syspopup (0.0.9) unstable; urgency=low
-
-  * add endkey handler 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.9
-
- -- Noha Park <noha.park@samsung.com>  Tue, 02 Nov 2010 16:07:30 +0900
-
-syspopup (0.0.8) unstable; urgency=low
-
-  * modify syspopup parent window 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.8 
-
- -- Noha Park <noha.park@samsung.com>  Fri, 15 Oct 2010 11:01:33 +0900
-
-syspopup (0.0.7) unstable; urgency=low
-
-  * modify quickpanel insert procedure 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.7 
-
- -- Noha Park <noha.park@samsung.com>  Thu, 14 Oct 2010 19:14:33 +0900
-
-syspopup (0.0.6) unstable; urgency=low
-
-  * modify user callback function 
-  * Git: 165.213.180.234:/git/slp/pkgs/syspopup
-  * Tag: syspopup_0.0.6 
-
- -- Kunhoon Baik <knhoon.baik@samsung.com>  Thu, 14 Oct 2010 17:48:52 +0900
-
-syspopup (0.0.5) unstable; urgency=low
-
-  * build fail fix
-
- -- Kunhoon Baik <knhoon.baik@samsung.com>  Wed, 13 Oct 2010 17:49:08 +0900
-
-syspopup (0.0.3) unstable; urgency=low
-
-  * add doxygen and change maintainer
-
- -- Kunhoon Baik <knhoon.baik@samsung.com>  Wed, 13 Oct 2010 16:35:43 +0900
-
-syspopup (0.0.2) unstable; urgency=low
-
-  * modify dpkg 
-
- -- Kunhoon Baik <knhoon.baik@samsung.com>  Tue, 12 Oct 2010 13:14:35 +0900
-
-syspopup (0.0.1) unstable; urgency=low
-
-  * initial update
-
- -- Kunhoon Baik <knhoon.baik@samsung.com>  Tue, 27 Jul 2010 15:51:31 +0900
diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644 (file)
index db77e9c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-Source: syspopup
-Section: devel
-Priority: extra
-Maintainer: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
-Build-Depends: debhelper (>= 5), libdbus-glib-1-dev, libsqlite3-dev, libx11-dev, libecore-dev, libbundle-dev, dlog-dev, libslp-utilx-dev, sqlite3, libaul-1-dev, libevas-dev, libappcore-efl-dev, libdbus-glib-1-dev
-Standards-Version: 0.1.0 
-
-Package: syspopup-caller-0
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: syspopup-caller package
-
-Package: syspopup-caller-dev
-Section: libs
-Architecture: any
-Depends: syspopup-caller-0 (= ${Source-Version}), libdbus-glib-1-dev, libsqlite3-dev, libbundle-dev, dlog-dev, libaul-1-dev
-Description: syspopup-caller dev package
-
-Package: syspopup-caller-dbg
-Section: debug
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, syspopup-caller-0 (= ${Source-Version})
-Description: syspopup-caller dbg package 
-
-Package: syspopup-0
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, sqlite3
-Description: syspopup package
-
-Package: syspopup-dev
-Section: libs
-Architecture: any
-Depends: syspopup-0 (= ${Source-Version}), libdbus-glib-1-dev, libsqlite3-dev, libbundle-dev, dlog-dev, sqlite3, libslp-utilx-dev, libx11-dev, libecore-dev, libevas-dev, libappcore-efl-dev
-Description: syspopup dev package
-
-Package: syspopup-dbg
-Section: debug
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, syspopup-0 (= ${Source-Version})
-Description: syspopup dbg package 
-
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644 (file)
index ca882bb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/debian/rules b/debian/rules
deleted file mode 100755 (executable)
index a65f12b..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
-
-CFLAGS ?= -Wall -g
-LDFLAGS ?= 
-PREFIX ?= /usr
-DATADIR ?= /opt
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
-
-CFLAGS += -fvisibility=hidden -fpic
-LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
-
-CMAKE_TMP_DIR = $(CURDIR)/cmake_tmp
-
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       # Add here commands to configure the package.
-       mkdir -p $(CMAKE_TMP_DIR);
-       cd $(CMAKE_TMP_DIR); CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" cmake .. -DCMAKE_INSTALL_PREFIX=$(PREFIX)
-
-       touch configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp 
-       dh_testdir
-
-       # Add here commands to compile the package.
-       cd $(CMAKE_TMP_DIR) && $(MAKE) all test
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               cat $$f > $${f%.in}; \
-               sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
-               sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
-       done
-
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp configure-stamp
-
-       # Add here commands to clean up after the build process.
-       rm -rf $(CMAKE_TMP_DIR)
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               rm -f $${f%.in}; \
-       done
-
-       rm -rf include/pg-doxy/doxygen_output
-
-       rm -rf TC/results
-       rm -rf TC/tet_tmp_dir
-       cd TC/unit/ && make clean && cd ../../
-
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k 
-       dh_installdirs
-
-       # Add here commands to install the package into debian/wavplayer.
-       cd $(CMAKE_TMP_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-       mkdir -p $(CURDIR)/debian/tmp/opt/dbspace
-#      sqlite3 $(CURDIR)/debian/tmp/opt/dbspace/.syspopup.db < $(CURDIR)/data/syspopup_db.sql
-       touch $(CURDIR)/debian/tmp/usr/share/popup_noti_term
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs 
-       dh_installdocs
-       dh_installexamples
-       dh_install --sourcedir=debian/tmp
-#      dh_installmenu
-#      dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-       dh_link
-       dh_strip --dbg-package=syspopup-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-       dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/debian/syspopup-0.install.in b/debian/syspopup-0.install.in
deleted file mode 100644 (file)
index 8f8964b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-@PREFIX@/lib/libsyspopup.*\r
-@PREFIX@/bin/*\r
-usr/share/popup_noti_term\r
-@PREFIX@/share/*\r
diff --git a/debian/syspopup-0.postinst b/debian/syspopup-0.postinst
deleted file mode 100644 (file)
index ccece2d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-mkdir -p /opt/dbspace/
-sqlite3 /opt/dbspace/.syspopup.db < /usr/share/syspopup/syspopup_db.sql
-
-if [ ${USER} = "root" ]
-then
-       chown root:root /usr/lib/libsyspopup.so.0.1.0
-       chown root:5000 /opt/dbspace/.syspopup.db
-       chown root:5000 /opt/dbspace/.syspopup.db-journal
-fi
-
-chmod 644 /usr/lib/libsyspopup.so.0.1.0
-chmod 664 /opt/dbspace/.syspopup.db
-chmod 664 /opt/dbspace/.syspopup.db-journal
-
-
-
diff --git a/debian/syspopup-caller-0.install.in b/debian/syspopup-caller-0.install.in
deleted file mode 100644 (file)
index 9add798..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@PREFIX@/lib/libsyspopup_caller.*\r
diff --git a/debian/syspopup-caller-0.postinst b/debian/syspopup-caller-0.postinst
deleted file mode 100644 (file)
index 91f47b5..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-if [ ${USER} = "root" ]
-then
-       chown root:root /usr/lib/libsyspopup_caller.so.0.1.0
-fi
-
-chmod 644 /usr/lib/libsyspopup_caller.so.0.1.0
-
diff --git a/debian/syspopup-caller-dev.install.in b/debian/syspopup-caller-dev.install.in
deleted file mode 100644 (file)
index 107006c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@PREFIX@/include/syspopup_caller.h
-@PREFIX@/lib/pkgconfig/syspopup-caller.pc
diff --git a/debian/syspopup-dev.install.in b/debian/syspopup-dev.install.in
deleted file mode 100644 (file)
index f70f39e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@PREFIX@/include/syspopup.h
-@PREFIX@/include/SLP_SYSPOPUP_PG.h
-@PREFIX@/lib/pkgconfig/syspopup.pc
diff --git a/image/README b/image/README
deleted file mode 100644 (file)
index a8f7df0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-PG
diff --git a/image/syspopup_diag.png b/image/syspopup_diag.png
new file mode 100755 (executable)
index 0000000..5108343
Binary files /dev/null and b/image/syspopup_diag.png differ
index fc03885..faa7b0e 100755 (executable)
 
  *
  * @ingroup   SLP_PG
- * @defgroup   SYSPOPUP Library for System Popup 
+ * @defgroup   SYSPOPUP System Popup
 
 @par SYSPOPUP Programming Guide
 
 <h1 class="pg"> Introduction</h1>
-<h2 class="pg"> Purpose of this document</h2>
+SYSPOPPUP is designed to create popups for system events like low battery, low memory, incoming call etc. Sys-popup (System Popup) Library provides API's for creating system popup applications and launching/destroying the system popup's.
+<h1 class="pg"> Scope</h1>
 The purpose of this document is to describe how applications can use System Popup Library APIs.\n
 This document gives only programming guidelines to system popup application engineers.
-
-<h2 class="pg"> Scope</h2>
-The scope of this document is limited to Samsung platform System Popup API usage.
-
-<h1 class="pg"> Architecture</h1>
-<h2 class="pg"> Architecture overview</h2>
-
-<h2 class="pg"> SLP Features</h2>
-
-<h1 class="pg"> SYSPOPUP API descriptions</h1>
-<b> SEE API manual </b>
-
-<h1 class="pg"> SYSPOPUP features with sample code</h1>
-<h2 class="pg"> ... </h2>
-
-@code
-@endcode
-
-@code
-*/
-
-/**
+The scope of this document is limited to System Popup API usage.
+
+<h1 class="pg"> Syspopup Features</h1>
+Syspopup exposes two kinds of API's.
+1. Create system popup application.\n
+2. Launch System popup application.
+
+<h1 class="pg"> Syspopup Architecture</h1>
+\image html syspopup_diag.png "Picture 1. Syspopup Process View"
+\image rtf syspopup_diag.png "Picture 1. Syspopup Process View"
+
+Whenever system daemon receives system event for which popup is to be created, it calls syspopup launch API with the required popup name (lowbatt, lowmem etc). Syspopup library finds the appropriate syspopup application to be launched based on the popup name. It then calls the AUL API for launching the syspoup application.
+The syspopup application calls syspopup's create API for creating the systempopup. Picture 1 above shows the process view of syspopup.
+
+<h1 class="pg">API list and description</h1>
+<ul>
+        <li>syspopup_create() : Creates System Popup</li>
+        <li>syspopup_reset() : Reset the created system popup properties</li>
+        <li>syspopup_has_popup() : Checks system popup is created and is running</li>
+       <li>syspopup_launch() : Launches system popup application</li>
+       <li>syspopup_destroy_all() : Destroy all the system popups</li>
+</ul>
 @}
 */
 
index ecf5ae2..e95bc18 100755 (executable)
@@ -33,8 +33,9 @@
 
 #define MAX_LOCAL_BUFSZ 128
 
-#define _E(fmt, arg...) LOGE("[%s,%d] "fmt , __FUNCTION__, __LINE__, ##arg)
-#define _D(fmt, arg...) LOGD("[%s,%d] "fmt , __FUNCTION__, __LINE__, ##arg)
+#define _E(fmt, arg...) LOGE(fmt,##arg)
+#define _D(fmt, arg...) LOGD(fmt,##arg)
+#define _I(fmt, arg...) LOGI(fmt,##arg)
 
 #define SYSPOPUP_DBUS_PATH "/syspopup/dbus_handler"
 #define SYSPOPUP_DBUS_SIGNAL_INTERFACE "org.tizen.syspopup.signal"
index db742ab..79f8106 100755 (executable)
@@ -37,8 +37,9 @@
  */
 
 /**
- * @close
- * @ingroup APPLICATION_FRAMEWORK
+ * @addtogroup APPLICATION_FRAMEWORK
+ * @{
+ *
  * @defgroup syspopup System Popup Library 
  * @{
  */
@@ -120,6 +121,19 @@ int syspopup_reset(bundle *b);
  */
 int syspopup_has_popup(bundle *b);
 
+/**
+ * @brief       This API reset timeout value of system popup.
+ *
+ *             This API reset timeout value of system popup.
+ *
+ * @param[in]   b      bundle received by app_reset handler (included system popup name)
+ * @param[in]   time   timeout time (sec)
+ * @return     0       if success, negative value(<0) if fail
+ * @retval     0       success
+ * @retval     -1      generic error
+ */
+int syspopup_reset_timeout(bundle *b, unsigned int time);
+
 /** @} */
 
 #endif
index c534707..e00d5d2 100755 (executable)
@@ -25,7 +25,6 @@
 #define __SYSPOPUP_CALLER_H__
 
 #include <bundle.h>
-#include <aul.h>
 
 #ifdef __cplusplus
 extern "C" {
index 463a60a..6e943ec 100755 (executable)
@@ -29,7 +29,6 @@
 #include "syspopup_db.h"
 
 #define SYSPOPUP_DEFAULT_TIMEOUT 20    /* sec */
-#define SYSPOPUP_TERM_NOTI_PATH  "/usr/share/popup_noti_term"
 
 struct _syspopup {
        int id;
index f57e0dd..2a518d7 100755 (executable)
@@ -53,7 +53,6 @@ struct _syspopup_info_t {
 
 typedef struct _syspopup_info_t syspopup_info_t;
 
-int _syspopup_info_add(syspopup_info_t *pinfo);
 syspopup_info_t *_syspopup_info_get(const char *popup_name);
 void _syspopup_info_free(syspopup_info_t *pinfo);
 
diff --git a/org.tizen.syspopup-app.manifest b/org.tizen.syspopup-app.manifest
new file mode 100644 (file)
index 0000000..71faac1
--- /dev/null
@@ -0,0 +1,12 @@
+<manifest>
+        <define>
+                <domain name="org.tizen.syspopup-app" />
+        </define>
+        <request>
+                <domain name="org.tizen.syspopup-app" />
+        </request>
+        <assign>
+                <filesystem path="/usr/bin/syspopup-app" exec_label="org.tizen.syspopup-app" />
+        </assign>
+</manifest>
+
diff --git a/org.tizen.syspopup-app.rule b/org.tizen.syspopup-app.rule
new file mode 100755 (executable)
index 0000000..3c71e26
--- /dev/null
@@ -0,0 +1,17 @@
+#default rule
+org.tizen.syspopup-app system::homedir rwxat
+org.tizen.syspopup-app system::vconf rwxat
+org.tizen.syspopup-app system::media rwxat
+org.tizen.syspopup-app system::share rwxat
+$1 pulseaudio rwxat
+e17  $1 w
+$1 sys-assert::core rwxat
+
+#app rule
+org.tizen.syspopup-app system::app_logging w
+org.tizen.syspopup-app system::use_internet r
+org.tizen.syspopup-app xorg rw
+org.tizen.syspopup-app isf rx
+org.tizen.syspopup-app ail::db rw
+org.tizen.syspopup-app syspopup::db rw
+org.tizen.syspopup-app dbus w
index 669049c..e4e0a64 100755 (executable)
@@ -1,10 +1,10 @@
 
 Name:       syspopup
 Summary:    syspopup package
-Version:    0.0.80
+Version:    0.0.134
 Release:    1
 Group:      System/Libraries
-License:    Apache License, Version 2.0
+License:    Apache-2.0
 Source0:    syspopup-%{version}.tar.gz
 Requires(post): /sbin/ldconfig
 Requires(post): /bin/touch
@@ -19,12 +19,11 @@ BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(aul)
 BuildRequires:  pkgconfig(evas)
 BuildRequires:  pkgconfig(appcore-efl)
-
+BuildRequires:  pkgconfig(capi-appfw-application)
 
 %description
 syspopup package for popup
 
-
 %package devel
 Summary:    syspopup development package
 Group:      Development/Libraries
@@ -51,14 +50,33 @@ Requires:   %{name} = %{version}-%{release}
 %description caller-devel
 syspopup-caller development package for popup
 
+%package app
+Summary:    org.tizen.syspopup-app test app
+Group:      TO_BE/FILLED_IN
+Requires:   %{name} = %{version}-%{release}
+
+%description app
+org.tizen.syspopup-app test app package
 
 %prep
 %setup -q -n %{name}-%{version}
 
-CFLAGS=${_cflags} cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DEXTRA_CFLAGS=-fPIC
-
 %build
-
+%if "%{?tizen_profile_name}" == "wearable"
+export CFLAGS="$CFLAGS â€“D_WEARABLE"
+%else
+export CFLAGS="$CFLAGS -D_MOBILE"
+%endif
+
+%if 0%{?sec_build_binary_debug_enable}
+export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
+export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
+%endif
+export CFLAGS="$CFLAGS -Wall -Werror -Wno-unused-function"
+CFLAGS=${_cflags} cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DEXTRA_CFLAGS=-fPIC \
+       -D_WEARABLE:BOOL=${_WEARABLE} -D_MOBILE:BOOL=${_MOBILE} \
+       .
 
 make %{?jobs:-j%jobs}
 
@@ -67,39 +85,30 @@ rm -rf %{buildroot}
 %make_install
 
 mkdir -p %{buildroot}/opt/dbspace
-#sqlite3 $(CURDIR)/debian/tmp/opt/dbspace/.syspopup.db < $(CURDIR)/data/syspopup_db.sql
-touch %{buildroot}%{_datadir}/popup_noti_term
-
+sqlite3 %{buildroot}/opt/dbspace/.syspopup.db < %{buildroot}/usr/share/syspopup/syspopup_db.sql
+rm -rf %{buildroot}/usr/share/syspopup/syspopup_db.sql
 
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
+cp LICENSE %{buildroot}/usr/share/license/%{name}-caller
 
 %post
 /sbin/ldconfig
 
-mkdir -p /opt/dbspace/
-sqlite3 /opt/dbspace/.syspopup.db < /usr/share/syspopup/syspopup_db.sql
-
 %postun -p /sbin/ldconfig
 
-
-
-
 %post caller -p /sbin/ldconfig
 
 %postun caller -p /sbin/ldconfig
 
-
-
-
 %files
+%manifest syspopup.manifest
 %defattr(-,root,root,-)
-%{_datadir}/icons/default/small/org.tizen.syspopup-app.png
-%{_bindir}/sp_test
-%{_bindir}/syspopup-app
 %{_libdir}/libsyspopup.so.0.1.0
-/usr/share/syspopup/syspopup_db.sql
-/usr/share/packages/org.tizen.syspopup-app.xml
-%{_datadir}/popup_noti_term
-
+%attr(644,root,app) /opt/dbspace/.syspopup.db
+%attr(644,root,app) /opt/dbspace/.syspopup.db-journal
+%{_bindir}/sp_test
+/usr/share/license/%{name}
 
 %files devel
 %defattr(-,root,root,-)
@@ -109,8 +118,10 @@ sqlite3 /opt/dbspace/.syspopup.db < /usr/share/syspopup/syspopup_db.sql
 %{_libdir}/pkgconfig/syspopup.pc
 
 %files caller
+%manifest syspopup-caller.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libsyspopup_caller.so.0.1.0
+/usr/share/license/%{name}-caller
 
 %files caller-devel
 %defattr(-,root,root,-)
@@ -118,3 +129,123 @@ sqlite3 /opt/dbspace/.syspopup.db < /usr/share/syspopup/syspopup_db.sql
 %{_includedir}/syspopup_caller.h
 %{_libdir}/pkgconfig/syspopup-caller.pc
 
+%files app
+%manifest org.tizen.syspopup-app.manifest
+%defattr(-,root,root,-)
+%{_datadir}/icons/default/small/org.tizen.syspopup-app.png
+%{_bindir}/syspopup-app
+/usr/share/packages/org.tizen.syspopup-app.xml
+/etc/smack/accesses2.d/org.tizen.syspopup-app.rule
+
+%changelog
+* Fri Aug 1 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Change focus info of safetysyspopup
+- Requested by nannan.wu , parkjg
+
+* Thu May 22 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Change timeout info of wc syspopup
+- Requested by sunil85.kim
+
+* Thu May 22 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Change focus info of mode syspopup
+- Requested by setting
+
+* Mon May 19 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add root detection popup
+- Requested by daehoon ko of security r&d group
+
+* Mon May 12 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add setting noti popup for blocking mode
+
+* Thu May 8 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Remove code to grab back key for volume popup
+
+* Mon Apr 28 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add wc syspopup requested by ms0123.kim of telephony team
+
+* Mon Mar 31 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Enable telephony syspopup following telephony build feature
+
+* Tue Feb 18 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Remove unused system popup sample app
+- Remove unused debian folder
+
+* Wed Jan 15 2014 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add fota syspopup
+- Requested by seokey.jeong
+
+* Tue Dec 10 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add fota-noti popup
+- Requested by juhaki.park
+
+* Wed Oct 23 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add fus-ode-syspopup
+- Requested by sunbong.ha
+
+* Fri Oct 18 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add keepit screen capture system popup
+- Requested by wc0917.lee
+
+* Thu Oct 10 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add mode system popup
+- Requested by shy81.shin
+
+* Fri Sep 13 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add crash system popup
+- Requested by ty317.kim
+
+* Tue Sep 10 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Remove unused ticker noti system popup
+- Maintained by sungho1.kwak
+- Add Wall, Werror build option
+
+* Fri Jun 21 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Change end key term info for wifi-qs popup
+
+* Wed Jun 5 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add datausage system popup
+- Requested by ty317.kim
+
+* Fri May 17 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add safety volume popup
+- Requested by bw.jang
+
+* Tue Apr 30 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Change focus value to 0 for power-off syspopup
+- Requested by ty317.kim
+
+* Thu Apr 25 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Change prio info for system , power-off syspopup
+- Requested by ty317.kim
+
+* Wed Apr 24 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add system-syspopup 
+- Requested by ty317.kim
+
+* Fri Apr 12 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Remove drm syspopup 
+- Requested by hakjoo.ko
+
+* Tue Apr 2 2013 - Hyugdeuk Kim <hd3.kim@samsung.com>
+- Add syspopup_reset_timeout api
+
+* Thu Mar 28 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add sym extraction syspopup info(telephony-syspopup)
+- Requested by jh48.an
+
+* Mon Mar 25 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add mobileap syspopup
+- Requested by sy39.ju
+
+* Thu Feb 21 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add syspopup app smack rule
+- Change dlog tag
+- Add dlogs for debug
+
+* Wed Nov 21 2012 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Add syspopup info for gcf supl
+
+* Tue Oct 30 2012 - Hyungdeuk Kim <hd3.kim@samsung.com>
+- Fix prevent issues
+- Add syspopup info for hdmi syspopup
+- move CFLAGS location to %build at spec file
index 262bc95..dc76dca 100755 (executable)
@@ -210,10 +210,13 @@ int _syspopup_reset_timeout(syspopup *sp, syspopup_info_t *info)
 
        if (sp->timeout_id != 0)
                g_source_remove(sp->timeout_id);
-       sp->timeout_id = g_timeout_add_seconds(info->timeout, _timeout_handler,
+
+       if(info->timeout > 0) {
+               sp->timeout_id = g_timeout_add_seconds(info->timeout, _timeout_handler,
                                               (void *)sp->id);
-       _D("add timeout - timeout : id=%d,timeout=%d(sec)", sp->id,
-          info->timeout);
+               _D("add timeout - timeout : id=%d,timeout=%d(sec)", sp->id, 
+                       info->timeout);
+       }
 
        return 0;
 }
index 9721b4a..c4f8d0f 100755 (executable)
 static sqlite3 *db = NULL;
 
 /**
- * exec  
- * param[in] db handler
- * param[in] query query
- * return This method returns 0 (SUCCESS) or -1 (FAIL)
- */
-static int __exec(sqlite3 *db, char *query)
-{
-       int rc = 0;
-       char *errmsg = NULL;
-
-       if (db == NULL) {
-               _E("DB handler is null");
-               return -1;
-       }
-       rc = sqlite3_exec(db, query, NULL, 0, &errmsg);
-
-       if (rc != SQLITE_OK) {
-               _D("Query: [%s]", query);
-               _E("SQL error: %s\n", errmsg);
-               sqlite3_free(errmsg);
-               return (-1);
-       }
-
-       return 0;
-}
-
-/**
  * db initialize
  */
 static int __init(void)
@@ -76,22 +49,15 @@ static int __init(void)
        }
 
        rc = sqlite3_open(SYSPOPUP_DB_PATH, &db);
-       if (rc) {
-               _E("Can't open database: %s", sqlite3_errmsg(db));
-               goto err;
-       }
-       /* Enable persist journal mode*/
-       rc = sqlite3_exec(db, "PRAGMA journal_mode = PERSIST", NULL, NULL,
-                         NULL);
-       if (SQLITE_OK != rc) {
-               _D("Fail to change journal mode\n");
-               goto err;
+       if (rc != SQLITE_OK) {
+               _E("Can't open database: %s / %d / %d", sqlite3_errmsg(db),
+                       rc, sqlite3_extended_errcode(db));
+               return -1;
+       } else {
+               _D("db open sucess");
        }
 
        return 0;
-err:
-       sqlite3_close(db);
-       return -1;
 }
 
 static int __fini(void)
@@ -103,106 +69,11 @@ static int __fini(void)
        return 0;
 }
 
-static int __delete_all(const char *tbl_name)
-{
-       char *_sqlbuf;
-       int rc;
-
-       _sqlbuf = sqlite3_mprintf("DELETE FROM %s;", tbl_name);
-       rc = __exec(db, _sqlbuf);
-       sqlite3_free(_sqlbuf);
-
-       return rc;
-}
-
-static int __delete_with_field(const char *tbl_name, const char *f_name,
-                              const char *val)
-{
-       char *_sqlbuf;
-       int rc;
-
-       _sqlbuf = sqlite3_mprintf("DELETE FROM %s WHERE %s = '%s';",
-                                 tbl_name, f_name, val);
-       rc = __exec(db, _sqlbuf);
-       sqlite3_free(_sqlbuf);
-
-       return rc;
-}
-
-static int __count_with_field(const char *tbl_name, const char *f_name,
-                             const char *val)
-{
-       char *_sqlbuf;
-       int rc;
-       char **db_result = NULL;
-       char *db_err = NULL;
-       int nrows = 0;
-       int ncols = 0;
-       int cnt;
-
-       _sqlbuf = sqlite3_mprintf("SELECT COUNT(*) FROM %s WHERE %s = '%s';",
-                                 tbl_name, f_name, val);
-
-       rc = sqlite3_get_table(db, _sqlbuf, &db_result, &nrows, &ncols,
-                              &db_err);
-       if (rc == -1 || nrows == 0) {
-               _E("get count = 0 or fail");
-               sqlite3_free_table(db_result);
-               sqlite3_free(_sqlbuf);
-               return 0;
-       } else {
-               cnt = atoi(db_result[1]);
-               sqlite3_free_table(db_result);
-               sqlite3_free(_sqlbuf);
-       }
-
-       return cnt;
-}
-
-int _syspopup_info_add(syspopup_info_t *pinfo)
-{
-       int rc = -1;
-       int cnt = 0;
-       char *_sqlbuf;
-
-       if (pinfo->name == NULL) {
-               _E("Name is null\n");
-               return -1;
-       }
-
-       if (__init() < 0)
-               return -1;
-
-       cnt = __count_with_field(SP_INFO_TBL, SP_INFO_TBL_F_NAME, pinfo->name);
-
-       if (cnt == 0) {
-               _sqlbuf = sqlite3_mprintf("INSERT INTO %s "
-                                         "(name,prio,focus,timeout,term_act,endkey_act,pkgname) values "
-                                         "(\"%s\", %d, %d, %d, \"%s\");",
-                                         SP_INFO_TBL,
-                                         pinfo->name, pinfo->prio,
-                                         pinfo->focus, pinfo->timeout,
-                                         pinfo->term_act, pinfo->endkey_act,
-                                         pinfo->pkgname);
-               rc = __exec(db, _sqlbuf);
-               sqlite3_free(_sqlbuf);
-       } else {
-               _E("already exist - %s", pinfo->name);
-               rc = -1;
-       }
-
-       if (rc < 0)
-               _E("Fail to insert\n");
-
-       __fini();
-       return rc;
-}
-
 syspopup_info_t *_syspopup_info_get(const char *popup_name)
 {
        int rc = 0;
-       char *_sqlbuf;
-       sqlite3_stmt *stmt;
+       char sqlbuf[256] = {0,};
+       sqlite3_stmt *stmt = NULL;
        syspopup_info_t *pinfo = NULL;
 
        if (popup_name == NULL) {
@@ -213,18 +84,26 @@ syspopup_info_t *_syspopup_info_get(const char *popup_name)
        if (__init() < 0)
                return NULL;
 
-       _sqlbuf = sqlite3_mprintf("SELECT name,prio,focus,timeout,term_act,endkey_act,pkgname "
-                                 "FROM %s WHERE %s='%s';",
-                                 SP_INFO_TBL, SP_INFO_TBL_F_NAME, popup_name);
+       snprintf(sqlbuf, 256,
+               "SELECT name,prio,focus,timeout,term_act,endkey_act,pkgname FROM %s WHERE %s = ?;",
+               SP_INFO_TBL, SP_INFO_TBL_F_NAME);
 
-       rc = sqlite3_prepare_v2(db, _sqlbuf, -1, &stmt, NULL);
+       rc = sqlite3_prepare_v2(db, sqlbuf, -1, &stmt, NULL);
        if (rc == SQLITE_OK) {
+               rc =sqlite3_bind_text(stmt, 1, popup_name, strlen(popup_name), SQLITE_STATIC);
+               if(rc != SQLITE_OK) {
+                       _E("popup name bind error(%d) \n", rc);
+                       sqlite3_finalize(stmt);
+                       goto out;
+               }
+
                rc = sqlite3_step(stmt);
                if (rc == SQLITE_ROW) {
                        pinfo = (syspopup_info_t *) malloc(sizeof(syspopup_info_t));
                        if (pinfo == NULL) {
-                               __fini();
-                               return NULL;
+                               _E("malloc error");
+                               sqlite3_finalize(stmt);
+                               goto out;
                        }
                        pinfo->name = strdup((char *) sqlite3_column_text(stmt, 0));
                        pinfo->prio = sqlite3_column_int(stmt, 1);
@@ -240,7 +119,11 @@ syspopup_info_t *_syspopup_info_get(const char *popup_name)
                sqlite3_finalize(stmt);
        }
 
-       sqlite3_free(_sqlbuf);
+       if(pinfo == NULL) {
+               _E("error(%d) in prepare", rc);
+       }
+
+out:
        __fini();
        return pinfo;
 }
index 821aeaa..09370e4 100644 (file)
@@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/syspopup)
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(syspopup_app_pkgs REQUIRED appcore-efl)
+pkg_check_modules(syspopup_app_pkgs REQUIRED appcore-efl capi-appfw-application)
 
 FOREACH(flag ${syspopup_app_pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
@@ -49,7 +49,7 @@ ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
 
 ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} syspopup ${syspopup_app_pkgs_LDFLAGS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} "-pie" syspopup ${syspopup_app_pkgs_LDFLAGS})
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
 
@@ -59,6 +59,9 @@ CONFIGURE_FILE(${PKGNAME}.xml.in ${CMAKE_BINARY_DIR}/${PKGNAME}.xml)
 INSTALL(FILES ${CMAKE_BINARY_DIR}/${PKGNAME}.xml DESTINATION /usr/share/packages)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/syspopup-app/${PKGNAME}.png DESTINATION share/icons/default/small)
 
+# install smack rule
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.rule DESTINATION /etc/smack/accesses2.d)
+
 # i18n
 #ADD_SUBDIRECTORY(po)
 
index f2fe316..11ea84a 100755 (executable)
  *
  */
 
-
-#include <stdio.h>
-#include <appcore-efl.h>
-#include <Ecore_X.h>
-
+#include <tizen.h>
+#include <dlog.h>
 #include "syspopup.h"
 #include "syspopup-app.h"
 
-/*#include <quickpanel.h> */
-#include <time.h>
-/*
-struct quickpanel {
-       int type;
-       int priv_id; 
-       char *title;
-       char *content;
-       time_t rtime;
-       bundle *args; 
-       bundle *args_group;
-       int group_id;
-};
-*/
+typedef struct appdata {
+       Evas_Object *win;
+       Evas_Object *conform;
+       Evas_Object *label;
+       Evas_Object *popup;
+       bundle *b;
+       char title[TITLE_BUF_LEN];
+       char content[CONTENT_BUF_LEN];
+} appdata_s;
 
 int myterm(bundle *b, void *data)
 {
-       /*
-       char b_str[QP_BUF_LEN];
-       int ret = 0;
-       const char* val;
-
-       struct appdata *ad = data;
-       struct quickpanel* qp;
-
-       val = bundle_get_val(b,"_INTERNAL_SYSPOPUP_NAME_");
-       printf("[SYSTEM POPUP] Popup Name : %s\n", val);
-
-       qp = malloc(sizeof(struct quickpanel));
-       memset(qp,0,sizeof(struct quickpanel));
-
-       //qp->type = QP_TYPE_SYSPOPUP;
-       qp->type = quickpanel_get_type_id("org.tizen.syspopup-app", NULL, 0);
-       qp->priv_id = QP_PRIVID;
-       qp->title = ad->title;
-       qp->content = ad->content;
-       qp->args = b;
-       qp->group_id = qp->priv_id;
-
-       ret = quickpanel_insert(qp);
-       if (ret < 0)
-               printf("[SYSTEM POPUP] Error!! Cannot insert to quickpanel!\n");
-
-       free(qp);
-       */
+       dlog_print(DLOG_DEBUG, LOG_TAG, "myterm called");
        return 0;
 }
 
 int mytimeout(bundle *b, void* data)
 {
-       /*
-       char b_str[QP_BUF_LEN];
-       int ret = 0;
-       const char* val;
-
-       struct appdata *ad = data;
-       struct quickpanel* qp;
-
-       val = bundle_get_val(b,"_INTERNAL_SYSPOPUP_NAME_");
-       printf("[SYSTEM POPUP] Popup Name : %s\n", val);
-
-       qp = malloc(sizeof(struct quickpanel));
-       memset(qp,0,sizeof(struct quickpanel));
-
-       //qp->type = QP_TYPE_SYSPOPUP;
-       qp->type = quickpanel_get_type_id("org.tizen.syspopup-app", NULL, 0);
-       qp->priv_id = QP_PRIVID;
-       qp->title = ad->title;
-       qp->content = ad->content;
-       qp->args = b;
-       qp->group_id = qp->priv_id;
-
-       ret = quickpanel_insert(qp);
-       if (ret < 0)
-               printf("[SYSTEM POPUP] Error!! Cannot insert to quickpanel!\n");
-
-       free(qp);
-       */
+       dlog_print(DLOG_DEBUG, LOG_TAG, "mytimeout called");
        return 0;
 }
 
@@ -114,216 +52,212 @@ syspopup_handler handler = {
        .def_timeout_fn = mytimeout
 };
 
-static void __win_del(void *data, Evas_Object * obj, void *event)
+static bool _app_control_extra_data_cb(app_control_h app_control, const char *key, void *user_data)
 {
-       elm_exit();
-}
+       int ret;
+       char *value;
+       appdata_s *ad = user_data;
+
+       ret = app_control_get_extra_data(app_control, key, &value);
+       if (ret != APP_CONTROL_ERROR_NONE)
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "app_control_get_extra_data() is failed. err = %d", ret);
+       }
 
-/*
-static int rotate(enum appcore_rm m, void *data)
-{
-       struct appdata *ad = data;
-       int r;
-
-       if (ad == NULL || ad->win == NULL)
-               return 0;
-
-       switch(m) {
-       case APPCORE_RM_PORTRAIT_NORMAL:
-               r = 0;
-               break;
-       case APPCORE_RM_PORTRAIT_REVERSE:
-               r = 180;
-               break;
-       case APPCORE_RM_LANDSCAPE_NORMAL:
-               r = 270;
-               break;
-       case APPCORE_RM_LANDSCAPE_REVERSE:
-               r = 90;
-               break;
-       default:
-               r = -1;
-               break;
+       if (bundle_add(ad->b, key, value) != BUNDLE_ERROR_NONE) {
+               free(value);
+               return APP_CONTROL_ERROR_INVALID_PARAMETER;
        }
 
-       if (r >= 0)
-               elm_win_rotation_with_resize_set(ad->win, r);
+       free(value);
 
-       return 0;
+       return true;
 }
-*/
 
-static Evas_Object *__create_win(const char *name)
+static void win_delete_request_cb(void *data , Evas_Object *obj , void *event_info)
 {
-       Evas_Object *eo;
-       int w;
-       int h;
-
-       eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC);
-       if (eo) {
-               elm_win_title_set(eo, name);
-               elm_win_borderless_set(eo, EINA_TRUE);
-
-               elm_win_alpha_set(eo, EINA_TRUE);
-
-               evas_object_smart_callback_add(eo, "delete,request",
-                                              __win_del, NULL);
-               ecore_x_window_size_get(ecore_x_window_root_first_get(),
-                                       &w, &h);
-               evas_object_resize(eo, w, h);
-       }
-
-       return eo;
+       ui_app_exit();
 }
 
-static int __app_create(void *data)
+static void win_back_cb(void *data, Evas_Object *obj, void *event_info)
 {
-       struct appdata *ad = data;
-       Evas_Object *win;
-       int r;
-
-       /* create window */
-       win = __create_win(PACKAGE);
-       if (win == NULL)
-               return -1;
-       ad->win = win;
-       /* evas_object_show(win);*/
-
-       /* init internationalization */
-       r = appcore_set_i18n(PACKAGE, LOCALEDIR);
-       if (r)
-               return -1;
+       appdata_s *ad = data;
+       /*  Let window go to hide state. */
+       elm_win_lower(ad->win);
+}
 
-       /* appcore_set_rotation_cb(rotate, ad);*/
+static void response_cb(void *data, Evas_Object * obj, void *event_info)
+{
+       dlog_print(DLOG_DEBUG, LOG_TAG, "response_cb called");
 
-       appcore_measure_start();
-       return 0;
+       if ((int)event_info != 5)
+               evas_object_del(obj);
+       elm_exit();
 }
 
-static int __app_terminate(void *data)
+static void block_clicked_cb(void *data, Evas_Object *obj, void *event_info)
 {
-       struct appdata *ad = data;
+       dlog_print(DLOG_DEBUG, LOG_TAG, "block_clicked_cb called");
+       evas_object_del(obj);
+}
 
-       printf("[SYSPOPUP] %s, %d\n", __func__, __LINE__);
+static void create_base_gui(appdata_s *ad) {
 
-       if (ad->win)
-               evas_object_del(ad->win);
+       int w;
+       int h;
 
-       return 0;
-}
+       ad->win = elm_win_add(NULL, PACKAGE, ELM_WIN_DIALOG_BASIC);
+       if (ad->win) {
+               elm_win_title_set(ad->win, PACKAGE);
+               elm_win_borderless_set(ad->win, EINA_TRUE);
+               elm_win_alpha_set(ad->win, EINA_TRUE);
+               ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
+               evas_object_resize(ad->win, w, h);
+       }
 
-static int __app_pause(void *data)
-{
-       struct appdata *ad = data;
+       elm_win_autodel_set(ad->win, EINA_TRUE);
+       evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
 
-       return 0;
 }
 
-static int __app_resume(void *data)
+static bool app_create(void *data)
 {
-       struct appdata *ad = data;
+       appdata_s *ad = data;
 
-       return 0;
-}
+       create_base_gui(ad);
 
-static void __prt_recvd_bundle(const char *key, const char *value, void *d)
-{
-       printf("recvd - key: %s, value: %s\n", key, value);
+       return true;
 }
 
-static void __response_cb(void *data, Evas_Object * obj, void *event_info)
+static void app_control(app_control_h app_control, void *data)
 {
-       if ((int)event_info != 5)
-               evas_object_del(obj);
-       elm_exit();
-}
+       /*  Handle the launch request. */
+       appdata_s *ad = data;
 
-static void _block_clicked_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       evas_object_del(obj);
-}
-
-static int __app_reset(bundle *b, void *data)
-{
-       struct appdata *ad = data;
        Evas_Object *popup;
        const char *val;
        int ret = 0;
 
-       ad->b = bundle_dup(b);
+       if(ad->b == NULL)
+               ad->b = bundle_create();
 
-       bundle_iterate(b, __prt_recvd_bundle, NULL);
+       ret = app_control_foreach_extra_data(app_control, _app_control_extra_data_cb, data);
+       if (ret != APP_CONTROL_ERROR_NONE)
+               dlog_print(DLOG_ERROR, LOG_TAG, "app_control_foreach_extra_data() is failed. err = %d", ret);
 
-       if (syspopup_has_popup(b)) {
-               syspopup_reset(b);
+       if (syspopup_has_popup(ad->b)) {
+               syspopup_reset(ad->b);
        } else {
                popup = elm_popup_add(ad->win);
                if (popup != NULL) {
-                       ret = syspopup_create(b, &handler, ad->win, ad);
+                       ret = syspopup_create(ad->b, &handler, ad->win, ad);
                        evas_object_show(ad->win);
 
                        if (ret == 0) {
-                               val = bundle_get_val(b,
-                                                  "_INTERNAL_SYSPOPUP_NAME_");
-
-                               val = bundle_get_val(b, "_SYSPOPUP_TITLE_");
+                               val = bundle_get_val(ad->b, "_SYSPOPUP_TITLE_");
                                if (val) {
                                        snprintf(ad->title, TITLE_BUF_LEN, "%s",
-                                                val);
+                                                       val);
                                } else {
                                        snprintf(ad->title, TITLE_BUF_LEN, "%s",
-                                                "Unknown Title");
+                                                       "Unknown Title");
                                }
 
-                               val = bundle_get_val(b, "_SYSPOPUP_CONTENT_");
+                               val = bundle_get_val(ad->b, "_SYSPOPUP_CONTENT_");
                                if (val) {
                                        snprintf(ad->content, CONTENT_BUF_LEN,
-                                                "%s", val);
+                                                       "%s", val);
                                } else {
                                        snprintf(ad->content, CONTENT_BUF_LEN,
-                                                "%s", "Unknown Content");
+                                                       "%s", "Unknown Content");
                                }
 
                                elm_object_style_set(popup, "char_wrap_style");
                                evas_object_size_hint_weight_set(popup,
-                                                       EVAS_HINT_EXPAND,
-                                                       EVAS_HINT_EXPAND);
-                               evas_object_smart_callback_add(popup, "block,clicked", _block_clicked_cb, NULL);
+                                               EVAS_HINT_EXPAND,
+                                               EVAS_HINT_EXPAND);
+                               evas_object_smart_callback_add(popup, "block,clicked", block_clicked_cb, NULL);
                                elm_object_part_text_set(popup, "title,text", ad->title);
                                elm_object_text_set(popup, ad->content);
                                evas_object_smart_callback_add(popup,
-                                                              "response",
-                                                              __response_cb,
-                                                              NULL);
+                                               "response",
+                                               response_cb,
+                                               NULL);
 
                                evas_object_show(popup);
                        }
                }
        }
+       bundle_free(ad->b);
+}
 
-       return 0;
+static void app_pause(void *data)
+{
+       /*  Take necessary actions when application becomes invisible. */
+}
+
+static void app_resume(void *data)
+{
+       /*  Take necessary actions when application becomes visible. */
+}
+
+static void app_terminate(void *data)
+{
+       /*  Release all resources. */
+}
+
+static void ui_app_lang_changed(app_event_info_h event_info, void *user_data)
+{
+       /* APP_EVENT_LANGUAGE_CHANGED*/
+       return;
+}
+
+static void ui_app_orient_changed(app_event_info_h event_info, void *user_data)
+{
+       /* APP_EVENT_DEVICE_ORIENTATION_CHANGED*/
+       return;
+}
+
+static void ui_app_region_changed(app_event_info_h event_info, void *user_data)
+{
+       /* APP_EVENT_REGION_FORMAT_CHANGED*/
+}
+
+static void ui_app_low_battery(app_event_info_h event_info, void *user_data)
+{
+       /* APP_EVENT_LOW_BATTERY*/
+}
+
+static void ui_app_low_memory(app_event_info_h event_info, void *user_data)
+{
+       /* APP_EVENT_LOW_MEMORY*/
 }
 
 int main(int argc, char *argv[])
 {
-       struct appdata ad;
-       struct appcore_ops ops = {
-               .create = __app_create,
-               .terminate = __app_terminate,
-               .pause = __app_pause,
-               .resume = __app_resume,
-               .reset = __app_reset,
-       };
+       appdata_s ad = {0,};
+       int ret = 0;
 
-//     unsetenv("ELM_SCALE");
+       ui_app_lifecycle_callback_s event_callback = {0,};
+       app_event_handler_h handlers[5] = {NULL, };
 
-       /* appcore measure time example */
-       printf("from AUL to %s(): %d msec\n", __func__,
-              appcore_measure_time_from("APP_START_TIME"));
+       event_callback.create = app_create;
+       event_callback.terminate = app_terminate;
+       event_callback.pause = app_pause;
+       event_callback.resume = app_resume;
+       event_callback.app_control = app_control;
 
-       memset(&ad, 0x0, sizeof(struct appdata));
-       ops.data = &ad;
+       ui_app_add_event_handler(&handlers[APP_EVENT_LOW_BATTERY], APP_EVENT_LOW_BATTERY, ui_app_low_battery, &ad);
+       ui_app_add_event_handler(&handlers[APP_EVENT_LOW_MEMORY], APP_EVENT_LOW_MEMORY, ui_app_low_memory, &ad);
+       ui_app_add_event_handler(&handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED], APP_EVENT_DEVICE_ORIENTATION_CHANGED, ui_app_orient_changed, &ad);
+       ui_app_add_event_handler(&handlers[APP_EVENT_LANGUAGE_CHANGED], APP_EVENT_LANGUAGE_CHANGED, ui_app_lang_changed, &ad);
+       ui_app_add_event_handler(&handlers[APP_EVENT_REGION_FORMAT_CHANGED], APP_EVENT_REGION_FORMAT_CHANGED, ui_app_region_changed, &ad);
+
+       ret = ui_app_main(argc, argv, &event_callback, &ad);
+       if (ret != APP_ERROR_NONE) {
+               dlog_print(DLOG_ERROR, LOG_TAG, "app_main() is failed. err = %d", ret);
+       }
 
-       return appcore_efl_main(PACKAGE, &argc, &argv, &ops);
+       return ret;
 }
 
index 558d4ae..c77c4c7 100755 (executable)
 #ifndef __SYSPOPUP_APP_H__
 #define __SYSPOPUP_APP_H__
 
+#include <app.h>
 #include <Elementary.h>
 
+#ifdef  LOG_TAG
+#undef  LOG_TAG
+#endif
+#define LOG_TAG "syspopup-app"
+
 #if !defined(PACKAGE)
-#  define PACKAGE "syspopup-app"
+#define PACKAGE "syspopup-app"
 #endif
 
-#define NAME_BUF_LEN   256
 #define TITLE_BUF_LEN  256
 #define CONTENT_BUF_LEN        256
 
-#define QP_BUF_LEN     10
-#define QP_PRIVID 1
-#define QP_TERM        1
-#define QP_TIMEOUT     1
-
-struct appdata {
-       Evas_Object *win;
-       Evas_Object *popup;
-       bundle *b;
-       char title[TITLE_BUF_LEN];
-       char content[CONTENT_BUF_LEN];
-
-       /* add more variables here */
-};
-
 #endif                         /* __SYSPOPUP_APP_H__ */
 
diff --git a/syspopup-caller.manifest b/syspopup-caller.manifest
new file mode 100755 (executable)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
diff --git a/syspopup.manifest b/syspopup.manifest
new file mode 100755 (executable)
index 0000000..1d49be5
--- /dev/null
@@ -0,0 +1,17 @@
+<manifest>
+       <define>
+               <domain name="syspopup"/>
+               <provide>
+                       <label name="syspopup::db"/>
+               </provide>
+       </define>
+       <request>
+               <domain name="syspopup"/>
+       </request>
+       <assign>
+               <filesystem path="/usr/lib/libsyspopup.so.0" label="_"/>
+               <filesystem path="/usr/lib/libsyspopup.so.0.1.0" label="_"/>
+               <filesystem path="/opt/dbspace/.syspopup.db" label="syspopup::db"/>
+               <filesystem path="/opt/dbspace/.syspopup.db-journal" label="syspopup::db"/>
+       </assign>
+</manifest>
index 0ad0b54..12d9995 100755 (executable)
@@ -28,6 +28,8 @@
 #include <X11/Xatom.h>
 #include <X11/Xutil.h>
 
+#define WIN_PROP_NAME "SYSTEM_POPUP"
+
 static int __utilx_ss_get_window_property(Display *dpy, Window win, Atom atom,
                                          Atom type, unsigned int *val,
                                          unsigned int len)
@@ -89,41 +91,47 @@ static Window get_active_win(Display *dpy, Window win, Atom property)
 static void __X_syspopup_term_handler(void *data)
 {
        syspopup *tmp;
-       Display *d;
+       syspopup *next;
+       Display *d = NULL;
        Window win;
 
-       _D("enter syspopup term handler");
+       _I("enter syspopup term handler");
 
        d = XOpenDisplay(NULL);
+       if(!d){
+               _E("XOpenDisplay return null");
+       }
+
        tmp = _syspopup_get_head();
        while (tmp) {
+
+               _I("term action %d - %s", tmp->term_act, tmp->name);
+               next = tmp->next;
+
                switch (tmp->term_act) {
                case SYSPOPUP_TERM:
+                       win = (Window) tmp->internal_data;
+
                        if (tmp->def_term_fn != NULL)
-                               tmp->def_term_fn(tmp->dupped_bundle,
-                                                tmp->user_data);
+                               tmp->def_term_fn(tmp->dupped_bundle, tmp->user_data);
 
-                       win = (Window) tmp->internal_data;
-                       XKillClient(d, win);
-                       /*XDestroyWindow(d, win);*/ 
-                       /* TODO :modify for multi popup */
+                       if(d) XKillClient(d, win);
                        break;
                case SYSPOPUP_HIDE:
+                       win = (Window) tmp->internal_data;
+
                        if (tmp->def_term_fn != NULL)
-                               tmp->def_term_fn(tmp->dupped_bundle,
-                                                tmp->user_data);
+                               tmp->def_term_fn(tmp->dupped_bundle, tmp->user_data);
 
-                       win = (Window) tmp->internal_data;
-                       XUnmapWindow(d, win);
+                       if(d) XUnmapWindow(d, win);
                        break;
                default:
-                       _D("term action IGNORED - %s", tmp->name);
+                       _I("term action IGNORED - %s", tmp->name);
                }
-               tmp = tmp->next;
+               tmp = next;
        }
 
-       XCloseDisplay(d);
-       /*TODO : if there is no popup window, kill client*/
+       if(d) XCloseDisplay(d);
 }
 
 static gboolean __X_syspopup_timeout_handler(void *user_data)
@@ -259,6 +267,7 @@ int X_syspopup_process_keydown(int id, const char *keyname)
        return 0;
 }
 
+#ifdef ROTATE_USING_X_CLIENT
 int X_syspopup_process_rotate(int id)
 {
        Display *d;
@@ -278,6 +287,18 @@ int X_syspopup_process_rotate(int id)
 
        return 0;
 }
+#else
+static void __efl_rotation_set(Evas_Object* win, Ecore_X_Window xwin)
+{
+       ecore_x_icccm_name_class_set(xwin, WIN_PROP_NAME, WIN_PROP_NAME);
+       if (elm_win_wm_rotation_supported_get(win)) {
+               int rots[4] = { 0, 90, 180, 270 };
+               elm_win_wm_rotation_available_rotations_set(win, &rots, 4);
+       } else {
+               _E("win rotation no supported");
+       }
+}
+#endif
 
 int X_make_syspopup(bundle *b, Display *dpy, Window xwin, void *win,
                    int (*rotate_func) (Display*, Window, syspopup*),
@@ -334,13 +355,15 @@ int X_make_syspopup(bundle *b, Display *dpy, Window xwin, void *win,
        __X_syspopup_change_xwin_type(dpy, xwin);
        utilx_set_system_notification_level(dpy, xwin, info->prio);
 
-       utilx_grab_key(dpy, xwin, KEY_END, TOP_POSITION_GRAB);
-
        if (info->focus == 1) {
                __X_syspopup_disable_focus (dpy, xwin);
        }
 
+#ifdef ROTATE_USING_X_CLIENT
        rotate_func(dpy, xwin, sp);
+#else
+       __efl_rotation_set((Evas_Object* )win,(Ecore_X_Window)xwin);
+#endif
 
        if (is_unviewable == 1) {
                XMapWindow(dpy, xwin);
@@ -370,7 +393,6 @@ int X_syspopup_reset(bundle *b)
        const char *popup_name;
        syspopup_info_t *info;
        syspopup *sp = NULL;
-       int (*rotate_func) (Display *, Window, syspopup *);
 
        popup_name = _syspopup_get_name_from_bundle(b);
        if (popup_name == NULL)
@@ -392,19 +414,30 @@ int X_syspopup_reset(bundle *b)
                        free(sp->dupped_bundle);
                sp->dupped_bundle = bundle_dup(b);
 
-               d = XOpenDisplay(NULL);
-               win = (Window) sp->internal_data;
-               utilx_set_system_notification_level(d, win, info->prio);
+               do {
+                       d = XOpenDisplay(NULL);
+                       win = (Window) sp->internal_data;
+                       if((!d) || (!win)) {
+                               _E("X open is null");
+                               break;
+                       }
+                       utilx_set_system_notification_level(d, win, info->prio);
 
-               if (info->focus == 1) {
-                       __X_syspopup_disable_focus (d, win);
-               }
-               rotate_func = sp->rotate_cb;
-               rotate_func(d, win, sp);
+                       if (info->focus == 1) {
+                               __X_syspopup_disable_focus (d, win);
+                       }
 
-               XMapWindow(d, win);
-               /*XMapRaised(d,win);*/
-               XCloseDisplay(d);
+#ifdef ROTATE_USING_X_CLIENT
+                       int (*rotate_func) (Display *, Window, syspopup *);
+                       rotate_func = sp->rotate_cb;
+                       rotate_func(d, win, sp);
+#else
+                       __efl_rotation_set((Evas_Object *)sp->win, (Ecore_X_Window)win);
+#endif
+                       XMapWindow(d, win);
+                       /*XMapRaised(d,win);*/
+                       XCloseDisplay(d);
+               } while (0);
 
                _syspopup_info_free(info);
        }
@@ -424,3 +457,34 @@ API int syspopup_has_popup(bundle *b)
                return 0;
 }
 
+API int syspopup_reset_timeout(bundle *b, unsigned int time)
+{
+       const char *popup_name;
+       syspopup_info_t *info;
+       syspopup *sp = NULL;
+       int ret;
+
+       popup_name = _syspopup_get_name_from_bundle(b);
+       if (popup_name == NULL) {
+               _E("popup_name is null");
+               return -1;
+       }
+
+       sp = _syspopup_find(popup_name);
+       if (!sp) {
+               _E("find syspopup error");
+               return -1;
+       } else {
+               info = _syspopup_info_get(popup_name);
+               if (info == NULL) {
+                       _E("get syspopup info error");
+                       return -1;
+               }
+               info->timeout = time;
+               ret = _syspopup_reset_timeout(sp, info);
+               _syspopup_info_free(info);
+       }
+
+       return ret;
+}
+
index 4360b01..7767d2f 100755 (executable)
 #include <Ecore_Input.h>
 #include <Ecore_X.h>
 
-static void __elm_popupwin_del_cb(void *data, Evas * e, Evas_Object * obj,
-                                 void *event_info)
-{
-       int id;
-
-       id = (int)data;
-       _D("callback del called, destroy internal data - id = %d\n", id);
-
-       _syspopup_del(id);
-}
-
 static Eina_Bool __x_keydown_cb(void *data, int type, void *event)
 {
        int id = (int)data;
@@ -54,6 +43,7 @@ static Eina_Bool __x_keydown_cb(void *data, int type, void *event)
        return ECORE_CALLBACK_DONE;
 }
 
+#ifdef ROTATE_USING_X_CLIENT
 static Eina_Bool __x_rotate_cb(void *data, int type, void *event)
 {
        int id = (int)data;
@@ -83,6 +73,12 @@ static int __efl_rotate(Display *dpy, Window win, syspopup *sp)
 
        return 0;
 }
+#else
+static int __efl_rotate(Display *dpy, Window win, syspopup *sp)
+{
+       return 0;
+}
+#endif
 
 API int syspopup_create(bundle *b, syspopup_handler *handler,
                        Evas_Object *parent, void *user_data)
@@ -116,7 +112,7 @@ API int syspopup_create(bundle *b, syspopup_handler *handler,
 
                id = X_make_syspopup(b, dpy, xwin, parent, __efl_rotate,
                                     handler, user_data);
-               if (id < 0) {   
+               if (id < 0) {
                        _E("fail to make X syspopup");
                        return -1;
                }
@@ -124,15 +120,12 @@ API int syspopup_create(bundle *b, syspopup_handler *handler,
                ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, __x_keydown_cb,
                                        (void *)id);
 
-               evas_object_event_callback_add(parent, EVAS_CALLBACK_DEL,
-                                        __elm_popupwin_del_cb, (void *)id);
-
                /* X_syspopup_core should process 2 events */
                /* First, rotate event */
                /* Second, keydown event */
-               ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE,
-                                       __x_rotate_cb, (void *)id);
-
+#ifdef ROTATE_USING_X_CLIENT
+               ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE,__x_rotate_cb, (void *)id);
+#endif
        }
 
        return 0;
index 86f105d..fbb9dac 100644 (file)
@@ -3,6 +3,6 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_CFLAGS}")
 
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/syspopup-caller)
 add_executable(sp_test test.c) 
-target_link_libraries(sp_test syspopup_caller ${pkgs_LDFLAGS})
+target_link_libraries(sp_test syspopup_caller ${pkgs_LDFLAGS} "-pie")
 INSTALL(TARGETS sp_test DESTINATION bin)
 
index 8bf3163..ea23627 100755 (executable)
@@ -35,6 +35,7 @@ int main(int argc, char **argv)
 {
        bundle *b;
        int i;
+       int ret = 0;
 
        if (argc < 2) {
                usage();
@@ -50,10 +51,13 @@ int main(int argc, char **argv)
                b = bundle_create();
                for (i = 3; i < argc; i = i + 2)
                        bundle_add(b, argv[i], argv[i + 1]);
-               syspopup_launch(argv[2], b);
+               ret = syspopup_launch(argv[2], b);
                bundle_free(b);
+               if(ret < 0) return -1;
+
        } else if (strcmp(argv[1], "destroy") == 0) {
-               syspopup_destroy_all();
+               ret = syspopup_destroy_all();
+               if(ret < 0) return -1;
        } else {
                usage();
        }