summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-08 14:54:09 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-06-08 14:54:09 +0900
commit8ce0e324321c0e83efad990b8bae28b1007d59bf (patch)
tree1d5320424d618ad8cbc07d819738124c05c7fb7d
parent36bae88b8398a63859f5e3944a163d498e8f9811 (diff)
downloadnet-popup-8ce0e324321c0e83efad990b8bae28b1007d59bf.tar.gz
net-popup-8ce0e324321c0e83efad990b8bae28b1007d59bf.tar.bz2
net-popup-8ce0e324321c0e83efad990b8bae28b1007d59bf.zip
apply FSL(Flora Software License)
-rw-r--r--AUTHORS2
-rw-r--r--CMakeLists.txt68
-rw-r--r--LICENSE75
-rw-r--r--data/net-popup.ini2
-rw-r--r--data/net.netpopup.desktop.in9
-rw-r--r--debian/changelog8
-rw-r--r--debian/compat1
-rw-r--r--debian/control19
-rw-r--r--debian/dirs2
-rw-r--r--debian/net.netpopup.install.in4
-rwxr-xr-xdebian/rules137
-rw-r--r--include/net-popup-strings.h32
-rw-r--r--include/net-popup.h37
-rw-r--r--packaging/net.netpopup.spec44
-rw-r--r--po/CMakeLists.txt24
-rwxr-xr-xpo/POTFILES.in3
-rw-r--r--po/de_DE.po18
-rw-r--r--po/el_GR.po18
-rw-r--r--po/en.po18
-rw-r--r--po/es_ES.po18
-rw-r--r--po/fr_FR.po18
-rw-r--r--po/it_IT.po18
-rw-r--r--po/ja_JP.po18
-rw-r--r--po/ko_KR.po18
-rw-r--r--po/nl_NL.po18
-rw-r--r--po/pt_PT.po18
-rw-r--r--po/ru_RU.po18
-rw-r--r--po/tr_TR.po18
-rwxr-xr-xpo/update-po.sh60
-rw-r--r--po/zh_CN.po18
-rw-r--r--po/zh_HK.po18
-rw-r--r--po/zh_TW.po18
-rw-r--r--src/net-popup.c127
33 files changed, 924 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..9973c94
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,2 @@
+Sanghoon Cho <sanghoon80.cho@samsung.com>
+Danny Jeongseok Seo <s.seo@samsung.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..525fedf
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,68 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(net-popup C)
+
+SET(SRCS ${CMAKE_SOURCE_DIR}/src/net-popup.c)
+
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+SET(LOCALEDIR "${PREFIX}/share/locale")
+
+IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+ SET(CMAKE_BUILD_TYPE "Release")
+ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
+
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED
+ appcore-efl
+ bundle
+ dlog
+ ecore
+ edje
+ elementary
+ evas
+ syspopup
+ syspopup-caller)
+
+FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g")
+ENDFOREACH(flag)
+#SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -finstrument-functions")
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ")
+SET(CMAKE_C_FLAGS_RELEASE "-O2")
+#This is flag for Gprof
+#SET(CMAKE_C_FLAGS_RELEASE "-pg")
+
+FIND_PROGRAM(UNAME NAMES uname)
+EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
+IF("${ARCH}" MATCHES "^arm.*")
+ ADD_DEFINITIONS("-DTARGET")
+ MESSAGE("add -DTARGET")
+ENDIF("${ARCH}" MATCHES "^arm.*")
+
+ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
+ADD_DEFINITIONS("-DSLP_DEBUG")
+
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
+
+ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
+
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
+
+# install desktop file & icon
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+CONFIGURE_FILE(data/net.netpopup.desktop.in data/net.netpopup.desktop)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/data/net.netpopup.desktop DESTINATION /opt/share/applications/)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/images/ DESTINATION
+${PREFIX}/share/icon FILES_MATCHING PATTERN "*.png")
+
+# install ini file
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION share/process-info)
+
+ADD_SUBDIRECTORY(po)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7ccb5b5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,75 @@
+Flora License
+
+Version 1.0, May, 2012
+
+http://www.tizenopensource.org/license
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+"Tizen Certified Platform" shall mean a software platform that complies with the standards set forth in the Compatibility Definition Document and passes the Compatibility Test Suite as defined from time to time by the Tizen Technical Steering Group and certified by the Tizen Association or its designated agent.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work solely as incorporated into a Tizen Certified Platform, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work solely as incorporated into a Tizen Certified Platform to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof pursuant to the copyright license above, in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+ 1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+ 2. You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+ 3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+ 4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Flora License to your work
+
+To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+
+ 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.
diff --git a/data/net-popup.ini b/data/net-popup.ini
new file mode 100644
index 0000000..5abbace
--- /dev/null
+++ b/data/net-popup.ini
@@ -0,0 +1,2 @@
+[ProcessSetting]
+BG_SCHEDULE=true
diff --git a/data/net.netpopup.desktop.in b/data/net.netpopup.desktop.in
new file mode 100644
index 0000000..1a8969e
--- /dev/null
+++ b/data/net.netpopup.desktop.in
@@ -0,0 +1,9 @@
+Name=Network popup
+Type=Application
+Exec=/usr/bin/net-popup
+nodisplay=True
+Icon=NULL
+Comment=network popup
+x-tizen-taskmanage=False
+x-tizen-removable=False
+Version=0.1.0
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..aef9771
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,8 @@
+net-popup (0.1.18) unstable; urgency=low
+
+ * Update boiler plate
+ * Git: pkgs/n/net-popup
+ * Tag: net-popup_0.1.18
+
+ -- Sanghoon Cho <sanghoon80.cho@samsung.com> Wed, 02 May 2012 17:20:39 +0900
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0bcc07e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: net-popup
+Section: main
+Priority: extra
+Maintainer: Sanghoon Cho <sanghoon80.cho@samsung.com>, Danny Jeongseok Seo <s.seo@samsung.com>
+Uploaders: Sanghoon Cho <sanghoon80.cho@samsung.com>, Danny Jeongseok Seo <s.seo@samsung.com>
+Build-Depends: debhelper (>= 5),libevas-dev, libecore-dev, libethumb-dev, libelm-dev, libefreet-dev, libappcore-efl-dev, libdevman-dev, syspopup-dev, syspopup-caller-dev, dlog-dev
+Standards-Version: 0.1.0
+
+Package: net.netpopup
+Section: main
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libslp-utilx-0, libdlog-0
+Description: network system-popup application
+
+Package: net.netpopup-dbg
+Section: debug
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: network system-popup application (unstripped)
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/net.netpopup.install.in b/debian/net.netpopup.install.in
new file mode 100644
index 0000000..3b209f2
--- /dev/null
+++ b/debian/net.netpopup.install.in
@@ -0,0 +1,4 @@
+@PREFIX@/bin/net-popup
+@PREFIX@/share/locale/*
+/opt/share/applications/net.netpopup.desktop
+@PREFIX@/share/process-info/net-popup.ini
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7db2d9b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,137 @@
+#!/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 ?=
+PREFIX ?= /usr
+DATADIR ?= /opt
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+ CXXFLAGS += -O0
+else
+ CFLAGS += -O2
+ CXXFLAGS += -O2
+endif
+
+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);
+ CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" 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.
+ $(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 $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) clean
+ #rm -rf $(CMAKE_TMP_DIR)
+
+ for f in `find $(CURDIR)/ -name "CMakeCache.txt"`; do \
+ rm -f $${f}; \
+ done
+
+ for f in `find $(CURDIR)/ -name "CMakeFiles"`; do \
+ rm -rf $${f}; \
+ done
+
+ for f in `find $(CURDIR)/ -name "cmake_install.cmake"`; do \
+ rm -f $${f}; \
+ done
+
+ for f in `find $(CURDIR)/ -name "Makefile"`; do \
+ rm -f $${f}; \
+ done
+
+ for f in `find $(CURDIR)/ -name "install_manifest.txt"`; do \
+ rm -f $${f}; \
+ done
+
+ for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
+ rm -f $${f%.in}; \
+ done
+ rm -f data/*.desktop
+
+ 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_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=net.netpopup-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/include/net-popup-strings.h b/include/net-popup-strings.h
new file mode 100644
index 0000000..ad57827
--- /dev/null
+++ b/include/net-popup-strings.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+#ifndef __DEF_NET_POPUP_STRINGS_H_
+#define __DEF_NET_POPUP_STRINGS_H_
+
+#include <libintl.h>
+#include "net-popup.h"
+
+#define ALERT_STR_3G_CHARGE dgettext(PACKAGE, "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES")
+#define ALERT_STR_ERR_UNAVAILABLE dgettext(PACKAGE, "IDS_IM_POP_SERVICE_NOT_AVAIL")
+#define ALERT_STR_ERR_CONNECT dgettext(PACKAGE, "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK")
+#define ALERT_STR_ERR_NOT_SUPPORT dgettext(PACKAGE, "IDS_ST_POP_NOT_SUPPORTED")
+#define ALERT_STR_WIFI_CONNECTED dgettext(PACKAGE, "IDS_WIFI_BODY_CONNECTED")
+#define ALERT_STR_RESTRICTED_USE_WIFI dgettext(PACKAGE, "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI")
+
+#endif /* __DEF_NET_POPUP_STRINGS_H_ */
diff --git a/include/net-popup.h b/include/net-popup.h
new file mode 100644
index 0000000..5625043
--- /dev/null
+++ b/include/net-popup.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+#ifndef __DEF_NET_POPUP_H_
+#define __DEF_NET_POPUP_H_
+
+#include <Elementary.h>
+#include <dlog.h>
+
+#ifndef PREFIX
+#define PREFIX "/usr"
+#endif
+
+#define PACKAGE "net-popup"
+#define ALERT_STR_LEN_MAX 100
+
+#define NET_POPUP "NET_POPUP"
+#define log_print(tag, format, args...) LOG(LOG_DEBUG, \
+ tag, "%s:%d "format, __func__, __LINE__, ##args)
+
+
+#endif /* __DEF_NET_POPUP_H_ */
diff --git a/packaging/net.netpopup.spec b/packaging/net.netpopup.spec
new file mode 100644
index 0000000..6948062
--- /dev/null
+++ b/packaging/net.netpopup.spec
@@ -0,0 +1,44 @@
+#sbs-git:pkgs/n/net-popup net.netpopup
+
+Name: net.netpopup
+Summary: Network Notification Popup application
+Version: 0.1.17
+Release: 6
+Group: App/Network
+License: Flora Software License
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(bundle)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(edje)
+BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(syspopup)
+BuildRequires: pkgconfig(syspopup-caller)
+BuildRequires: gettext
+
+%description
+Network Notification Popup application
+
+
+%prep
+%setup -q
+
+%build
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+make %{?jobs:-j%jobs}
+
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+
+%files
+%{_bindir}/net-popup
+%{_prefix}/share/process-info/net-popup.ini
+/opt/share/applications/net.netpopup.desktop
+%{_prefix}/share/locale/*/LC_MESSAGES/net-popup.mo
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..1e18992
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,24 @@
+# for i18n
+
+SET(POFILES de_DE.po el_GR.po en.po es_ES.po fr_FR.po it_IT.po ja_JP.po ko_KR.po nl_NL.po pt_PT.po ru_RU.po tr_TR.po zh_CN.po zh_HK.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/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
+ SET(moFiles ${moFiles} ${moFile})
+ENDFOREACH(pofile)
+
+MESSAGE(".mo files: ${moFiles}")
+ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles})
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100755
index 0000000..07e42dc
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,3 @@
+# List of source files containing translatable strings.
+net-popup-string.h
+net-popup.c
diff --git a/po/de_DE.po b/po/de_DE.po
new file mode 100644
index 0000000..54f5d99
--- /dev/null
+++ b/po/de_DE.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Verbunden"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Die Verwendung des 3G-Netzes anstatt WLAN verursacht zusätzliche Kosten."
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Sicherheitsrichtlinie schränkt die Verwendung von WLAN ein."
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Verbindung mit Netzwerk nicht möglich"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Nicht unterstützt"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Dienst nicht verfügbar. Später erneut versuchen"
+
diff --git a/po/el_GR.po b/po/el_GR.po
new file mode 100644
index 0000000..43d4f11
--- /dev/null
+++ b/po/el_GR.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Συνδέθηκε"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Η χρήση του δικτύου 3G αντί του Wi-Fi θα επιφέρει επιπλέον χρεώσεις"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Η πολιτική ασφαλείας περιορίζει τη χρήση του Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Δεν είναι δυνατή η σύνδεση σε δίκτυο"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Δεν υποστηρίζεται"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Η υπηρεσία δεν είναι διαθέσιμη, δοκιμάστε αργότερα!"
+
diff --git a/po/en.po b/po/en.po
new file mode 100644
index 0000000..93e2e10
--- /dev/null
+++ b/po/en.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Connected"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Using 3G network instead of Wi-Fi will incur extra charges"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Security policy restricts use of Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Unable to connect to network"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Not supported"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Service not available. Try later"
+
diff --git a/po/es_ES.po b/po/es_ES.po
new file mode 100644
index 0000000..31d2b5f
--- /dev/null
+++ b/po/es_ES.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Conectado"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "El uso de la red 3G en lugar de Wi-Fi tendrá un coste adicional"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "La política de seguridad restringe el uso del Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "No se puede conectar a la red"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "No admitido"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Servicio no disponible. Inténtelo más tarde."
+
diff --git a/po/fr_FR.po b/po/fr_FR.po
new file mode 100644
index 0000000..fd36d77
--- /dev/null
+++ b/po/fr_FR.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Connecté"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "L'utilisation du réseau 3G à la place du Wi-Fi entraînera des frais supplémentaires"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "La politique de sécurité limite l'utilisation du Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Impossible de se connecter au réseau"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Non pris en charge"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Service non disponible. Réessayez plus tard"
+
diff --git a/po/it_IT.po b/po/it_IT.po
new file mode 100644
index 0000000..02fc22d
--- /dev/null
+++ b/po/it_IT.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Collegato"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "L'uso di reti 3G anziché Wi-Fi comporterà l'addebito di spese aggiuntive"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "I criteri di sicurezza limitano l'uso del Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Impossibile connettersi alla rete"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Non supportato"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Servizio non disponibile. Riprovare più tardi."
+
diff --git a/po/ja_JP.po b/po/ja_JP.po
new file mode 100644
index 0000000..abcdb59
--- /dev/null
+++ b/po/ja_JP.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "接続しました。"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Wi-Fi​の​代わりに​3G​ネットワーク​を​利用​すると、​追加​料金​が​発生​します"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Wi-Fiの使用は、セキュリティポリシーによって制限されています。"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "ネット​ワーク​に​接続​できません"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "サポート​されていません"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "サービス​を​利用​できません。​後ほどお試しください"
+
diff --git a/po/ko_KR.po b/po/ko_KR.po
new file mode 100644
index 0000000..d2dcff3
--- /dev/null
+++ b/po/ko_KR.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "연결되었습니다"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Wi-Fi 대신 3G 네트워크를 사용하면 추가 요금이 부가됩니다"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "보안 정책에 따라 Wi-Fi 사용이 제한됩니다"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "네트워크에 연결할 수 없습니다"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "사용할 수 없습니다"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "서비스를 이용할 수 없습니다. 잠시 후 다시 시도하세요"
+
diff --git a/po/nl_NL.po b/po/nl_NL.po
new file mode 100644
index 0000000..c5abf49
--- /dev/null
+++ b/po/nl_NL.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Verbonden"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Voor 3G-netwerk in plaats van Wi-Fi betaalt u extra"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Gebruik van Wi-Fi beperkt door beveiligingsbeleid"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Kan niet verbinden met netwerk"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Niet ondersteund"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Dienst niet beschikbaar. Probeer het later opnieuw."
+
diff --git a/po/pt_PT.po b/po/pt_PT.po
new file mode 100644
index 0000000..19217ca
--- /dev/null
+++ b/po/pt_PT.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Ligado"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "A utilização da rede 3G em vez de Wi-Fi implica a cobrança de taxas extra"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "A política de segurança restringe a utilização de Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Impossível ligar à rede"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Não suportado"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Serviço indisponível. tente mais tarde"
+
diff --git a/po/ru_RU.po b/po/ru_RU.po
new file mode 100644
index 0000000..a822c33
--- /dev/null
+++ b/po/ru_RU.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Подключено"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "За использование сети 3G вместо Wi-Fi может взиматься дополнительная плата"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Политика безопасности ограничивает использование Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Не удается подключиться к сети"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Не поддерживается"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Услуга недоступна. повторите попытку позже"
+
diff --git a/po/tr_TR.po b/po/tr_TR.po
new file mode 100644
index 0000000..485666a
--- /dev/null
+++ b/po/tr_TR.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "Bağlantı kuruldu"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "Wi-Fi ağı yerine 3G ağı kullanmak ekstra ücrete yol açar"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "Güvenlik ilkesi Wi-Fi kullanımını kısıtlıyor"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "Ağa bağlanamadı"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "Desteklenmiyor"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "Hizmete Erişilemiyor. Daha Sonra Deneyin"
+
diff --git a/po/update-po.sh b/po/update-po.sh
new file mode 100755
index 0000000..81ecb0e
--- /dev/null
+++ b/po/update-po.sh
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+PACKAGE=net-popup
+SRCROOT=..
+POTFILES=POTFILES.in
+
+#ALL_LINGUAS= am az be ca cs da de el en_CA en_GB es et fi fr hr hu it ja ko lv mk ml ms nb ne nl pa pl pt pt_BR ru rw sk sl sr sr@Latn sv ta tr uk vi zh_CN zh_TW
+ALL_LINGUAS="en de_DE el_GR es_ES it_IT fr_FR ko_KR pt_PT ja_JP nl_NL tr_TR ru_RU zh_CN zh_TW zh_HK"
+
+XGETTEXT=/usr/bin/xgettext
+MSGMERGE=/usr/bin/msgmerge
+
+echo -n "Make ${PACKAGE}.pot "
+if [ ! -e $POTFILES ] ; then
+ echo "$POTFILES not found"
+ exit 1
+fi
+
+$XGETTEXT --default-domain=${PACKAGE} --directory=${SRCROOT} \
+ --add-comments --keyword=_ --keyword=N_ --files-from=$POTFILES
+if [ $? -ne 0 ]; then
+ echo "error"
+ exit 1
+fi
+
+if [ ! -f ${PACKAGE}.po ]; then
+ echo "No such file: ${PACKAGE}.po"
+ exit 1
+fi
+
+rm -f ${PACKAGE}.pot && mv ${PACKAGE}.po ${PACKAGE}.pot
+echo "done"
+
+for LANG in $ALL_LINGUAS; do
+ echo "$LANG : "
+
+ if [ ! -e $LANG.po ] ; then
+ sed 's/CHARSET/UTF-8/g' ${PACKAGE}.pot > ${LANG}.po
+ echo "${LANG}.po created"
+ else
+ if $MSGMERGE ${LANG}.po ${PACKAGE}.pot -o ${LANG}.new.po ; then
+ if cmp ${LANG}.po ${LANG}.new.po > /dev/null 2>&1; then
+ rm -f ${LANG}.new.po
+ else
+ if mv -f ${LANG}.new.po ${LANG}.po; then
+ echo ""
+ else
+ echo "msgmerge for $LANG.po failed: cannot move $LANG.new.po to $LANG.po" 1>&2
+ rm -f ${LANG}.new.po
+ exit 1
+ fi
+ fi
+ else
+ echo "msgmerge for $LANG failed!"
+ rm -f ${LANG}.new.po
+ fi
+ fi
+ echo ""
+done
+
diff --git a/po/zh_CN.po b/po/zh_CN.po
new file mode 100644
index 0000000..b0b265f
--- /dev/null
+++ b/po/zh_CN.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "已连接"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "使用3G网络而不是WLAN,将产生额外费用"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "安全政策限制使用WLAN"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "无法连接网络"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "不支持"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "服务不可用,稍后再试"
+
diff --git a/po/zh_HK.po b/po/zh_HK.po
new file mode 100644
index 0000000..72c5f9a
--- /dev/null
+++ b/po/zh_HK.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "已連接"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "使用 3G 網絡而不使用 Wi-Fi,將需支付額外費用"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "安全政策限制使用 Wi-Fi"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "無法連接網絡"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "不支援"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "無可用服務。請稍後再試"
+
diff --git a/po/zh_TW.po b/po/zh_TW.po
new file mode 100644
index 0000000..8c6325d
--- /dev/null
+++ b/po/zh_TW.po
@@ -0,0 +1,18 @@
+msgid "IDS_WIFI_BODY_CONNECTED"
+msgstr "已連線"
+
+msgid "IDS_WGT_POP_USING_3G_NETWORK_INSTEAD_OF_WI_FI_WILL_INCUR_EXTRA_CHARGES"
+msgstr "使用3G網路將產生額外的費用"
+
+msgid "IDS_COM_POP_SECURITY_POLICY_RESTRICTS_USE_OF_WI_FI"
+msgstr "由於安全政策,使用Wi-Fi被限制"
+
+msgid "IDS_ST_BODY_UNABLE_TO_CONNECT_TO_THE_NETWORK"
+msgstr "無法連接到網路"
+
+msgid "IDS_ST_POP_NOT_SUPPORTED"
+msgstr "不支援"
+
+msgid "IDS_IM_POP_SERVICE_NOT_AVAIL"
+msgstr "無法使用服務。請稍後再試"
+
diff --git a/src/net-popup.c b/src/net-popup.c
new file mode 100644
index 0000000..8e0c39f
--- /dev/null
+++ b/src/net-popup.c
@@ -0,0 +1,127 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 <appcore-efl.h>
+#include <syspopup.h>
+#include <syspopup_caller.h>
+
+#include "net-popup.h"
+#include "net-popup-strings.h"
+
+
+static int __net_popup_term(bundle *b, void *data)
+{
+ log_print(NET_POPUP, "\nnet-popup: terminate");
+ return 0;
+}
+
+static int __net_popup_timeout(bundle *b, void *data)
+{
+ log_print(NET_POPUP, "\nnet-popup: timeout");
+ return 0;
+}
+
+syspopup_handler handler = {
+ .def_term_fn = __net_popup_term,
+ .def_timeout_fn = __net_popup_timeout
+};
+
+static int __net_popup_create(void *data)
+{
+ log_print(NET_POPUP, "__net_popup_create()\n");
+
+ bindtextdomain(PACKAGE, LOCALEDIR);
+
+ return 0;
+}
+
+static int __net_popup_terminate(void *data)
+{
+ return 0;
+}
+
+static int __net_popup_pause(void *data)
+{
+ return 0;
+}
+
+static int __net_popup_resume(void *data)
+{
+ return 0;
+}
+
+static int __net_popup_reset(bundle *b, void *data)
+{
+ int ret = 0;
+ bundle *b_noti = NULL;
+
+ log_print(NET_POPUP, "__net_popup_reset()\n");
+
+ b_noti = bundle_create();
+ bundle_add(b_noti, "2", "1");
+ bundle_add(b_noti, "3", "3");
+
+ const char* mode = bundle_get_val(b, "_SYSPOPUP_CONTENT_");
+ log_print(NET_POPUP, "content = %s\n", mode);
+
+ if (strcmp(mode, "connected") == 0) {
+ bundle_add(b_noti, "1", ALERT_STR_3G_CHARGE);
+ log_print(NET_POPUP, "alert 3g\n");
+ } else if (strcmp(mode, "fail to connect") == 0) {
+ bundle_add(b_noti, "1", ALERT_STR_ERR_UNAVAILABLE);
+ log_print(NET_POPUP, "alert err\n");
+ } else if (strcmp(mode, "unable to connect") == 0) {
+ bundle_add(b_noti, "1", ALERT_STR_ERR_CONNECT);
+ log_print(NET_POPUP, "alert unable to connect\n");
+ } else if (strcmp(mode, "not support") == 0) {
+ bundle_add(b_noti, "1", ALERT_STR_ERR_NOT_SUPPORT);
+ log_print(NET_POPUP, "alert not support\n");
+ } else if (strcmp(mode, "wifi restricted") == 0) {
+ bundle_add(b_noti, "1", ALERT_STR_RESTRICTED_USE_WIFI);
+ log_print(NET_POPUP, "alert wifi restricted\n");
+ } else if (strcmp(mode, "wifi connected") == 0) {
+ char buf[ALERT_STR_LEN_MAX] = "";
+ char *ap_name = bundle_get_val(b, "_AP_NAME_");
+ snprintf(buf, ALERT_STR_LEN_MAX, "%s %s", ap_name, ALERT_STR_WIFI_CONNECTED);
+ bundle_add(b_noti, "1", buf);
+ log_print(NET_POPUP, "alert wifi connected\n");
+ } else {
+ bundle_add(b_noti, "1", mode);
+ log_print(NET_POPUP, "%s\n", mode);
+ }
+
+ syspopup_launch("tickernoti-syspopup", b_noti);
+ bundle_free(b_noti);
+
+ return 0;
+}
+
+int main(int argc, char *argv[])
+{
+ struct appcore_ops ops = {
+ .create = __net_popup_create,
+ .terminate = __net_popup_terminate,
+ .pause = __net_popup_pause,
+ .resume = __net_popup_resume,
+ .reset = __net_popup_reset,
+ };
+
+ return appcore_efl_main(PACKAGE, &argc, &argv, &ops);
+}
+