ADD_SUBDIRECTORY(mmc-popup)
ADD_SUBDIRECTORY(usb-popup)
ADD_SUBDIRECTORY(usbotg-popup)
-ADD_SUBDIRECTORY(sys_device_noti)
############## END ##############
<author email="giyeol.ok@samsung.com" href="www.samsung.com">Giyeol Ok</author>
<description>system-popup application (lowbatt popup)</description>
<ui-application appid="org.tizen.lowbat-syspopup" exec="/usr/apps/org.tizen.lowbat-syspopup/bin/lowbatt-popup" nodisplay="true" multiple="false" type="capp" taskmanage="false">
- <icon>org.tizen.lowbat-syspopup.png</icon>
<label>Low battery system popup</label>
</ui-application>
</manifest>
<author email="giyeol.ok@samsung.com" href="www.samsung.com">Giyeol Ok</author>
<description>system-popup application (lowmem popup)</description>
<ui-application appid="org.tizen.lowmem-syspopup" exec="/usr/apps/org.tizen.lowmem-syspopup/bin/lowmem-popup" nodisplay="true" multiple="false" type="capp" taskmanage="false">
- <icon>org.tizen.lowmem-syspopup.png</icon>
<label>Low memory system popup</label>
</ui-application>
</manifest>
<author email="giyeol.ok@samsung.com" href="www.samsung.com">Giyeol Ok</author>
<description>system-popup application (poweroff popup)</description>
<ui-application appid="org.tizen.poweroff-syspopup" exec="/usr/apps/org.tizen.poweroff-syspopup/bin/poweroff-popup" nodisplay="true" multiple="false" type="capp" taskmanage="false">
- <icon>org.tizen.poweroff-syspopup.png</icon>
<label>Power off system popup</label>
</ui-application>
</manifest>
+++ /dev/null
-Source:system-popup
-Section: main
-Priority: extra
-Maintainer: Jonghoon Han <jonghoon.han@samsung.com> Jinkun Jang <jinkun.jang@samsung.com> Juhyun Kim <jh8212.kim> DongGi Jang <dg0402.jang@samsung.com> TAESOO JUN <steve.jun@samsung.com>
-Uploaders: Jinkun Jang <jinkun.jang@samsung.com>
-Build-Depends: debhelper (>=5),libevas-dev,libecore-dev,libethumb-dev,libelm-dev,libefreet-dev, libslp-sysman-dev,libslp-sysman-dev,libslp-sensor-dev,libappcore-efl-dev,libdevman-dev,libmm-sound-dev, libslp-utilx-dev, syspopup-dev, libslp-pm-dev, libnotification-dev,libslp-setting-dev
-Standards-Version: 0.1.0
-
-Package: org.tizen.poweroff-syspopup
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Power off popup application
-
-Package: org.tizen.lowmem-syspopup
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Low memory popup application
-
-Package: org.tizen.lowbat-syspopup
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Low battery popup application
-
-Package: system-popup-dbg
-Section: debug
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, org.tizen.poweroff-syspopup (= ${Source-Version}), org.tizen.lowmem-syspopup (= ${Source-Version}), org.tizen.lowbat-syspopup (= ${Source-Version})
-Description: System popup application (unstripped)
+++ /dev/null
-dh_installdirs
-dh_installchangelogs
-dh_installdocs
-dh_installexamples
+++ /dev/null
-/usr/apps/org.tizen.lowbat-syspopup/bin/lowbatt-popup
-/usr/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt/lowbatt.edj
-/usr/share/applications/org.tizen.lowbat-syspopup.desktop
-/usr/share/process-info/lowbatt-popup.ini
-/usr/apps/org.tizen.lowbat-syspopup/res/locale/*
+++ /dev/null
-/usr/apps/org.tizen.lowmem-syspopup/bin/lowmem-popup
-/usr/apps/org.tizen.lowmem-syspopup/res/keysound/02_Warning.wav
-/usr/apps/org.tizen.lowmem-syspopup/res/edje/lowmem/lowmem.edj
-/usr/share/applications/org.tizen.lowmem-syspopup.desktop
-/usr/share/process-info/lowmem-popup.ini
-/usr/apps/org.tizen.lowmem-syspopup/res/locale/*
-
+++ /dev/null
-/usr/apps/org.tizen.poweroff-syspopup/bin/poweroff-popup
-/usr/apps/org.tizen.poweroff-syspopup/res/edje/poweroff/poweroff.edj
-/usr/share/applications/org.tizen.poweroff-syspopup.desktop
-/usr/share/process-info/poweroff-popup.ini
-/usr/apps/org.tizen.poweroff-syspopup/res/locale/*
-
+++ /dev/null
-#!/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
-CXXFLAGS ?= -Wall -g
-LDFLAGS ?= --Wl,--rpath=$(PREFIX)/lib --Wl,--as-needed
-PREFIX ?= /usr
-DATADIR ?= /opt
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
- CXXFLAGS += -O0
-else
- CFLAGS += -O2
- CXXFLAGS += -O2
-endif
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
- CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX)
-
- touch CMakeFiles/configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
- #docbook-to-man debian/wavplayer.sgml > wavplayer.1
-
- 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 CMakeFiles/$@
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
- rm -rf CMakeCache.txt
- rm -rf CMakeFiles
- rm -rf cmake_install.cmake
- rm -rf Makefile
- rm -rf install_manifest.txt
- rm -rf *.so
- rm -rf *.edj
- rm -rf data/*.desktop
- for i in lowbatt-popup lowmem-popup poweroff-popup; do \
- rm -rf $$i/CMakeCache.txt; \
- rm -rf $$i/CMakeFiles; \
- rm -rf $$i/cmake_install.cmake; \
- rm -rf $$i/Makefile; \
- rm -rf $$i/install_manifest.txt; \
- rm -rf $$i/*.so; \
- rm -rf $$i/*.edj; \
- rm -rf $$i/$$i; \
- for d in `find $(CURDIR) -name "po_*"`; do \
- rm -rf $$d/*.mo; \
- done \
- done \
-
- for d in `find $(CURDIR) -name "po_*"`; do \
- rm -rf $$d/CMakeCache.txt; \
- rm -rf $$d/CMakeFiles; \
- rm -rf $$d/cmake_install.cmake; \
- rm -rf $$d/install_manifest.txt; \
- rm -rf $$d/Makefile; \
- done
-
- for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
- rm -f $${f%.in}; \
- done
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/wavplayer.
- $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
-# 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
-# Commented dh_strip
-# dh_strip
-# Added debug here
- dh_strip --dbg-package=system-popup-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
# install desktop file & icon
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowbat-syspopup.png DESTINATION /usr/apps/org.tizen.lowbat-syspopup/res/icon)
-# install manifest xml file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowbat-syspopup.xml DESTINATION /usr/share/packages/)
-# install ini file
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info)
-
# instatll rule file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.lowbat-syspopup.rule DESTINATION /opt/etc/smack/accesses.d)
# install desktop file & icon
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowmem-syspopup.png DESTINATION /usr/apps/org.tizen.lowmem-syspopup/res/icon)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/sound/02_Warning.wav DESTINATION /usr/apps/org.tizen.lowmem-syspopup/res/keysound)
-
# install manifest xml file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowmem-syspopup.xml DESTINATION /usr/share/packages/)
-# install ini file
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info)
-
# instatll rule file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.lowmem-syspopup.rule DESTINATION /opt/etc/smack/accesses.d)
#define APPLICATION_BG 1
#define INDICATOR_HEIGHT (38) /* the case of 480*800 */
-#define SOUND_PATH PREFIX"/apps/org.tizen.lowmem-syspopup/res/keysound/02_Warning.wav"
#define NEW_INDI
#define ACCT_PROF
if (ret_val == -1)
system_print("\n Lowmem : Play vibration failed \n");
- /* Play the sound alert */
- ret_val = mm_sound_play_keysound(SOUND_PATH, 1);
- if (ret_val != 0)
- system_print("\n Lowmem : Play vibration failed \n");
-
return 0;
}
# install manifest xml file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.mmc-syspopup.xml DESTINATION /usr/share/packages/)
-# install ini file
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info)
-
# instatll rule file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.mmc-syspopup.rule DESTINATION /opt/etc/smack/accesses.d)
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%{_bindir}/sys_device_noti
-%{_datadir}/system-server/sys_device_noti/batt_full_icon.png
-%{_datadir}/system-server/sys_device_noti/res/locale/*/LC_MESSAGES/*.mo
-
%files -n org.tizen.poweroff-syspopup
%manifest %{name}.manifest
%defattr(-,root,root,-)
/usr/apps/org.tizen.poweroff-syspopup/bin/poweroff-popup
/usr/apps/org.tizen.poweroff-syspopup/res/edje/poweroff/poweroff.edj
-/usr/apps/org.tizen.poweroff-syspopup/res/icon/org.tizen.poweroff-syspopup.png
/usr/share/packages/org.tizen.poweroff-syspopup.xml
-/usr/share/process-info/poweroff-popup.ini
/usr/apps/org.tizen.poweroff-syspopup/res/locale/*/LC_MESSAGES/*.mo
/opt/etc/smack/accesses.d/org.tizen.poweroff-syspopup.rule
/usr/share/license/org.tizen.poweroff-syspopup
%manifest %{name}.manifest
%defattr(-,root,root,-)
/usr/apps/org.tizen.lowmem-syspopup/bin/lowmem-popup
-/usr/apps/org.tizen.lowmem-syspopup/res/keysound/02_Warning.wav
/usr/apps/org.tizen.lowmem-syspopup/res/edje/lowmem/lowmem.edj
-/usr/apps/org.tizen.lowmem-syspopup/res/icon/org.tizen.lowmem-syspopup.png
/usr/share/packages/org.tizen.lowmem-syspopup.xml
-/usr/share/process-info/lowmem-popup.ini
/usr/apps/org.tizen.lowmem-syspopup/res/locale/*/LC_MESSAGES/*.mo
/opt/etc/smack/accesses.d/org.tizen.lowmem-syspopup.rule
/usr/share/license/org.tizen.lowmem-syspopup
/usr/apps/org.tizen.lowbat-syspopup/bin/lowbatt-popup
/usr/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt/lowbatt.edj
/usr/apps/org.tizen.lowbat-syspopup/res/locale/*/LC_MESSAGES/*.mo
-/usr/apps/org.tizen.lowbat-syspopup/res/icon/org.tizen.lowbat-syspopup.png
/usr/share/packages/org.tizen.lowbat-syspopup.xml
-/usr/share/process-info/lowbatt-popup.ini
/opt/etc/smack/accesses.d/org.tizen.lowbat-syspopup.rule
/usr/share/license/org.tizen.lowbat-syspopup
%defattr(-,root,root,-)
/usr/apps/org.tizen.mmc-syspopup/bin/mmc-popup
/usr/share/packages/org.tizen.mmc-syspopup.xml
-/usr/share/process-info/mmc-popup.ini
/usr/apps/org.tizen.mmc-syspopup/res/locale/*/LC_MESSAGES/*.mo
/opt/etc/smack/accesses.d/org.tizen.mmc-syspopup.rule
/usr/share/license/org.tizen.mmc-syspopup
# install desktop file & icon
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.poweroff-syspopup.png DESTINATION /usr/apps/org.tizen.poweroff-syspopup/res/icon)
-
# install manifest xml file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.poweroff-syspopup.xml DESTINATION /usr/share/packages/)
-# install ini file
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info)
-
# instatll rule file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.poweroff-syspopup.rule DESTINATION /opt/etc/smack/accesses.d)
+++ /dev/null
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(sys_device_noti C)
-
-SET(SRCS sys_device_noti.c)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} /usr/include/svi /usr/include/notification)
-
-FOREACH(flag ${pkgs_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions")
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-MESSAGE("FLAGS: ${CMAKE_C_FLAGS}")
-
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"")
-IF( $ENV{ARCH} MATCHES "arm" )
- ADD_DEFINITIONS("-DTARGET")
-ENDIF()
-ADD_DEFINITIONS("-DSLP_DEBUG")
-ADD_DEFINITIONS("-DSLP_PROF")
-
-ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-lsvi -lnotification")
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/batt_full_icon.png DESTINATION share/system-server/sys_device_noti)
-
-#i18n
-ADD_SUBDIRECTORY(po_sys_device_noti)
+++ /dev/null
-# for i18n
-
-SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_MX.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po)
-
-SET(MSGFMT "/usr/bin/msgfmt")
-
-FOREACH(pofile ${POFILES})
- SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile})
- MESSAGE("PO: ${pofile}")
- GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE)
- GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE)
- SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo)
- ADD_CUSTOM_COMMAND(
- OUTPUT ${moFile}
- COMMAND ${MSGFMT} -o ${moFile} ${absPofile}
- DEPENDS ${absPofile}
- )
- INSTALL(FILES ${moFile}
- DESTINATION share/system-server/sys_device_noti/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
- SET(moFiles ${moFiles} ${moFile})
-ENDFOREACH(pofile)
-
-MESSAGE(".mo files: ${moFiles}")
-ADD_CUSTOM_TARGET(po_sys_device_noti ALL DEPENDS ${moFiles})
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "تم شحن البطارية كاملا"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "فصل الشاحن"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batareya tam doludur"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Adapteri rozetkadan çıxarın"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Батерията напълно заредена"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Изключете зарядното устройство"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Bateria completament carregada"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desendollar carregador"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Baterie je plně nabitá"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Odpojte nabíječku"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batteri fuldt opladet"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Fjern oplader"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Akku vollständig geladen"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Ladegerät entfernen"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Μπαταρία πλήρως φορτισμένη"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Αποσύνδεση φορτιστή"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Battery fully charged"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Unplug charger"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Battery fully charged"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Unplug charger"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Battery fully charged"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Unplug charger"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batería totalmente cargada"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desconectar cargador"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batería completamente cargada"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desconectar el cargador"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Aku on laetud"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Eraldage laadija"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Bateria guztiz kargatuta"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desentxufatu kargadorea"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Akku on täysin ladattu"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Irrota laturi"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "La pile est chargée"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Débrancher le chargeur"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batterie chargée"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Débrancher le chargeur"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Ceallra lánluchtaithe"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Díphlugáil an luchtaire"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batería totalmente cargada"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desenchufar cargador"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "बैटरी पूरी चार्ज है।"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "चार्जर निकालें"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Baterija puna"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Iskopčajte punjač"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Az akkumulátor feltöltve"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Húzza ki a töltőt"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Մարտկոցը ամբողջովին լիցքավորված է"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Վարդակից անջատել լիցքավորիչը"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Rafhlaða fullhlaðin"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Aftengja hleðslutæki"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batteria ricaricata"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Scollega caricabatterie"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "バッテリ充電完了"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "充電器を取り外してください。"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "კვების ელემენტი დაიტენა"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "გამორთეთ დამტენი"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Батарея толық зарядталған"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Зарядтағышты ажырату"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "배터리가 충전되었습니다"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "충전기 분리"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Baterija visiškai įkrauta"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Atjunkite kroviklį"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Akumulators uzlādēts"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Atvienojiet lādētāju"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Батеријата е наполнета"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Откачете го полначот"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batteri fulladet"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Ta ut laderen"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "De batterij is opgeladen"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Oplader loskoppelen"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Bateria w pełni naładowana"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Odłącz ładowarkę"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Bateria completamente carregada"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desconectar carregador"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Bateria completamente carregada"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Desligue o carregador"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Baterie încărcată complet"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Deconectaţi încărcătorul"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Аккумулятор заряжен"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Отключите зарядное устройство"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batéria je plne nabitá"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Odpojte nabíjačku"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Baterija je polna"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Izklopite napajalnik"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Baterija skroz napunjena"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Otkači punjač"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batteriet fulladdat"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Ta ut laddaren"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Pil tümüyle şarj oldu"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Şarjı fişten çekin"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Батарею заряджено повністю"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Відключіть зарядний пристрій"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "Batareya to‘la zaryadlandi"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "Zaryadlash qurilmasini chiqaring"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "电池已满"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "拔下充电器"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "電池已完全充電"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "拔除充電器"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "充电完毕"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "拔下充电器"
-
+++ /dev/null
-msgid "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"
-msgstr "電池已完全充電"
-
-msgid "IDS_QP_BODY_UNPLUG_CHARGER"
-msgstr "斷開充電器"
-
+++ /dev/null
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd.
- *
- * 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.
- */
-
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <svi.h>
-#include <pmapi.h>
-#include <notification.h>
-#include <libintl.h>
-#include <locale.h>
-#include <vconf.h>
-#include "sys_device_noti.h"
-
-#define BATTERY_FULL_ICON_PATH "/usr/share/system-server/sys_device_noti/batt_full_icon.png"
-#define DEV_NOTI_LOCALE_DIR "/usr/share/system-server/sys_device_noti/res/locale"
-#define DEV_NOTI_PACKAGE_NAME "sys_device_noti"
-
-static int battery_full_noti(int bNoti)
-{
- char *lang;
- char *r;
- int charge_full = bNoti;
-
- notification_h noti = NULL;
- notification_error_e noti_err = NOTIFICATION_ERROR_NONE;
-
- if (charge_full == 1) {
- lang = vconf_get_str(VCONFKEY_LANGSET);
- if (lang) {
- setenv("LANG", lang, 1);
- setenv("LC_MESSAGES", lang, 1);
- r = setlocale(LC_ALL, "");
- if (r == NULL) {
- setlocale(LC_ALL, lang);
- }
- free(lang);
- }
- bindtextdomain(DEV_NOTI_PACKAGE_NAME,DEV_NOTI_LOCALE_DIR);
- textdomain(DEV_NOTI_PACKAGE_NAME);
- noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_NOTI);
-
- noti = notification_new (NOTIFICATION_TYPE_NOTI,
- NOTIFICATION_GROUP_ID_NONE,
- NOTIFICATION_PRIV_ID_NONE);
- if (noti == NULL) {
- return -1;
- }
-
- noti_err = notification_set_text_domain(noti, DEV_NOTI_PACKAGE_NAME, DEV_NOTI_LOCALE_DIR);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_text (noti,
- NOTIFICATION_TEXT_TYPE_TITLE,
- _("IDS_IDLE_POP_BATTERY_FULLY_CAHRGED"),
- "IDS_IDLE_POP_BATTERY_FULLY_CAHRGED",
- NOTIFICATION_VARIABLE_TYPE_NONE);
-
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_text (noti,
- NOTIFICATION_TEXT_TYPE_CONTENT,
- _("IDS_QP_BODY_UNPLUG_CHARGER"),
- "IDS_QP_BODY_UNPLUG_CHARGER",
- NOTIFICATION_VARIABLE_TYPE_NONE);
-
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_text (noti,
- NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF,
- _("IDS_QP_BODY_UNPLUG_CHARGER"),
- "IDS_QP_BODY_UNPLUG_CHARGER",
- NOTIFICATION_VARIABLE_TYPE_NONE);
-
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_time(noti, time(NULL));
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, BATTERY_FULL_ICON_PATH);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_property (noti,
- NOTIFICATION_PROP_DISABLE_APP_LAUNCH
- | NOTIFICATION_PROP_DISABLE_TICKERNOTI
- | NOTIFICATION_PROP_VOLATILE_DISPLAY);
-
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_set_display_applist(noti, NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_insert(noti, NULL);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- goto NOTI_MEM_FREE;
- }
-
- noti_err = notification_free(noti);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- return -1;
- }
- pm_change_state(LCD_NORMAL);
- } else {
- noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_NOTI);
- }
-
- return 0;
-
-NOTI_MEM_FREE:
- if (noti)
- notification_free(noti);
- return -1;
-}
-
-int main(int argc, char *argv[])
-{
- int r;
- int handle = 0;
- int bNoti = -1;
- sound_type snd = -1;
- vibration_type vib = -1;
- cb_noti_type cb_type = -1;
-
- if (argc == 3)
- bNoti = atoi(argv[2]);
-
- cb_type = (cb_noti_type)atoi(argv[1]);
- switch (cb_type) {
- case CB_NOTI_BATT_CHARGE:
- vib = SVI_VIB_OPERATION_CHARGERCONN;
- snd = SVI_SND_OPERATION_CHARGERCONN;
- break;
- case CB_NOTI_BATT_FULL:
- battery_full_noti(bNoti);
- if (bNoti == 1) {
- vib = SVI_VIB_OPERATION_FULLCHARGED;
- snd = SVI_SND_OPERATION_FULLCHARGED;
- break;
- } else
- return 0;
- default:
- break;
- }
-
- r = svi_init(&handle); /* Initialize SVI */
- if (r == SVI_SUCCESS) {
- svi_play(handle, vib, snd);
- svi_fini(handle); /* Finalize SVI */
- }
-
- return 0;
-}
+++ /dev/null
-/*\r
- * Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-#ifndef __SYS_DEVICE_NOTI_H__\r
-#define __SYS_DEVICE_NOTI_H__\r
-\r
-#ifndef _\r
-#define _(str) gettext(str)\r
-#endif\r
-\r
-#ifndef gettext_noop\r
-#define gettext_noop(str) (str)\r
-#endif\r
-\r
-#ifndef N_\r
-#define N_(str) gettext_noop(str)\r
-#endif\r
-\r
-typedef enum {\r
- CB_NOTI_BATT_CHARGE,\r
- CB_NOTI_BATT_LOW,\r
- CB_NOTI_BATT_FULL,\r
- CB_NOTI_MAX\r
-} cb_noti_type;\r
-\r
-typedef enum {\r
- CB_NOTI_OFF = 0,\r
- CB_NOTI_ON = 1\r
-} cb_noti_onoff_type;\r
-\r
-#endif /* __SYS_DEVICE__NOTI_H__ */\r