From: Jinkun Jang Date: Tue, 12 Mar 2013 16:37:48 +0000 (+0900) Subject: Tizen 2.1 base X-Git-Tag: 2.1b_release~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95df537fa8eefc75d02021bc0446d2d5ed1e89d7;p=apps%2Fcore%2Fpreloaded%2Fmy-account.git Tizen 2.1 base --- diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..9a9d870 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,81 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(ug-setting-myaccount-efl C) + +SET(ACCOUNT_LIST_UG_SRCS +src/myaccount_ug_main.c +src/myaccount_ug_common.c +src/myaccount_ug_account_list.c +src/myaccount_ug_addaccount.c +) + +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_DIRECTORIES(/usr/include) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED elementary appcore-efl ui-gadget-1 accounts-svc evas capi-appfw-application capi-appfw-app-manager vconf pkgmgr capi-system-system-settings) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Werror -fpie") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-D_A_PROJECT_") + +ADD_LIBRARY(${PROJECT_NAME} SHARED ${ACCOUNT_LIST_UG_SRCS}) +SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0.0.1) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} accounts-svc) + +ADD_CUSTOM_TARGET(myaccount.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/data/myaccount_photo + ${CMAKE_SOURCE_DIR}/data/edc/myaccount.edc ${CMAKE_BINARY_DIR}/myaccount.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/myaccount.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} myaccount.edj) + +ADD_CUSTOM_TARGET(myaccount_button.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/data/myaccount_photo + ${CMAKE_SOURCE_DIR}/data/edc/myaccount_button.edc ${CMAKE_BINARY_DIR}/myaccount_button.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/myaccount_button.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} myaccount_button.edj) + +ADD_CUSTOM_TARGET(myaccount_edc_images.edj + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/myaccount_photo + ${CMAKE_SOURCE_DIR}/data/edc/myaccount_edc_images.edc ${CMAKE_BINARY_DIR}/myaccount_edc_images.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/myaccount_edc_image_macro.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} myaccount_edc_images.edj) + +INSTALL(FILES ${CMAKE_BINARY_DIR}/setting-myaccount-efl.xml DESTINATION /usr/share/packages) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/ug/lib) +INSTALL(FILES ${CMAKE_BINARY_DIR}/myaccount.edj DESTINATION /usr/ug/res/edje/${PROJECT_NAME}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/myaccount_edc_images.edj DESTINATION /usr/ug/res/edje/${PROJECT_NAME}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/myaccount_button.edj DESTINATION /usr/ug/res/edje/${PROJECT_NAME}) + +#installing images + +#INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/myaccount_photo/ DESTINATION /usr/ug/res/images/${PROJECT_NAME} PATTERN +#"*.png" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE +#WORLD_EXECUTE) + +# i18n +ADD_SUBDIRECTORY(po) + + diff --git a/INSTALL b/INSTALL new file mode 100755 index 0000000..fc0128d --- /dev/null +++ b/INSTALL @@ -0,0 +1,34 @@ +1. make the build directory + + ex) + + $ mkdir build + + +2. change the working directory to the build directory + + ex) + + $ cd build + + +3. run 'cmake' + + $ cmake ${SOURCE_DIR} -DCMAKE_INSTALL_PREFIX=/usr + + ex) + + $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr + + or + + $ cmake .. + + +4. make & make install + + ex) + + $ make -j 2 && make install + + diff --git a/LICENSE.Flora b/LICENSE.Flora new file mode 100755 index 0000000..bbe9d02 --- /dev/null +++ b/LICENSE.Flora @@ -0,0 +1,206 @@ +Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + 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. + + 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, + 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 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 in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) 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 + + (d) 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 Apache License to your work. + + To apply the Apache 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 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. + + + diff --git a/NOTICE b/NOTICE new file mode 100755 index 0000000..3997999 --- /dev/null +++ b/NOTICE @@ -0,0 +1,4 @@ +Copyright (c) Samsung Electronics Co., Ltd. All rights reserved. +Except as noted, this software is licensed under Flora License, Version 1. +Please, see the LICENSE file for Flora License terms and conditions. + diff --git a/data/edc/CMakeLists.txt b/data/edc/CMakeLists.txt new file mode 100755 index 0000000..fd2bc4f --- /dev/null +++ b/data/edc/CMakeLists.txt @@ -0,0 +1,22 @@ +ADD_CUSTOM_TARGET(myaccount.edj + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc + ${CMAKE_SOURCE_DIR}/data/edc/myaccount.edc ${CMAKE_BINARY_DIR}/data/edc/myaccount.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/myaccount.edc +) + +ADD_CUSTOM_TARGET(myaccount_button.edj + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc + ${CMAKE_SOURCE_DIR}/data/edc/myaccount_button.edc ${CMAKE_BINARY_DIR}/data/edc/myaccount_button.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/myaccount_button.edc +) + +ADD_CUSTOM_TARGET(myaccount_edc_images.edj + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc + ${CMAKE_SOURCE_DIR}/data/edc/myaccount_edc_images.edc ${CMAKE_BINARY_DIR}/data/edc/myaccount_edc_images.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/myaccount_edc_images.edc +) + +INSTALL(FILES ${CMAKE_BINARY_DIR}/data/edc/myaccount.edj DESTINATION share/edje/myaccount) +INSTALL(FILES ${CMAKE_BINARY_DIR}/data/edc/myaccount_button.edj DESTINATION share/edje/myaccount) +INSTALL(FILES ${CMAKE_BINARY_DIR}/data/edc/myaccount_edc_images.edj DESTINATION share/edje/myaccount) + diff --git a/data/edc/inc.Addaccount.edc b/data/edc/inc.Addaccount.edc new file mode 100755 index 0000000..da72f81 --- /dev/null +++ b/data/edc/inc.Addaccount.edc @@ -0,0 +1,61 @@ +group +{ + name: "Addaccount_ui"; + min: MAIN_W MAIN_H; + + parts { + part { name: "rect"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part + { + + name, "titlebar"; + type, SWALLOW; + mouse_events, 0; + description + { + state, "default" 0.0; + rel1 { relative, 0.0 0.0; to, "rect";} + //rel2 { relative, 1.0 82/800; to, "rect";} + rel2 { relative, 1.0 92/800; to, "rect";} + } + } + part { + name: "body"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + //rel1 { relative: 0.0 82/800; to, "rect"; } + rel1 { relative: 0.0 100/800; to, "rect"; } + rel2 { relative: 1.0 1.0; to, "rect"; } + } + } + + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + color: 0 0 0 128; + rel1 { relative: 0.0 0.9; to: "rect"; } + rel2 { relative: 1.0 1.0; to: "rect"; } + } + } + } +} diff --git a/data/edc/inc.add-sns-account.edc b/data/edc/inc.add-sns-account.edc new file mode 100755 index 0000000..d1274a6 --- /dev/null +++ b/data/edc/inc.add-sns-account.edc @@ -0,0 +1,49 @@ +group { + name: "add-sns-account"; + min: MAIN_W MAIN_H; + + parts { + part { name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 0; + } + } + + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.9; to: "background"; } + rel2 { relative: 1.0 1.0; to: "background"; } + + } + } + part + { + name: "titlebar"; + type: SWALLOW; + mouse_events: 0; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "background"; } + rel2 { relative: 1.0 TITLE_BAR_H; to: "background"; } + + } + } + } + } + + diff --git a/data/edc/inc.myaccount_contact_sync.edc b/data/edc/inc.myaccount_contact_sync.edc new file mode 100755 index 0000000..899976a --- /dev/null +++ b/data/edc/inc.myaccount_contact_sync.edc @@ -0,0 +1,208 @@ +//#include ../../include/myaccount_layout.h +#define COLOR_DEFAULT 0 0 0 0 +#define ENTRY_H 80 +#define RLIST_ITEM_H 80 +#define OVERLAY_OFFSET 11 +#define COLOR_DARK_GRAY 33 33 33 +#define RLIST_ITEM_NUM_T 10 +#define IST_ITEM_NUM_R -5 +#define RLIST_ITEM_NUM_B -5 +#define RLIST_ITEM_OFFSET_T 12 //18 +#define EDIT_AREA_OFFSET_B 0 //-15 +#define SEARCH_ITEM_NUM_B -6 +#define COLOR_WHITE 255 255 255 + +#define TITLEBAR_H 50 +#define TITLE_SHADOW_H 8 +#define HEADER_H 70 + +#define TAB_W 480 +#define TAB_H 87 +#define TAB_SHADOW_H 7 +#define TAB_BOX_W 116 +#define TAB_BOX_H 80 + +#define SOFTKEY_H 78 +#define INDICATOR_H 48 /* excluding its shadow (height 4) */ +#define BLUR_H 120 + +#define BTN_TRANSPARENCY_FIFTY 128 +#define BTN_TRANSPARENCY_THIRTY 77 +#define BTN_FONT_2LINE_SIZE 24 + +#define SEARCH_SHADOW_H 8 + +group +{ + name: "contact_sync"; + min: MAIN_W MAIN_H; + + parts { + part { name: "rect"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part { + name: "body"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + //rel1 { relative: 0.0 88/800; to, "rect"; } + rel1 { relative: 0.0 100/800; to, "rect"; } + rel2 { relative: 1.0 1.0; to, "rect"; } + } + } + } +} + + +group { + name: "contact_sync_with_search"; +// min: MAIN_W MAIN_H; + parts { + part { name: "Background"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + //color: COLOR_DEFAULT; + //color: 255 255 255 255; + color: 0 0 0 255; + } + } + part { name: "rlist_body"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { to: "Background"; relative: 0.0 0.0; offset: 0 -10); } + rel2 { to: "Background"; relative: 1.0 0.0; offset: 0 (ENTRY_H+10); } + } + } + part { name: "sw_body"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 (ENTRY_H+10); } + rel2 { relative: 1.0 1.0; offset: 0 0; } + } + } + } + } + + + group { + images { + image: "09_search_button_normal_bg.png" COMP; + image: "09_search_button_normal_bg_press.png" COMP; + image: "09_search_softkey_icon_zoom.png" COMP; + image: "09_search_text_input_03.png" COMP; + image: "09_search_input_bg.png" COMP; + } + name: "rlist_item"; + parts { + part { name: "erect"; + type: RECT; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 0.0; offset: 0 (RLIST_ITEM_H+OVERLAY_OFFSET); } + color: 77 77 77 255; + } + } + part { name: "rect_line"; + type: RECT; + description { + state: "default" 0.0; + rel1 { to: "erect"; relative: 0.0 1.0; offset: 0 3; } + rel2 { to: "erect"; relative: 1.0 1.0; offset: -1 3; } + color: COLOR_DARK_GRAY 255; + } + } + part { name: "rect_guide"; + type: IMAGE; + description { + visible:1; + state: "default" 0.0; + rel1 { to: "erect"; relative: 0.0 0.0; offset: 10 (RLIST_ITEM_NUM_T+OVERLAY_OFFSET); } + rel2 { to: "erect"; relative: 1.0 1.0; offset: (IST_ITEM_NUM_R-73) (RLIST_ITEM_NUM_B-5); } + + image { + //normal: "09_search_text_input_03.png"; //white background + normal: "09_search_input_bg.png"; + border: 10 10 10 10; + } + } + } + + part { name: "btn_text"; + mouse_events: 1; + type: SWALLOW; + repeat_events: 1; + description { + state: "default" 0.0; + rel1 { to: "rect_guide"; relative: 0.0 0.0; offset: 10 RLIST_ITEM_OFFSET_T; } + rel2 { to: "rect_guide"; relative: 1.0 1.0; offset: -5 EDIT_AREA_OFFSET_B; } + } + description { + state: "down" 0.0; + inherit: "default" 0.0; + } + } + part {name: "button"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { to: "erect"; relative: 1.0 0.0; offset: -70 (10+OVERLAY_OFFSET); }; + rel2 { to: "erect"; relative: 1.0 1.0; offset: -10 (SEARCH_ITEM_NUM_B-4); }; + image { + normal: "09_search_button_normal_bg.png"; + border: 9 9 0 0; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + image { + normal: "09_search_button_normal_bg_press.png"; + border: 9 9 0 0; + } + } + } + part { name: "button_icon"; + type: IMAGE; + repeat_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 8 0; to: "button"; } + rel2 { relative: 1.0 1.0; offset: -8 0; to: "button"; } + color: COLOR_WHITE 255; //color: 0 0 0 255; + image { + normal: "09_search_softkey_icon_zoom.png"; + border: 9 9 0 0; + } + } + } + } + programs { + program { name: "bt_clicked"; + source: "button"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "SEARCHIT" "SEARCHITEM"; + } + } + } // group : diff --git a/data/edc/inc.myaccount_email_datarange.edc b/data/edc/inc.myaccount_email_datarange.edc new file mode 100755 index 0000000..4c83fc4 --- /dev/null +++ b/data/edc/inc.myaccount_email_datarange.edc @@ -0,0 +1,32 @@ +group +{ + name: "email_datarange"; + min: MAIN_W MAIN_H; + + parts { + part { name: "rect"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part { + name: "body"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + //rel1 { relative: 0.0 88/800; to, "rect"; } + rel1 { relative: 0.0 100/800; to, "rect"; } + rel2 { relative: 1.0 1.0; to, "rect"; } + } + } + } +} diff --git a/data/edc/inc.myaccount_peak_time.edc b/data/edc/inc.myaccount_peak_time.edc new file mode 100755 index 0000000..cb28084 --- /dev/null +++ b/data/edc/inc.myaccount_peak_time.edc @@ -0,0 +1,721 @@ +//#define TITLEBAR_H 100 +//#define TITLE_SHADOW_H 8 + +//#define ALARM_LIST_H 101 + + +#define COLOR_1 255 255 255 255 +#define COLOR_2 0 0 0 255 + +group +{ + images { + image: "01_hybrid_spinner_bg.png" COMP; + image: "08_textinput_panel_bg.png" COMP; + image: "01_list_bottom_blur.png" COMP; + } + + name: "peak_time"; + min: MAIN_W MAIN_H; + + parts { + part { name: "ui.rect.bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part { + name: "indicator"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 INDICATOR_H; + fixed: 0 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 0.0; } + align: 0.5 0.0; + color: 0 0 0 0; + } + } + +/* + part { + name: "titlebar_top_padding"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 10; + fixed: 0 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 0.0; } + align: 0.5 0.0; + color: 255 0 0 255; + } + } +*/ + part { + name: "title_shadow"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 TITLE_SHADOW_H; + fixed: 0 1; + rel1 { relative: 0.0 1.0; to: "elm.swallow.title"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.title"; } + align: 0.5 1.0; + color: 0 0 0 0; + } + } + part { + name: "elm.swallow.content"; + type: SWALLOW; + description { + state: "default" 0.0; + //rel1 { relative: 0.0 0.0; to_y: "title_shadow"; } + rel1 { relative: 0.0 0.0; to_y: "elm.swallow.title"; } + rel2 { relative: 1.0 1.0; } + } + } +/* part { + name: "elm.image.blur"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + min: 0 BLUR_H; + fixed: 0 1; + rel1 { relative: 0.0 1.0; } + rel2 { relative: 1.0 1.0; } + align: 0.5 1.0; + image.normal: "01_list_bottom_blur.png"; + } + } */ + part { + name: "elm.swallow.title"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 0 TITLEBAR_H; + fixed: 0 1; + //rel1 { relative: 0.0 1.0; to_y: "titlebar_top_padding"; } + //rel2 { relative: 1.0 1.0; to_y: "titlebar_top_padding"; } + rel1 { relative: 0.0 1.0; to_y: "indicator"; } + rel2 { relative: 1.0 1.0; to_y: "indicator"; } + align: 0.5 0; + } + } + + part { + name: "ui.swl.sk1"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: SK1_W SK_H; + fixed: 1 1; + rel1.to_x: "ui.rect.bg"; + rel1.relative: 0.0 1.0; + rel2.to: "ui.rect.bg"; + rel2.relative: 0.0 1.0; + align: 0.0 1.0; + } + } + part { + name: "ui.swl.sk2"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 0 SK_H; + fixed: 0 1; + rel1.to_x: "ui.swl.sk1"; + rel1.to_y: "ui.rect.bg"; + rel1.relative: 1.0 1.0; + rel2.to_x: "ui.swl.sk3"; + rel2.to_y: "ui.rect.bg"; + rel2.relative: 0.0 1.0; + align: 0.5 1.0; + } + description { + state: "landscape" 0.0; + inherit: "default" 0.0; + rel1.to: "ui.swl.sk3"; + rel1.relative: 0.0 0.0; + rel2.to: "ui.swl.sk3"; + rel2.relative: 1.0 0.0; + } + } + part { + name: "ui.swl.sk3"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: SK3_W SK_H; + fixed: 1 1; + rel1.to_x: "ui.rect.bg"; + rel1.relative: 1.0 1.0; + rel2.to: "ui.rect.bg"; + rel2.relative: 1.0 1.0; + align: 1.0 1.0; + } + } + } +} +group { + name: "peak_time_tofrom"; + + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + min: 460 101; + //max: 460 101; + //fixed: 1 1; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + color: 0 0 0 255; + } + } + part { + name: "img/bg/top"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 5; to: "bg"; } + image.normal: "01_dialog_field_input_top.png"; + } + } + part { + name: "img/bg/bottom"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -5; to: "bg"; } + rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; } + image.normal: "01_dialog_field_input_bottom.png"; + } + } + part { + name: "img/bg/middle"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 0; to: "img/bg/top"; } + rel2 { relative: 1.0 0.0; offset: 1 0; to: "img/bg/bottom"; } + image.normal: "01_dialog_field_input_middle.png"; + } + } + part { + name: "part/img/bg"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { to: "bg"; } + rel2 { to: "bg"; } + image.normal: "01_dialog_field_lighting.png"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + image.normal: "tw3_list_select.png"; + } + } + part { + name: "part/text/from"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 18 56; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_from"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + part { + name: "part/text/hour"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 170 55; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_hour"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + part { + name: "part/text/colon"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 195 55; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_colon"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + part { + name: "part/text/minute"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 200 55; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_minute"; align: 0.0 0.5; } + color: 80 80 80 255; + color2: COLOR_2; + } + } + part { + name: "part/text/ampm"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 230 55; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_ampm"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + } + programs { + program { + name: "prog/down/list"; + signal: "mouse,down,*"; + source: "bg"; + script { + set_state(PART:"part/img/bg", "pressed", 0.0); + } + } + program { + name: "prog/up/list"; + signal: "mouse,up,1"; + source: "bg"; + script { + set_state(PART:"part/img/bg", "default", 0.0); + } + } + } + } + + group { + name: "peak_time_timepicker"; + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + min: 460 250; + max: 460 250; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + color: 0 0 0 255; + } + } + part { + name: "part/swallow/timepicker"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to, "bg"; } + rel2 { relative: 1 1; to, "bg"; } + } + } + + } + } + + group { + images { + image: "08_textinput_panel_bg.png" COMP; + image: "08_textinput_btn_bg_1.png" COMP; + image: "08_textinput_btn_bg_2.png" COMP; + image: "08_textinput_btn_clear.png" COMP; + image: "08_textinput_btn_enter.png" COMP; + } + + name: "ui/picker/keypad"; + + parts { + part { + name: "ui.rect.bg"; + type: RECT; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + } + +#define PART_KEY(key_num, l, r, t, b, img, txt1, txt2, font_color) \ + part { \ + name: "ui.img.key"key_num; \ + description { \ + state: "default" 0.0; \ + rel1.relative: l t; \ + rel1.to: "ui.rect.bg"; \ + rel2.relative: r b; \ + rel2.to: "ui.rect.bg"; \ + image.normal: img; \ + image.border: 3 3 3 3; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "dim" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 127; \ + } \ + } \ + part { \ + name: "ui.txt.key"key_num; \ + mouse_events: 0; \ + type: TEXT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + fixed: 1 1; \ + rel1.to: "ui.img.key"key_num; \ + rel2.to: "ui.img.key"key_num; \ + color: font_color; \ + color2: 0 0 0 255; \ + visible: 1; \ + text { \ + font: "GP_Latin"; \ + size: 34; \ + min: 1 1; \ + align: 0.5 0.5; \ + text: txt1; \ + } \ + } \ + } + + + PART_KEY("0", KEY0_REL_L, KEY0_REL_R, KEY0_REL_T, KEY0_REL_B, + "08_textinput_btn_bg_2.png", "1", "1", 0 0 0 255) + PART_KEY("1", KEY1_REL_L, KEY1_REL_R, KEY1_REL_T, KEY1_REL_B, + "08_textinput_btn_bg_2.png", "2", "2", 0 0 0 255) + PART_KEY("2", KEY2_REL_L, KEY2_REL_R, KEY2_REL_T, KEY2_REL_B, + "08_textinput_btn_bg_2.png", "3", "3", 0 0 0 255) + PART_KEY("clr", KEY3_REL_L, KEY3_REL_R, KEY3_REL_T, KEY3_REL_B, + "08_textinput_btn_clear.png", "", "", 255 255 255 255) + + PART_KEY("3", KEY4_REL_L, KEY4_REL_R, KEY4_REL_T, KEY4_REL_B, + "08_textinput_btn_bg_2.png", "4", "4", 0 0 0 255) + PART_KEY("4", KEY5_REL_L, KEY5_REL_R, KEY5_REL_T, KEY5_REL_B, + "08_textinput_btn_bg_2.png", "5", "5", 0 0 0 255) + PART_KEY("5", KEY6_REL_L, KEY6_REL_R, KEY6_REL_T, KEY6_REL_B, + "08_textinput_btn_bg_2.png", "6", "6", 0 0 0 255) + PART_KEY("ret", KEY7_REL_L, KEY7_REL_R, KEY7_REL_T, KEY7_REL_B, + "08_textinput_btn_enter.png", "", "", 255 255 255 255) + + PART_KEY("6", KEY8_REL_L, KEY8_REL_R, KEY8_REL_T, KEY8_REL_B, + "08_textinput_btn_bg_2.png", "7", "7", 0 0 0 255) + PART_KEY("7", KEY9_REL_L, KEY9_REL_R, KEY9_REL_T, KEY9_REL_B, + "08_textinput_btn_bg_2.png", "8", "8", 0 0 0 255) + PART_KEY("8", KEY10_REL_L, KEY10_REL_R, KEY10_REL_T, KEY10_REL_B, + "08_textinput_btn_bg_2.png", "9", "9", 0 0 0 255) + PART_KEY("abc", KEY11_REL_L, KEY11_REL_R, KEY11_REL_T, KEY11_REL_B, + "08_textinput_btn_bg_1.png", "abc", "abc", 255 255 255 90) + + PART_KEY("9", KEY12_REL_L, KEY12_REL_R, KEY12_REL_T, KEY12_REL_B, + "08_textinput_btn_bg_2.png", "*", "10", 0 0 0 255) + PART_KEY("10", KEY13_REL_L, KEY13_REL_R, KEY13_REL_T, KEY13_REL_B, + "08_textinput_btn_bg_2.png", "0", "11", 0 0 0 255) + PART_KEY("11", KEY14_REL_L, KEY14_REL_R, KEY14_REL_T, KEY14_REL_B, + "08_textinput_btn_bg_2.png", "#", "12", 0 0 0 255) + PART_KEY("lang", KEY15_REL_L, KEY15_REL_R, KEY15_REL_T, KEY15_REL_B, + "08_textinput_btn_bg_1.png", "lang", "lang", 255 255 255 90) + } + + programs { + program { + name: "numpad"; + signal: "numpad"; + source: "prog"; + action: STATE_SET "default" 0.0; + target: "ui.txt.key0"; + target: "ui.txt.key1"; + target: "ui.txt.key2"; + target: "ui.txt.key3"; + target: "ui.txt.key4"; + target: "ui.txt.key5"; + target: "ui.txt.key6"; + target: "ui.txt.key7"; + target: "ui.txt.key8"; + target: "ui.txt.key9"; + target: "ui.txt.key10"; + target: "ui.txt.key11"; + } + +#define PRG_KEY_CLICKED(key_num) \ + program { \ + name: "key"key_num"_down"; \ + signal: "mouse,down,1"; \ + source: "ui.img.key"key_num; \ + action: STATE_SET "dim" 0.0; \ + target: "ui.img.key"key_num; \ + } \ + program { \ + name: "key"key_num"_up"; \ + signal: "mouse,up,1"; \ + source: "ui.img.key"key_num; \ + action: STATE_SET "default" 0.0; \ + target: "ui.img.key"key_num; \ + after: "key"key_num"_clicked"; \ + } \ + program { \ + name: "key"key_num"_clicked"; \ + signal: "mouse,clicked,1"; \ + source: "ui.img.key"key_num; \ + action: SIGNAL_EMIT "clicked" key_num; \ + } \ + + PRG_KEY_CLICKED("0"); + PRG_KEY_CLICKED("1"); + PRG_KEY_CLICKED("2"); + PRG_KEY_CLICKED("3"); + PRG_KEY_CLICKED("4"); + PRG_KEY_CLICKED("5"); + PRG_KEY_CLICKED("6"); + PRG_KEY_CLICKED("7"); + PRG_KEY_CLICKED("8"); + PRG_KEY_CLICKED("9"); + PRG_KEY_CLICKED("10"); + PRG_KEY_CLICKED("11"); + PRG_KEY_CLICKED("clr"); + PRG_KEY_CLICKED("ret"); + } + } + + group { + name: "peak_time_tofrom_digital"; + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + min: 460 101; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + color: 0 0 0 255; + } + } + part { + name: "img/bg/top"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 5; to: "bg"; } + image.normal: "01_dialog_field_input_top.png"; + } + } + part { + name: "img/bg/bottom"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -5; to: "bg"; } + rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; } + image.normal: "01_dialog_field_input_bottom.png"; + } + } + part { + name: "img/bg/middle"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 0; to: "img/bg/top"; } + rel2 { relative: 1.0 0.0; offset: 1 0; to: "img/bg/bottom"; } + image.normal: "01_dialog_field_input_middle.png"; + } + } + part { + name: "part/img/bg"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { to: "bg"; } + rel2 { to: "bg"; } + image.normal: "01_dialog_field_lighting.png"; + } + } + part { + name: "part/text/from"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 18 56; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_from"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + part { + name: "part/button/hour"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 120 10 ; to: "bg"; } + rel2 { relative: 0.0 0.0; offset: 200 90; to: "bg"; } + } + } + part { + name: "part/text/colon"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 205 55; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_colon"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + part { + name: "part/button/minute"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + //rel1 { relative: 290/460 10/101; to: "bg"; } + //rel2 { relative: 370/460 90/101; to: "bg"; } + rel1 { relative: 0.0 0.0; offset: 215 10 ; to: "bg"; } + rel2 { relative: 0.0 0.0; offset: 295 90; to: "bg"; } + } + } + part { + name: "part/button/ampm"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + //rel1 { relative: 390/460 10/101; to: "bg"; } + //rel2 { relative: 470/460 90/110; to: "bg"; } + rel1 { relative: 0.0 0.0; offset: 305 10 ; to: "bg"; } + rel2 { relative: 0.0 0.0; offset: 385 90; to: "bg"; } + } + } + } + } + + + group { + images { + image: "01_dialogue_field_bg.png" COMP; + image: "01_picker_input_bg.png" COMP; + image: "01_hybrid_spinner_bg.png" COMP; + // image: "01_picker_time_colon_bg.png" COMP; + } + name: "ui/picker/base"; + parts { + part { + name: "ui.rect.bg"; + type: RECT; + description { + state: "default" 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 0 0 0 0; + } + } + part { + name: "ui.rect.cover"; + type: RECT; + description { + state: "default" 0.0; + rel1.to: "ui.rect.bg"; + rel1.relative: 0.0 COVER_REL_T; + rel2.to: "ui.rect.bg"; + color: 0 0 0 0; + } + } + + part { + name: "ui.img.bg.disp"; + scale: 1; + mouse_events: 1; + description { + min: 0 DISP_BG_H; + fixed: 1 1; + state: "default" 0.0; + rel1.relative: DISP_BG_REL_L DISP_BG_REL_T; + rel1.to: "ui.rect.bg"; + rel2.relative: DISP_BG_REL_R DISP_BG_REL_B; + rel2.to: "ui.rect.bg"; + image.normal: "01_dialogue_field_bg.png"; + image.border: 4 4 4 4; + align: 0.5 0.0; + } + } + /*part { + name: "ui.img.bg.disp2"; + scale: 1; + mouse_events: 1; + description { + min: 0 DISP_BG_H; + fixed: 1 1; + state: "default" 0.0; + rel1.to: "ui.img.bg.disp"; + rel2.to: "ui.img.bg.disp"; + image.normal: "01_dialogue_field_bg.png"; + visible: 0; + image.border: 4 4 4 4; + align: 0.5 0.0; + } + description { + min: 0 DISP_BG_H; + fixed: 1 1; + state: "hybrid" 0.0; + inherit: "default" 0.0; + rel1.to: "ui.img.bg.disp"; + rel1.relative: 0.0 1.0; + rel2.to: "ui.img.bg.disp"; + rel2.relative: 1.0 1.0; + visible: 1; + } + }*/ + } +} + diff --git a/data/edc/inc.myaccount_sns_sync_interval.edc b/data/edc/inc.myaccount_sns_sync_interval.edc new file mode 100755 index 0000000..88d79ba --- /dev/null +++ b/data/edc/inc.myaccount_sns_sync_interval.edc @@ -0,0 +1,31 @@ +group +{ + name: "sns_sync_interval"; + min: MAIN_W MAIN_H; + + parts { + part { name: "rect"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + part { + name: "body"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + //rel1 { relative: 0.0 88/800; to, "rect"; } + rel1 { relative: 0.0 100/800; to, "rect"; } + rel2 { relative: 1.0 1.0; to, "rect"; } + } + } + } +} diff --git a/data/edc/inc.myaccount_sync_settings_with_seven.edc b/data/edc/inc.myaccount_sync_settings_with_seven.edc new file mode 100755 index 0000000..3f056a5 --- /dev/null +++ b/data/edc/inc.myaccount_sync_settings_with_seven.edc @@ -0,0 +1,549 @@ +#define POSX_SUN (24/480) +#define POSX_MON (88/480) +#define POSX_TUE (152/480) +#define POSX_WED (216/480) +#define POSX_THU (280/480) +#define POSX_FRI (344/480) +#define POSX_SAT (408/480) +#define POSY_DAY (43/99) +#define ALARM_LIST_H 90 + +#define COLOR_1 255 255 255 255 +#define COLOR_2 0 0 0 255 + +#define WEEKLY_UP_H (90/151) +#define WEEKLY_DOWN_H (61/151) + + +group { + name: "sync-settings-with-seven"; + min: MAIN_W MAIN_H; + + parts { + part { name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.9; to: "background"; } + rel2 { relative: 1.0 1.0; to: "background"; } + + } + } + part + { + name: "titlebar"; + type: SWALLOW; + mouse_events: 0; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "background"; } + rel2 { relative: 1.0 TITLE_BAR_H; to: "background"; } + + } + } + } + } + + group { + name: "repeat"; + + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + min: 0 ALARM_LIST_H; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + color: 0 0 0 0; + } + } + part { + name: "img/bg/top"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 5; to: "bg"; } + image.normal: "01_dialog_field_input_top.png"; + } + } + part { + name: "img/bg/bottom"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -5; to: "bg"; } + rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; } + image.normal: "01_dialog_field_input_bottom.png"; + } + } + part { + name: "img/bg/middle"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 0; to: "img/bg/top"; } + rel2 { relative: 1.0 0.0; offset: 1 0; to: "img/bg/bottom"; } + image.normal: "01_dialog_field_input_middle.png"; + } + } + part { + name: "part/img/bg"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { to: "bg"; } + rel2 { to: "bg"; } + image.normal: "01_dialog_field_lighting.png"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + image.normal: "tw3_list_select.png"; + } + } + part { + name: "part/text/top"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 18 10; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 40; to: "bg"; } + text { text_class: "tc_top"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } +#define PART_DAY(title, pass, rel1x, rely, where) \ + part { \ + name: "part/rect/"title; \ + type: RECT; \ + mouse_events: pass; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1x rely; offset: 0 0; to: where; } \ + rel2 { relative: rel1x rely; offset: 50 50; to: where; } \ + color: 0 0 0 0; \ + } \ + } \ + part { \ + name: "part/img/"title; \ + type: IMAGE; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + rel1 { to: "part/rect/"title; } \ + rel2 { to: "part/rect/"title; } \ + image.normal: "50_repeat_btn.png"; \ + } \ + description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + image.normal: "50_repeat_btn_Press.png"; \ + } \ + } \ + part { \ + name: "part/text/"title; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + rel1 { to: "part/rect/"title; }; \ + rel2 { to: "part/rect/"title; }; \ + text { text_class: "tc_day"; align: 0.5 0.5; } \ + color: COLOR_1; \ + } \ + description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + color: COLOR_2; \ + } \ + } + + PART_DAY("sun", 0, POSX_SUN, POSY_DAY, "bg") + PART_DAY("mon", 0, POSX_MON, POSY_DAY, "bg") + PART_DAY("tue", 0, POSX_TUE, POSY_DAY, "bg") + PART_DAY("wed", 0, POSX_WED, POSY_DAY, "bg") + PART_DAY("thu", 0, POSX_THU, POSY_DAY, "bg") + PART_DAY("fri", 0, POSX_FRI, POSY_DAY, "bg") + PART_DAY("sat", 0, POSX_SAT, POSY_DAY, "bg") + } + programs { + program { + name: "prog/down/list"; + signal: "mouse,down,*"; + source: "bg"; + script { + set_state(PART:"part/img/bg", "pressed", 0.0); + } + } + program { + name: "prog/up/list"; + signal: "mouse,up,1"; + source: "bg"; + script { + set_state(PART:"part/img/bg", "default", 0.0); + } + } +/* program { + name: "prog/move/list"; + signal: "mouse,move"; + source: "bg"; + script { + set_state(PART:"part/img/bg", "default", 0.0); + } + } +*/ program { + name: "prog/clicked/list"; + signal: "mouse,clicked,1"; + source: "bg"; + script { + emit("clicked", "repeat"); + } + } + program + { + name: "peakday_pressed"; + signal: "mouse,clicked,1"; + source: "bg"; + action: SIGNAL_EMIT "peakday_pressed" "repeat" ; + } + +#define PROG_DAY(title, sig) \ + program { \ + name: "prog/down/"title; \ + signal: "mouse,down,*"; \ + source: "part/rect/"title; \ + script { \ + set_state(PART:"part/img/"title, "pressed", 0.0); \ + set_state(PART:"part/text/"title, "pressed", 0.0); \ + } \ + } \ + program { \ + name: "prog/up/"title; \ + signal: "mouse,up,1"; \ + source: "part/rect/"title; \ + script { \ + set_state(PART:"part/img/"title, "default", 0.0); \ + set_state(PART:"part/text/"title, "default", 0.0); \ + } \ + } \ + program { \ + name: "prog/clicked/"title; \ + signal: "mouse,clicked,1"; \ + source: "part/rect/"title; \ + script { \ + emit("clicked", sig); \ + } \ + } + PROG_DAY("sun", "0") + PROG_DAY("mon", "1") + PROG_DAY("tue", "2") + PROG_DAY("wed", "3") + PROG_DAY("thu", "4") + PROG_DAY("fri", "5") + PROG_DAY("sat", "6") + } + } + group { + name: "page/repeat"; + + parts { + part { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + color: 0 0 0 255; + } + } + } + } + + + group { + name: "list/repeat"; + + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + min: 0 ALARM_LIST_H; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0; } + rel2 { relative: 1.0 1.0; offset: -9 -1; } + color: 0 0 0 0; + } + } + part { + name: "img/bg/top"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 5; to: "bg"; } + image.normal: "01_dialog_field_input_top.png"; + } + } + part { + name: "img/bg/bottom"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -5; to: "bg"; } + rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; } + image.normal: "01_dialog_field_input_bottom.png"; + } + } + part { + name: "img/bg/middle"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 0; to: "img/bg/top"; } + rel2 { relative: 1.0 0.0; offset: 1 0; to: "img/bg/bottom"; } + image.normal: "01_dialog_field_input_middle.png"; + } + } + part { + name: "part/img/bg"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { to: "bg"; } + rel2 { to: "bg"; } + image.normal: "01_dialog_field_lighting.png"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + image.normal: "tw3_list_select.png"; + } + } + part { + name: "part/swl/button"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + color: 0 0 0 0; + rel1 { relative: 1.0 0.5; offset: -79 -25; to: "bg"; } + rel2 { relative: 1.0 0.5; offset: -29 24; to: "bg"; } + } + } + part { + name: "part/text/middle"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 24 0; to: "bg"; } + rel2 { relative: 0.0 1.0; offset: 0 0 ; to_x: "part/swl/button"; } + text { text_class: "tc_middle"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + } + } + group { + name: "list/repeat/weekly"; + + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + min: 0 152; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0; } + rel2 { relative: 1.0 1.0; offset: -9 -1; } + color: 0 0 0 0; + } + } + part { + name: "img/bg/top"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: 0 5; to: "bg"; } + image.normal: "01_dialog_field_input_top.png"; + } + } + part { + name: "img/bg/bottom"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -5; to: "bg"; } + rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; } + image.normal: "01_dialog_field_input_bottom.png"; + } + } + part { + name: "img/bg/middle"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 0; to: "img/bg/top"; } + rel2 { relative: 1.0 0.0; offset: 1 0; to: "img/bg/bottom"; } + image.normal: "01_dialog_field_input_middle.png"; + } + } + part { + name: "part/img/bg"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { to: "bg"; } + rel2 { to: "bg"; } + image.normal: "01_dialog_field_lighting.png"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + image.normal: "tw3_list_select.png"; + } + } + part { + name: "part/rect/up"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 WEEKLY_UP_H; to: "bg"; } + } + } + part { + name: "part/rect/down"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + rel1 { relative: 0.0 1.0; to: "part/rect/up"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + } + } + part { + name: "part/swl/button"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + color: 0 0 0 0; + rel1 { relative: 1.0 0.0; offset: -79 25; to: "part/rect/up"; } + rel2 { relative: 1.0 0.0; offset: -29 75; to: "part/rect/up"; } + } + } + part { + name: "part/text/middle"; + type: TEXT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 24 0; to: "part/rect/up"; } + rel2 { relative: 0.0 1.0; offset: 0 0 ; to_x: "part/swl/button"; to_y: "part/rect/up"; } + text { text_class: "tc_middle"; align: 0.0 0.5; } + color: COLOR_1; + color2: COLOR_2; + } + } + + PART_DAY("sun", 1, POSX_SUN, 0.0, "part/rect/down") + PART_DAY("mon", 1, POSX_MON, 0.0, "part/rect/down") + PART_DAY("tue", 1, POSX_TUE, 0.0, "part/rect/down") + PART_DAY("wed", 1, POSX_WED, 0.0, "part/rect/down") + PART_DAY("thu", 1, POSX_THU, 0.0, "part/rect/down") + PART_DAY("fri", 1, POSX_FRI, 0.0, "part/rect/down") + PART_DAY("sat", 1, POSX_SAT, 0.0, "part/rect/down") + + part { + name: "part/rect/mask"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { to: "bg"; } + rel2 { to: "bg"; } + color: 0 0 0 0; + } + description { + state: "on/mask" 0.0; + inherit: "default" 0.0; + color: 0 0 0 150; + } + } + } + programs { + PROG_DAY("sun", "0") + PROG_DAY("mon", "1") + PROG_DAY("tue", "2") + PROG_DAY("wed", "3") + PROG_DAY("thu", "4") + PROG_DAY("fri", "5") + PROG_DAY("sat", "6") + + program { + name: "prog/on/mask"; + signal: "on"; + source: "part/rect/mask"; + script { + set_state(PART:"part/rect/mask", "on/mask", 0.0); + } + } + program { + name: "prog/off/mask"; + signal: "off"; + source: "part/rect/mask"; + script { + set_state(PART:"part/rect/mask", "off/mask", 0.0); + } + } + } + } + \ No newline at end of file diff --git a/data/edc/inc.myaccount_view_priority.edc b/data/edc/inc.myaccount_view_priority.edc new file mode 100755 index 0000000..dfb2be4 --- /dev/null +++ b/data/edc/inc.myaccount_view_priority.edc @@ -0,0 +1,32 @@ +group +{ + name: "view_priority"; + min: MAIN_W MAIN_H; + + parts { + part { name: "rect"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part { + name: "body"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + //rel1 { relative: 0.0 88/800; to, "rect"; } + rel1 { relative: 0.0 100/800; to, "rect"; } + rel2 { relative: 1.0 1.0; to, "rect"; } + } + } + } +} \ No newline at end of file diff --git a/data/edc/inc.myaccount_without_seven.edc b/data/edc/inc.myaccount_without_seven.edc new file mode 100755 index 0000000..f23ddc3 --- /dev/null +++ b/data/edc/inc.myaccount_without_seven.edc @@ -0,0 +1,510 @@ + + group { + name: "addaccount_without_seven_ui"; + min: MAIN_W MAIN_H; + + parts { + part { name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.9; to: "background"; } + rel2 { relative: 1.0 1.0; to: "background"; } + + } + } + part + { + name: "titlebar"; + type: SWALLOW; + mouse_events: 0; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "background"; } + rel2 { relative: 1.0 0.1; to: "background"; } + + } + } + + part + { + name: "body"; + type: SWALLOW; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 85/MAIN_H; to, "background"; } + rel2 { relative: 1.0 1.0; to, "background"; } + } + } + } + } + +group { + name: "without-seven-account-entries1"; + min: 470 25+52+27; + max: 470 25+52+27; + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + color: 74 74 74 255; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + } + } + + part { + name: "background-strip"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0; to: bg; } + rel2 { relative: 1.0 1.0; offset: -10 0; to: bg; } + image { normal: "myaccount_bg.png";} + } + } + + part { + name: "bada"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 25; to: "background-strip"; } + rel2 { relative: 0.0 0.0; offset: 14+52 25+52; to: "background-strip"; } + image { normal: "bada.png";} + } + + } + + part { + name: "name"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 0; to: "background-strip"; } + text { text: "bada"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + } + } + + + group { + name: "without-seven-account-entries2"; + min: 470 110; + max: 470 110; + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + color: 74 74 74 255; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + } + } + + part { + name: "Web Accounts"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0.0; to: "bg"; } + text { text: "Web Accounts"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part + { + name: "Web-Sync-schedule"; + type: SWALLOW; + mouse_events: 1; + description + { + min: 106 50; + max: 106 50; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 364 10; to: "bg"; } + rel2 { relative: 0.0 0.0; offset: 470 60; to: "bg"; } + } + } + + part { + name: "background-strip1"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 70; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 170; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + + part { + name: "without-seven-user-name1"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 35; to: "background-strip1"; } + text { text: "Joe"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "without-seven-email-id1"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 90; to: "background-strip1"; } + text { text: "Joe@hotmail.com"; font: "GP_Latin"; size: 20; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + + part { + name: "background-strip2"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 170; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 270; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + + part { + name: "user-name2"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 135; to: "background-strip2"; } + text { text: "Brin"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "email-id2"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 190; to: "background-strip2"; } + text { text: "brin@yahoo.com"; font: "GP_Latin"; size: 20; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + + + + part { + name: "Exchange ActiveSync"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 268+146+5+38+78; to: "bg"; } + text { text: "Exchange ActiveSync"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part + { + name: "Sync schedule"; + //type: TEXT; + type: SWALLOW; + mouse_events: 1; + description + { + min: 106 50; + max: 106 50; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 354 268+146+5+38+52; to: "bg"; } + } + } + + + part { + name: "background-strip4"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 270+50+10+10; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 370+50+10; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + + + + part { + name: "Exchange ActiveSync-name1"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 300; to: "background-strip4"; } + text { text: "Joe"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "Exchange ActiveSync-userid1"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 295+55; to: "background-strip4"; } + text { text: "joe@hotmail.com"; font: "GP_Latin"; size: 20; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + + + + part { + name: "background-strip5"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 370+50+10; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 370+50+10+100; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + + + part { + name: "Exchange ActiveSync-name2"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 328+100-33; to: "background-strip5"; } + text { text: "Brin"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "Exchange ActiveSync-userid2"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 328+100-33+55; to: "background-strip5"; } + text { text: "brin@yahoo.com"; font: "GP_Latin"; size: 20; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + + + + part { + name: "Social Networks"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 268+146+5+38+90+510; to: "bg"; } + text { text: "Social Networks"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part + { + name: "Social-networks-Sync-schedule"; + //type: TEXT; + type: SWALLOW; + mouse_events: 1; + description + { + min: 106 50; + max: 106 50; + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 354 268+146+5+38+78+495; to: "bg"; } + } + } + + + part { + name: "background-strip6"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 268+146+5+38+144; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 368+146+5+38+144; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + + + + part { + name: "social-network-img1"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 22; to: "background-strip6"; } + rel2 { relative: 0.0 0.0; offset: 14+52 25+52; to: "background-strip6"; } + image { normal: "twitter.png";} + } + } + + part { + name: "social-network-name1"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 540; to: "background-strip6"; } + text { text: "Twitter"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "social-network-userid1"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 540+65; to: "background-strip6"; } + text { text: "terry.joo"; font: "GP_Latin"; size: 20; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + + + + part { + name: "background-strip7"; + type: IMAGE; + mouse_events: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 368+146+5+38+134; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 468+146+5+38+134; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + + part { + name: "bada4"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 22; to: "background-strip7"; } + rel2 { relative: 0.0 0.0; offset: 14+52 25+52; to: "background-strip7"; } + image { normal: "facebook.png";} + } + } + + part { + name: "social-network-name2"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 640; to: "background-strip7"; } + text { text: "Facebook"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "social-network-userid2"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 640+65; to: "background-strip7"; } + text { text: "rohit.sahay"; font: "GP_Latin"; size: 20; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + } + } + + diff --git a/data/edc/inc.pre-set.edc b/data/edc/inc.pre-set.edc new file mode 100755 index 0000000..e525d56 --- /dev/null +++ b/data/edc/inc.pre-set.edc @@ -0,0 +1,455 @@ +#define MAIN_W 480 +#define MAIN_H 800 +#define TITLE_BAR_H (100/800) + +images +{ + image: "bg.png" LOSSY 99; + image: "gmail.png" LOSSY 99; + image: "01_button_on_lighting.png" LOSSY 99; + image: "01_on_off_button_on.png" LOSSY 99; + image: "01_on_off_button.png" LOSSY 99; +} + + + group { + name: "preset-web"; + min: MAIN_W MAIN_H; + + parts { + part { name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + part { name: "body"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + //rel1 { relative: 0.0 80/MAIN_H; offset: 0 0; } + rel1 { relative: 0.0 TITLE_BAR_H/MAIN_H; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + } + } + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.9; to: "background"; } + rel2 { relative: 1.0 1.0; to: "background"; } + + } + } + part + { + name: "titlebar"; + type: SWALLOW; + mouse_events: 0; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "background"; } + rel2 { relative: 1.0 TITLE_BAR_H; to: "background"; } + + } + } + } + } + +#if 0 + + group { + name: "account-information"; + min: 480 102; + //max: 480 800-88; + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + color: 74 74 74 255; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: 0 0; } + } + } + + part { + name: "background-account-info1"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 102; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + part { + name: "gmail-icon"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14 25; to: "background-account-info1"; } + rel2 { relative: 0.0 0.0; offset: 14+52 25+52; to: "background-account-info1"; } + image { normal: "gmail.png";} + } + + } + + part { + name: "gmail-name"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 0; to: "background-account-info1"; } + text { text: "sean"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + //text { text: ""; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "gmail-id"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 14+52+10 65; to: "background-account-info1"; } + text { text: "sean@gmail.com"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 0 255; + } + } + + part { + name: "background-account-info2"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 103; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 205; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + part { + name: "gmail-id"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 103; to: "background-account-info2"; } + //text { text: "sean@gmail.com"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + text { text: ""; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "background-account-info3"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 205+8-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 205+8+99-102; to: "bg"; } + image { normal: "bg.png";} + } + } + part { + name: "email-button-on-lighting"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 365 205+8-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 205+8+99-102; to: "bg"; } + image { normal: "01_button_on_lighting.png";} + } + } + part { + name: "email-on-off"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "email-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "email-button-on-lighting"; } + image { normal: "01_on_off_button_on.png";} + } + description { + state: "off" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "email-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "email-button-on-lighting"; } + image { normal: "01_on_off_button.png";} + } + + } + + + part { + name: "email"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 213-102; to: "background-account-info3"; } + text { text: "Email"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "background-account-info4"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 312+2-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 312+2+99-102; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + part { + name: "im-button-on-lighting"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 365 312+2-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 312+2+99-102; to: "bg"; } + image { normal: "01_button_on_lighting.png";} + } + } + part { + name: "im-on-off"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "im-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "im-button-on-lighting"; } + image { normal: "01_on_off_button_on.png";} + } + description { + state: "off" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "im-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "im-button-on-lighting"; } + image { normal: "01_on_off_button.png";} + } + + } + part { + name: "Instant-messenger"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 314-102; to: "background-account-info4"; } + text { text: "Instant messenger"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "background-account-info5"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 413+2-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 413+2+99-102; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + part { + name: "contact-sync-button-on-lighting"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 365 413+2-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 413+2+99-102; to: "bg"; } + image { normal: "01_button_on_lighting.png";} + } + } + part { + name: "contact-sync-on-off"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "contact-sync-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "contact-sync-button-on-lighting"; } + image { normal: "01_on_off_button.png";} + } + description { + state: "on" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "contact-sync-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "contact-sync-button-on-lighting"; } + image { normal: "01_on_off_button_on.png";} + } + + } + + + part { + name: "contact-sync"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 415-102; to: "background-account-info5"; } + text { text: "Contact sync"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + part { + name: "background-account-info6"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 514+2-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 514+2+99-102; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + part { + name: "calendar-sync-button-on-lighting"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 365 514+2-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 514+2+99-102; to: "bg"; } + image { normal: "01_button_on_lighting.png";} + } + } + part { + name: "calendar-sync-on-off"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "calendar-sync-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "calendar-sync-button-on-lighting"; } + image { normal: "01_on_off_button.png";} + } + description { + state: "on" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "calendar-sync-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "calendar-sync-button-on-lighting"; } + image { normal: "01_on_off_button_on.png";} + } + + } + part { + name: "calendar-sync"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 516-102; to: "background-account-info6";} + text { text: "Calendar sync"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + part { + name: "background-account-info7"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 623-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 623+104-102; to: "bg"; } + image { normal: "myaccount_bg.png";} + } + } + + part { + name: "sync-schedule-button-on-lighting"; + type: IMAGE; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 365 623-102; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -10 623+104-102; to: "bg"; } + image { normal: "01_button_on_lighting.png";} + } + } + part { + name: "sync-schedule-on-off"; + type: IMAGE; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "sync-schedule-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "sync-schedule-button-on-lighting"; } + image { normal: "01_on_off_button_on.png";} + } + description { + state: "off" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 24; to: "sync-schedule-button-on-lighting"; } + rel2 { relative: 0.0 0.0; offset: 78 74; to: "sync-schedule-button-on-lighting"; } + image { normal: "01_on_off_button.png";} + } + } + part { + name: "sync-schedule"; + type: TEXT; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 28 623-102; to: "background-account-info7";} + text { text: "Sync schedule"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 255 255 255 255; + } + } + + } + programs { + program { + /* + name: "on-off-email"; + source: "email-button-on-lighting"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "email-on-off-clicked" "email-button-on-lighting"; + */ + + name: "on-off-email"; + source: "email-button-on-lighting"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "on-off-email" ""; + } + } +} + + +#endif \ No newline at end of file diff --git a/data/edc/inc.preset_email.edc b/data/edc/inc.preset_email.edc new file mode 100755 index 0000000..d640d8b --- /dev/null +++ b/data/edc/inc.preset_email.edc @@ -0,0 +1,105 @@ + + group { + name: "pre-set-email"; + min: MAIN_W MAIN_H; + + parts { + part { name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 0; + } + } + + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.9; to: "background"; } + rel2 { relative: 1.0 1.0; to: "background"; } + + } + } + part + { + name: "titlebar"; + type: SWALLOW; + mouse_events: 0; + + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "background"; } + rel2 { relative: 1.0 TITLE_BAR_H; to: "background"; } + + } + } + } + } + + group { + name: "preset_email_setting_entries"; + + parts { + + part { name: "bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + min: 480 112; + max: 480 112; + color:255 255 255 0; + visible: 0; + } + } + + part { name: "img"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0; to: bg; } + rel2 { relative: 1.0 1.0; offset: -10 -8; to: bg; } + image { normal: "myaccount_bg.png";} + } + } + + part { name: "name"; + type: TEXT; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 14/480 0.05; offset: 18 0; to: bg; } + rel2 { relative: 0.8 0.30; to: bg; } + // text { text: "Account name"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + text { font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 146 146 146 255; + } + } + + part { name: "entry"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: default 0.0; + rel1 { relative: 14/480 0.35; offset: 18 0; to: bg; } + rel2 { relative: 0.9 0.7; to: bg; } + } + } + } + } + diff --git a/data/edc/inc.sns-account.edc b/data/edc/inc.sns-account.edc new file mode 100755 index 0000000..4b0a3ef --- /dev/null +++ b/data/edc/inc.sns-account.edc @@ -0,0 +1,117 @@ +group +{ + name: "snsaccount_ui"; + min: MAIN_W MAIN_H; + + parts { + part { name: "rect"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + //color: 74 74 74 255; + color: 0 0 0 255; + } + } + + part + { + + name, "titlebar"; + type, SWALLOW; + mouse_events, 0; + description + { + state, "default" 0.0; + rel1 { relative, 0.0 0.0; to, "rect";} + rel2 { relative, 1.0 82/800; to, "rect";} + } + } + + part + { + name: "softkey"; + type: SWALLOW; + mouse_events: 1; + + description + { + state: "default" 0.0; + color: 0 0 0 128; + rel1 { relative: 0.0 0.9; to: "rect"; } + rel2 { relative: 1.0 1.0; to: "rect"; } + } + } + } +} + group { + name: "sns_account_entries"; + parts { + part { name: "bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + min: 480 104; + max: 480 104; + color:255 255 255 0; + visible: 0; + } + } + + part { name: "img"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 10 0; to: bg; } + rel2 { relative: 1.0 1.0; offset: -10 0; to: bg; } + image { normal: "myaccount_bg.png";} + } + } + + part { name: "name"; + type: TEXT; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 14/480 0.05; to: bg; } + rel2 { relative: 0.8 0.30; to: bg; } + // text { text: "Account name"; font: "GP_Latin"; size: 24; align: 0.0 0.5;} + text { font: "GP_Latin"; size: 24; align: 0.0 0.5;} + color: 146 146 146 255; + } + } + + part { + name: "entry"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: default 0.0; + rel1 { relative: 14/480 0.35; to: bg; } + rel2 { relative: 0.9 0.7; to: bg; } + } + } + + /*part { + name: "button"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: default 0.0; + min: 470 50; + max: 470 50; + rel1 { relative: 14/480 0.70; to: bg; } + } + }*/ + } + } + + diff --git a/data/edc/myaccount.edc b/data/edc/myaccount.edc new file mode 100755 index 0000000..7604d35 --- /dev/null +++ b/data/edc/myaccount.edc @@ -0,0 +1,172 @@ +collections { + +#if 0 +#define MAIN_W 480 +#define MAIN_H 800 +#endif + +#define MAIN_W 720 +#define MAIN_H 1280 + +#define INDICATOR_H 27 +#define NAVI_H 67 + + group { + name:"account_list"; + + parts + { +#if 0 + part + { + name: "accountlist.background"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + //color: 220 229 220 255; + color: 0 0 0 0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + } + } + part { + name: "indicator"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 INDICATOR_H; + fixed: 0 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 0.0; } + align: 0.5 0.0; + color: 0 0 0 0; + } + } +#endif + part + { + name: "accountlist.genlist"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + } + } + + part + { + name: "elm.swallow.label"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.03 0.25;} + rel2 { relative: 1.0 0.35; } + } + } + + } + } + + group { + name:"sentinel"; + + parts + { + part + { + name: "sentinel.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + color: 0 0 0 0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + } + } + + part + { + name: "sentinel.help.label"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.03 0.0;} + rel2 { relative: 1.0 0.25; } + } + } + + part + { + name: "sentinel.sp.icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.03 0.25; } + rel2 { relative: 0.08 0.32; } + } + } + + part + { + name: "sentinel.spname.label"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.08 0.25;} + rel2 { relative: 0.9 0.32; } + } + } + + part + { + name: "sentinel.addsamsung.icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.9 0.25; } + rel2 { relative: 1.0 0.32; } + } + } + + + part + { + name: "sentinel.description.label"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.03 0.32;} + rel2 { relative: 1.0 0.62; } + } + } + + part + { + name: "sentinel.addaccount.button"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.03 0.62;} + rel2 { relative: 0.97 0.72; } + } + } + + + } +} + +} + diff --git a/data/edc/myaccount_button.edc b/data/edc/myaccount_button.edc new file mode 100755 index 0000000..d0f27cc --- /dev/null +++ b/data/edc/myaccount_button.edc @@ -0,0 +1,779 @@ +collections { + +#if 0 +#define MAIN_W 480 +#define MAIN_H 800 +#endif +#define MAIN_W 720 +#define MAIN_H 1280 + +#define INDICATOR_H 27 +#define NAVI_H 67 + +#define ACCOUNT_GENLIST_PART_BG_COLOR_INC 246 245 237 255 +#define ACCOUNT_GENLIST_PART_BOTTOM_LINE_INC 212 212 212 255 +#define ACCOUNT_GENLIST_PART_TEXT_COLOR_INC 0 0 0 255 +#define ACCOUNT_GENLIST_PART_TEXT_SELECTED_COLOR_INC 225 225 225 255 +#define ACCOUNT_GENLIST_PART_SUB_TEXT_COLOR_INC 0 0 0 255 + + styles { + style { name: "textblock_style_variable_height"; + base: "font=SLP:style=Roman font_size=32 align=left color=#000000 wrap=word"; + tag: "br" "\n"; + tag: "hilight" "+ font=SLP:style=Bold"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "tab" "\t"; + } + + style { name: "subtextblock_style_variable_height"; + base: "font=SLP:style=Roman font_size=22 align=left color=#696565 wrap=word"; + tag: "br" "\n"; + tag: "hilight" "+ font=SLP:style=Bold"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "tab" "\t"; + } + } + +#define BEAT_GENLIST_PART_BASE( param_item_height ) \ + part { name: "base"; \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + color: ACCOUNT_GENLIST_PART_BG_COLOR_INC; \ + } \ + } + +#define BEAT_GENLIST_PART_BG \ + part { name: "bg"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: ACCOUNT_GENLIST_PART_BG_COLOR_INC; \ + } \ + description { state: "hide" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.025 0.0; } \ + rel2 { relative: 1.025 1.0; } \ + } \ + description { state: "hide" 0.1; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.13 0.0; } \ + rel2 { relative: 1.13 1.0; } \ + } \ + description { state: "hide" 0.2; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.5 0.0; } \ + rel2 { relative: 1.5 1.0; } \ + } \ + description { state: "hide" 0.3; \ + inherit: "default" 0.0; \ + rel1 { relative: 1.0 0.0; } \ + rel2 { relative: 2.0 1.0; } \ + } \ + } + +#define BEAT_GENLIST_PART_BG_IMAGE \ + part { name: "bg_image"; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + image.normal: "00_list_bar_press_1x80.png"; \ + } \ + description { state: "selected" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + } \ + } + +#define BEAT_GENLIST_PART_BOTTOM_LINE \ + part { name: "bottom_line"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: ACCOUNT_GENLIST_PART_BOTTOM_LINE_INC; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + } \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_TOP( param_padding_size ) \ + part { name: "elm.padding.top"; \ + type: RECT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + rel2.relative: 1.0 0.0; \ + align: 0.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_TEXT_TOP( param_padding_size ) \ + part { name: "elm.padding.text.top"; \ + type: RECT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + rel2.relative: 1.0 0.0; \ + align: 0.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \ + part { name: "elm.padding.bottom"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + rel1.relative: 0.0 1.0; \ + align: 0.0 1.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_LEFT( param_padding_size ) \ + part { name: "elm.padding.left"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel2.relative: 0.0 1.0; \ + align: 0.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \ + part { name: "elm.padding.right"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.relative: 1.0 0.0; \ + align: 1.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_SWALLOW_END( param_padding_size ) \ + part { name: "elm.padding.left.swallow.end"; \ + clip_to: "disclip"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.to_x: "elm.swallow.end"; \ + rel2 { \ + relative: 0.0 1.0; \ + to_x: "elm.swallow.end"; \ + } \ + align: 1.0 0.5; \ + } \ + } \ + part { name: "elm.swallow.end"; \ + clip_to: "disclip"; \ + type: SWALLOW; \ + scale: 1; \ + description { state: "default" 0.0; \ + fixed: 1 0; \ + align: 1.0 0.5; \ + rel1.to_x: "elm.padding.right"; \ + rel2 { \ + relative: 0.0 1.0; \ + to_x: "elm.padding.right"; \ + } \ + } \ + } + +#define BEAT_GENLIST_PART_DISCLIP \ + part { name: "disclip"; \ + type: RECT; \ + description { state: "default" 0.0; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 64; \ + } \ + } + +#define BEAT_GENLIST_PART_LIST_PICKER_BASE( param_item_height ) \ + part { name: "base"; \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + color: 71 61 53 255; \ + } \ + } + +#define BEAT_GENLIST_PART_LIST_PICKER_BOTTOM_LINE \ + part { name: "bottom_line"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: 104 97 92 255; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + } \ + } \ + } + + +group { + name: "elm/genlist/item/msp_more/default"; + alias: "elm/genlist/tree/msp_more/default"; + alias: "elm/genlist/item_odd/msp_more/default"; + alias: "elm/genlist/tree_odd/msp_more/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "contents" "elm.swl.btn.r"; + data.item: "treesize" "20"; + + parts + { + part { name: "elm.rect.padding.topleft"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 10 0; + fixed: 1 1; + rel2 { relative: 0.0 0.0; } + color: 0 0 0 0; + align: 0.0 0.0; + } + } + + part { name: "elm.rect.padding.bottom"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 0; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + color: 0 0 0 0; + align: 0.0 1.0; + } + } +#if 0 + part { name: "elm.rect.padding.bottom.line"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 1; + fixed: 0 1; + visible: 1; + color: ACCOUNT_GENLIST_PART_BOTTOM_LINE_INC; + rel1 { + relative: 0.0 1.0; + offset: 0 -1; + } + } + } +#endif + part { name: "elm.rect.padding.topright"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 10 0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; } + rel2 { relative: 1.0 0.0; } + color: 0 0 0 0; + align: 1.0 0.0; + } + } + + part { name: "elm.swl.btn.r"; + scale: 1; + mouse_events: 1; + type: SWALLOW; + description { + state: "default" 0.0; + min: 0 74; + rel1 { + to: "elm.rect.padding.topleft"; + relative: 1.0 1.0; + } + rel2 { + to: "elm.rect.padding.topright"; + to_y: "elm.rect.padding.bottom"; + relative: 0.0 0.0; + } + align: 0.5 0.0; + } + } + + + } + } + +group { + name: "elm/genlist/item/help_text/default"; + alias: "elm/genlist/tree/help_text/default"; + alias: "elm/genlist/item_odd/help_text/default"; + alias: "elm/genlist/tree_odd/help_text/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "contents" "elm.swl.help.text"; + data.item: "treesize" "20"; + + parts + { + + part { name: "elm.rect.padding.topleft"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 10 8; + fixed: 1 1; + rel2 { relative: 0.0 0.0; } + color: 0 0 0 0; + align: 0.0 0.0; + } + } + + part { name: "elm.rect.padding.bottom"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 20; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + color: 0 0 0 0; + align: 0.0 1.0; + } + } + + part { name: "elm.rect.padding.topright"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 10 8; + fixed: 1 1; + rel1 { relative: 1.0 0.0; } + rel2 { relative: 1.0 0.0; } + color: 0 0 0 0; + align: 1.0 0.0; + } + } + + part { name: "elm.swl.help.text"; + scale: 1; + mouse_events: 1; + type: SWALLOW; + description { + state: "default" 0.0; + min: 0 46; + rel1 { + to: "elm.rect.padding.topleft"; + relative: 1.0 1.0; + } + rel2 { + to: "elm.rect.padding.topright"; + to_y: "elm.rect.padding.bottom"; + relative: 0.0 0.0; + } + align: 0.5 0.0; + } + } + + + } + } + + group { + name: "ug_effect_sample"; + parts { + part { + name: "clip"; + type: RECT; + description { + state: "default" 0.0; + rel1 { relative: 1 0; } + rel2 { relative: 2 1; } + color: 255 255 255 0; + } + description { + state: "show" 0.0; + rel1 { relative: 0 0; } + rel2 { relative: 1 1; } + color: 255 255 255 255; + } + } + part { + name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "clip"; + description { + rel1.to: "clip"; + rel2.to: "clip"; + } + } + part { + name: "event_blocker"; + description { + state: "default" 0.0; + visible: 1; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + } + description { + state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + } + programs { + program { + name: "show"; + signal: "elm,state,show"; + action: STATE_SET "show" 0.0; + target: "clip"; + target: "event_blocker"; + transition: "DECELERATE" 0.5; + after: "show_end"; + } + program { + name: "hide"; + signal: "elm,state,hide"; + action: STATE_SET "default" 0.0; + target: "clip"; + target: "event_blocker"; + transition: "DECELERATE" 0.5; + after: "hide_end"; + } + program { + name: "disable_event_blocker"; + signal: "elm,state,blocker,disabled"; + action: STATE_SET "disabled" 0.0; + target: "event_blocker"; + } + program { + name: "disable_blocker"; + action: SIGNAL_EMIT "elm,state,blocker,disabled" ""; + } + program { + name: "show_end"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + after: "disable_blocker"; + } + program { + name: "hide_end"; + action: SIGNAL_EMIT "elm,action,hide,finished" ""; + after: "disable_blocker"; + } + } +} + +group { name: "elm/genlist/item/2line_textonly_color/default"; + alias: "elm/genlist/item_odd/2line_textonly_color/default"; + + data.item: "stacking" "above"; + data.item: "selectraise" "on"; +// data.item: "texts" "elm.text elm.text.sub elm.text.push"; + data.item: "texts" "elm.text elm.text.sub"; + data.item: "contents" "elm.icon elm.icon.push"; +// data.item: "contents" "elm.icon"; + images { + image: "00_list_bar_press_1x80.png" COMP; + } + + parts { + BEAT_GENLIST_PART_BASE( 90 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_TOP( 10 ) + BEAT_GENLIST_PART_PADDING_BOTTOM( 10 ) + BEAT_GENLIST_PART_PADDING_LEFT( 15 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 15 ) + + part { name: "elm.icon"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 50 50; + max: 50 50; + fixed: 1 1; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + } + rel2 { + offset: 0 0; + to_x: "elm.padding.left"; + } + } + } + part { name: "elm.padding.icon.right"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 15 0; + fixed: 1 0; + visible: 0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.icon"; + } + rel2.to_x: "elm.icon"; + align: 0.0 0.0; + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXT; + //changes the type from TEXTBLOCK to TEXT, to fix the H0100115592 issue; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 0 40; + max: 350 350; + fixed: 0 1; + align: 0 0; + color: ACCOUNT_GENLIST_PART_TEXT_COLOR_INC; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.icon.right"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.top"; + } + text { + font: "Roman"; + size: 32; + min: 0 1; + align: 0 0.5; + text_class: "list_item"; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: ACCOUNT_GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + part { name: "elm.text.sub"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 0 30; + // TO position push icon max set + max: 350 350; + fixed: 0 1; + color: 219 156 26 255; + align: 0.0 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.icon.right"; + to_y: "elm.text"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.text"; + } + + text { + font: "Roman"; + size: 22; + min: 0 1; + align: 0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: ACCOUNT_GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } +// to enable push icon + part { name: "elm.icon.push"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 50 50; + max: 50 50; + fixed: 1 1; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + to_x: "elm.text"; + to_y: "elm.text"; + } + rel2 { + offset: 0 0; + to_x: "elm.text"; + to_y: "elm.text"; + } + } + } + +// part { name: "elm.text.push"; +// clip_to: "disclip"; +// type: TEXT; +// mouse_events: 0; +// scale: 1; +// description { state: "default" 0.0; +// min: 50 50; +// max: 50 50; +// fixed: 1 1; +// // color: ACCOUNT_GENLIST_PART_TEXT_SELECTED_COLOR_INC; +// color: 219 156 26 255; +// align: 0.0 0.5; +// rel1 { +// relative: 1.0 0.0; +// to_x: "elm.text.sub"; +// to_y: "elm.text.sub"; +// } +// rel2 { +// offset: 0 0; +// to_x: "elm.text.sub"; +// to_y: "elm.text.sub"; +// } +// text { +// font: "Roman"; +// size: 20; +// min: 0 1; +// align: 0 0.5; +// text_class: "list_item"; +// } +// +// } +// description { state: "selected" 0.0; +// inherit: "default" 0.0; +// color: ACCOUNT_GENLIST_PART_TEXT_SELECTED_COLOR_INC; +// } +// } + BEAT_GENLIST_PART_DISCLIP + } + programs { + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + target: "elm.text.sub"; + //target: "elm.text.push"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + target: "elm.text.sub"; + //target: "elm.text.push"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "show"; + signal: "elm,state,show"; + action: STATE_SET "show" 0.0; + target: "bg_image"; + target: "elm.text"; + target: "elm.text.sub"; + transition: "DECELERATE" 0.5; + after: "show_end"; + } + program { + name: "hide"; + signal: "elm,state,hide"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + target: "elm.text.sub"; + transition: "DECELERATE" 0.5; + after: "hide_end"; + } + program { + name: "disable_event_blocker"; + signal: "elm,state,blocker,disabled"; + action: STATE_SET "disabled" 0.0; + target: "bg_image"; + } + program { + name: "disable_blocker"; + action: SIGNAL_EMIT "elm,state,blocker,disabled" ""; + } + program { + name: "show_end"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + after: "disable_blocker"; + } + program { + name: "hide_end"; + action: SIGNAL_EMIT "elm,action,hide,finished" ""; + after: "disable_blocker"; + } + } + } + +} + diff --git a/data/edc/myaccount_edc_image_macro.edc b/data/edc/myaccount_edc_image_macro.edc new file mode 100755 index 0000000..daf298e --- /dev/null +++ b/data/edc/myaccount_edc_image_macro.edc @@ -0,0 +1,31 @@ +#define RESOURCE_IMAGE( FILE_NAME ) \ + group { \ + name: FILE_NAME; \ + images.image: FILE_NAME COMP; \ + parts { \ + part { name: "image"; \ + description { \ + state: "default" 0.0; \ + image.normal: FILE_NAME; \ + aspect: 1 1; \ + aspect_preference: BOTH; \ + } \ + } \ + } \ + } + +#define RESOURCE_IMAGE_LOSSY( FILE_NAME ) \ + group { \ + name: FILE_NAME; \ + images.image: FILE_NAME LOSSY 85; \ + parts { \ + part { name: "image"; \ + description { \ + state: "default" 0.0; \ + image.normal: FILE_NAME; \ + aspect: 1 1; \ + aspect_preference: BOTH; \ + } \ + } \ + } \ + } diff --git a/data/edc/myaccount_edc_images.edc b/data/edc/myaccount_edc_images.edc new file mode 100755 index 0000000..b77f956 --- /dev/null +++ b/data/edc/myaccount_edc_images.edc @@ -0,0 +1,56 @@ +#include "myaccount_edc_image_macro.edc" + +collections { +RESOURCE_IMAGE("00_list_bar_press_1x80.png"); +RESOURCE_IMAGE("01_button_on_lighting.png"); +RESOURCE_IMAGE("01_controlbar_icon_add.png"); +RESOURCE_IMAGE("01_dialog_field_input_bottom.png"); +RESOURCE_IMAGE("01_dialog_field_input_middle.png"); +RESOURCE_IMAGE("01_dialog_field_input.png"); +RESOURCE_IMAGE("01_dialog_field_input_top.png"); +RESOURCE_IMAGE("01_dialog_field_lighting.png"); +RESOURCE_IMAGE("01_dialogue_field_bg.png"); +RESOURCE_IMAGE("01_hybrid_spinner_bg.png"); +RESOURCE_IMAGE("01_list_bottom_blur.png"); +RESOURCE_IMAGE("01_on_off_button_on.png"); +RESOURCE_IMAGE("01_on_off_button.png"); +RESOURCE_IMAGE("01_picker_input_bg.png"); +RESOURCE_IMAGE("01_samsungaccount.png"); +RESOURCE_IMAGE("08_textinput_btn_bg_1.png"); +RESOURCE_IMAGE("08_textinput_btn_bg_2.png"); +RESOURCE_IMAGE("08_textinput_btn_clear.png"); +RESOURCE_IMAGE("08_textinput_btn_enter.png"); +RESOURCE_IMAGE("08_textinput_panel_bg.png"); +RESOURCE_IMAGE("09_search_button_normal_bg.png"); +RESOURCE_IMAGE("09_search_button_normal_bg_press.png"); +RESOURCE_IMAGE("09_search_input_bg.png"); +RESOURCE_IMAGE("09_search_softkey_icon_zoom.png"); +RESOURCE_IMAGE("09_search_text_input_03.png"); +RESOURCE_IMAGE("50_repeat_btn.png"); +RESOURCE_IMAGE("50_repeat_btn_Press.png"); +RESOURCE_IMAGE("66_myaccount_icon_facebook_50x50.png"); +RESOURCE_IMAGE("66_myaccount_icon_google_50x50.png"); +RESOURCE_IMAGE("66_myaccount_icon_msn_50x50.png"); +RESOURCE_IMAGE("66_myaccount_icon_push_deactivated.png"); +RESOURCE_IMAGE("66_myaccount_icon_push.png"); +RESOURCE_IMAGE("66_myaccount_icon_push_press.png"); +RESOURCE_IMAGE("66_myaccount_icon_twitter_50x50.png"); +RESOURCE_IMAGE("66_myaccount_icon_windows_live_50x50.png"); +RESOURCE_IMAGE("66_myaccount_icon_yahoo_50x50.png"); +RESOURCE_IMAGE("99_email.png"); +RESOURCE_IMAGE("bada.png"); +RESOURCE_IMAGE("bg.png"); +RESOURCE_IMAGE("cancel_sync.png"); +RESOURCE_IMAGE("exchange.png"); +RESOURCE_IMAGE("facebook.png"); +RESOURCE_IMAGE("flickr.png"); +RESOURCE_IMAGE("gmail.png"); +RESOURCE_IMAGE("icq.png"); +RESOURCE_IMAGE("myaccount_bg.png"); +RESOURCE_IMAGE("myspace.png"); +RESOURCE_IMAGE("picasa.png"); +RESOURCE_IMAGE("refresh.png"); +RESOURCE_IMAGE("tw3_list_select.png"); +RESOURCE_IMAGE("twitter.png"); +RESOURCE_IMAGE("youtube.png"); +} diff --git a/data/myaccount_photo/00_list_bar_press_1x80.png b/data/myaccount_photo/00_list_bar_press_1x80.png new file mode 100755 index 0000000..0e0becb Binary files /dev/null and b/data/myaccount_photo/00_list_bar_press_1x80.png differ diff --git a/data/myaccount_photo/01_button_on_lighting.png b/data/myaccount_photo/01_button_on_lighting.png new file mode 100755 index 0000000..7c32535 Binary files /dev/null and b/data/myaccount_photo/01_button_on_lighting.png differ diff --git a/data/myaccount_photo/01_controlbar_icon_add.png b/data/myaccount_photo/01_controlbar_icon_add.png new file mode 100755 index 0000000..0dc1144 Binary files /dev/null and b/data/myaccount_photo/01_controlbar_icon_add.png differ diff --git a/data/myaccount_photo/01_dialog_field_input.png b/data/myaccount_photo/01_dialog_field_input.png new file mode 100755 index 0000000..51158c7 Binary files /dev/null and b/data/myaccount_photo/01_dialog_field_input.png differ diff --git a/data/myaccount_photo/01_dialog_field_input_bottom.png b/data/myaccount_photo/01_dialog_field_input_bottom.png new file mode 100755 index 0000000..ddeb595 Binary files /dev/null and b/data/myaccount_photo/01_dialog_field_input_bottom.png differ diff --git a/data/myaccount_photo/01_dialog_field_input_middle.png b/data/myaccount_photo/01_dialog_field_input_middle.png new file mode 100755 index 0000000..81b4c62 Binary files /dev/null and b/data/myaccount_photo/01_dialog_field_input_middle.png differ diff --git a/data/myaccount_photo/01_dialog_field_input_top.png b/data/myaccount_photo/01_dialog_field_input_top.png new file mode 100755 index 0000000..2bec20f Binary files /dev/null and b/data/myaccount_photo/01_dialog_field_input_top.png differ diff --git a/data/myaccount_photo/01_dialog_field_lighting.png b/data/myaccount_photo/01_dialog_field_lighting.png new file mode 100755 index 0000000..45fa72a Binary files /dev/null and b/data/myaccount_photo/01_dialog_field_lighting.png differ diff --git a/data/myaccount_photo/01_dialogue_field_bg.png b/data/myaccount_photo/01_dialogue_field_bg.png new file mode 100755 index 0000000..fd8c9ed Binary files /dev/null and b/data/myaccount_photo/01_dialogue_field_bg.png differ diff --git a/data/myaccount_photo/01_hybrid_spinner_bg.png b/data/myaccount_photo/01_hybrid_spinner_bg.png new file mode 100755 index 0000000..d6ee659 Binary files /dev/null and b/data/myaccount_photo/01_hybrid_spinner_bg.png differ diff --git a/data/myaccount_photo/01_list_bottom_blur.png b/data/myaccount_photo/01_list_bottom_blur.png new file mode 100755 index 0000000..5f2adf0 Binary files /dev/null and b/data/myaccount_photo/01_list_bottom_blur.png differ diff --git a/data/myaccount_photo/01_on_off_button.png b/data/myaccount_photo/01_on_off_button.png new file mode 100755 index 0000000..fda54d0 Binary files /dev/null and b/data/myaccount_photo/01_on_off_button.png differ diff --git a/data/myaccount_photo/01_on_off_button_on.png b/data/myaccount_photo/01_on_off_button_on.png new file mode 100755 index 0000000..ffa54cf Binary files /dev/null and b/data/myaccount_photo/01_on_off_button_on.png differ diff --git a/data/myaccount_photo/01_picker_input_bg.png b/data/myaccount_photo/01_picker_input_bg.png new file mode 100755 index 0000000..af08729 Binary files /dev/null and b/data/myaccount_photo/01_picker_input_bg.png differ diff --git a/data/myaccount_photo/01_samsungaccount.png b/data/myaccount_photo/01_samsungaccount.png new file mode 100644 index 0000000..daac89b Binary files /dev/null and b/data/myaccount_photo/01_samsungaccount.png differ diff --git a/data/myaccount_photo/08_textinput_btn_bg_1.png b/data/myaccount_photo/08_textinput_btn_bg_1.png new file mode 100755 index 0000000..7de2cf9 Binary files /dev/null and b/data/myaccount_photo/08_textinput_btn_bg_1.png differ diff --git a/data/myaccount_photo/08_textinput_btn_bg_2.png b/data/myaccount_photo/08_textinput_btn_bg_2.png new file mode 100755 index 0000000..8590ab5 Binary files /dev/null and b/data/myaccount_photo/08_textinput_btn_bg_2.png differ diff --git a/data/myaccount_photo/08_textinput_btn_clear.png b/data/myaccount_photo/08_textinput_btn_clear.png new file mode 100755 index 0000000..53b681e Binary files /dev/null and b/data/myaccount_photo/08_textinput_btn_clear.png differ diff --git a/data/myaccount_photo/08_textinput_btn_enter.png b/data/myaccount_photo/08_textinput_btn_enter.png new file mode 100755 index 0000000..8161fe3 Binary files /dev/null and b/data/myaccount_photo/08_textinput_btn_enter.png differ diff --git a/data/myaccount_photo/08_textinput_panel_bg.png b/data/myaccount_photo/08_textinput_panel_bg.png new file mode 100755 index 0000000..c418243 Binary files /dev/null and b/data/myaccount_photo/08_textinput_panel_bg.png differ diff --git a/data/myaccount_photo/09_search_button_normal_bg.png b/data/myaccount_photo/09_search_button_normal_bg.png new file mode 100755 index 0000000..2f47be9 Binary files /dev/null and b/data/myaccount_photo/09_search_button_normal_bg.png differ diff --git a/data/myaccount_photo/09_search_button_normal_bg_press.png b/data/myaccount_photo/09_search_button_normal_bg_press.png new file mode 100755 index 0000000..e71e54b Binary files /dev/null and b/data/myaccount_photo/09_search_button_normal_bg_press.png differ diff --git a/data/myaccount_photo/09_search_input_bg.png b/data/myaccount_photo/09_search_input_bg.png new file mode 100755 index 0000000..f0cd0ef Binary files /dev/null and b/data/myaccount_photo/09_search_input_bg.png differ diff --git a/data/myaccount_photo/09_search_softkey_icon_zoom.png b/data/myaccount_photo/09_search_softkey_icon_zoom.png new file mode 100755 index 0000000..d121ca3 Binary files /dev/null and b/data/myaccount_photo/09_search_softkey_icon_zoom.png differ diff --git a/data/myaccount_photo/09_search_text_input_03.png b/data/myaccount_photo/09_search_text_input_03.png new file mode 100755 index 0000000..3a4bbfe Binary files /dev/null and b/data/myaccount_photo/09_search_text_input_03.png differ diff --git a/data/myaccount_photo/50_repeat_btn.png b/data/myaccount_photo/50_repeat_btn.png new file mode 100755 index 0000000..38648b6 Binary files /dev/null and b/data/myaccount_photo/50_repeat_btn.png differ diff --git a/data/myaccount_photo/50_repeat_btn_Press.png b/data/myaccount_photo/50_repeat_btn_Press.png new file mode 100755 index 0000000..5b3207b Binary files /dev/null and b/data/myaccount_photo/50_repeat_btn_Press.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_facebook_50x50.png b/data/myaccount_photo/66_myaccount_icon_facebook_50x50.png new file mode 100755 index 0000000..ec022ce Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_facebook_50x50.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_google_50x50.png b/data/myaccount_photo/66_myaccount_icon_google_50x50.png new file mode 100755 index 0000000..a848208 Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_google_50x50.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_msn_50x50.png b/data/myaccount_photo/66_myaccount_icon_msn_50x50.png new file mode 100755 index 0000000..786bb50 Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_msn_50x50.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_push.png b/data/myaccount_photo/66_myaccount_icon_push.png new file mode 100644 index 0000000..399f762 Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_push.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_push_deactivated.png b/data/myaccount_photo/66_myaccount_icon_push_deactivated.png new file mode 100644 index 0000000..2e95a4d Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_push_deactivated.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_push_press.png b/data/myaccount_photo/66_myaccount_icon_push_press.png new file mode 100644 index 0000000..86395e8 Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_push_press.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_twitter_50x50.png b/data/myaccount_photo/66_myaccount_icon_twitter_50x50.png new file mode 100755 index 0000000..d660ade Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_twitter_50x50.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_windows_live_50x50.png b/data/myaccount_photo/66_myaccount_icon_windows_live_50x50.png new file mode 100755 index 0000000..786e8b5 Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_windows_live_50x50.png differ diff --git a/data/myaccount_photo/66_myaccount_icon_yahoo_50x50.png b/data/myaccount_photo/66_myaccount_icon_yahoo_50x50.png new file mode 100755 index 0000000..341474a Binary files /dev/null and b/data/myaccount_photo/66_myaccount_icon_yahoo_50x50.png differ diff --git a/data/myaccount_photo/99_email.png b/data/myaccount_photo/99_email.png new file mode 100755 index 0000000..9a3df38 Binary files /dev/null and b/data/myaccount_photo/99_email.png differ diff --git a/data/myaccount_photo/PUT_IMAGES_HERE b/data/myaccount_photo/PUT_IMAGES_HERE new file mode 100755 index 0000000..e69de29 diff --git a/data/myaccount_photo/bada.png b/data/myaccount_photo/bada.png new file mode 100755 index 0000000..9f2ee01 Binary files /dev/null and b/data/myaccount_photo/bada.png differ diff --git a/data/myaccount_photo/bg.png b/data/myaccount_photo/bg.png new file mode 100755 index 0000000..7f21fd9 Binary files /dev/null and b/data/myaccount_photo/bg.png differ diff --git a/data/myaccount_photo/cancel_sync.png b/data/myaccount_photo/cancel_sync.png new file mode 100755 index 0000000..39a6cfc Binary files /dev/null and b/data/myaccount_photo/cancel_sync.png differ diff --git a/data/myaccount_photo/exchange.png b/data/myaccount_photo/exchange.png new file mode 100755 index 0000000..78d03bd Binary files /dev/null and b/data/myaccount_photo/exchange.png differ diff --git a/data/myaccount_photo/facebook.png b/data/myaccount_photo/facebook.png new file mode 100755 index 0000000..3a45a7e Binary files /dev/null and b/data/myaccount_photo/facebook.png differ diff --git a/data/myaccount_photo/flickr.png b/data/myaccount_photo/flickr.png new file mode 100755 index 0000000..7c6df1f Binary files /dev/null and b/data/myaccount_photo/flickr.png differ diff --git a/data/myaccount_photo/gmail.png b/data/myaccount_photo/gmail.png new file mode 100755 index 0000000..0f7420b Binary files /dev/null and b/data/myaccount_photo/gmail.png differ diff --git a/data/myaccount_photo/icq.png b/data/myaccount_photo/icq.png new file mode 100755 index 0000000..56046e4 Binary files /dev/null and b/data/myaccount_photo/icq.png differ diff --git a/data/myaccount_photo/myaccount_bg.png b/data/myaccount_photo/myaccount_bg.png new file mode 100755 index 0000000..7f21fd9 Binary files /dev/null and b/data/myaccount_photo/myaccount_bg.png differ diff --git a/data/myaccount_photo/myspace.png b/data/myaccount_photo/myspace.png new file mode 100755 index 0000000..e7676ed Binary files /dev/null and b/data/myaccount_photo/myspace.png differ diff --git a/data/myaccount_photo/picasa.png b/data/myaccount_photo/picasa.png new file mode 100755 index 0000000..6a5e39f Binary files /dev/null and b/data/myaccount_photo/picasa.png differ diff --git a/data/myaccount_photo/refresh.png b/data/myaccount_photo/refresh.png new file mode 100755 index 0000000..c4ff7b3 Binary files /dev/null and b/data/myaccount_photo/refresh.png differ diff --git a/data/myaccount_photo/tw3_list_select.png b/data/myaccount_photo/tw3_list_select.png new file mode 100755 index 0000000..d283e8a Binary files /dev/null and b/data/myaccount_photo/tw3_list_select.png differ diff --git a/data/myaccount_photo/twitter.png b/data/myaccount_photo/twitter.png new file mode 100755 index 0000000..2e5c6d8 Binary files /dev/null and b/data/myaccount_photo/twitter.png differ diff --git a/data/myaccount_photo/youtube.png b/data/myaccount_photo/youtube.png new file mode 100755 index 0000000..9cc5c52 Binary files /dev/null and b/data/myaccount_photo/youtube.png differ diff --git a/icon_myaccount.png b/icon_myaccount.png new file mode 100644 index 0000000..5e2ccbb Binary files /dev/null and b/icon_myaccount.png differ diff --git a/include/myaccount_ug.h b/include/myaccount_ug.h new file mode 100755 index 0000000..705e3a5 --- /dev/null +++ b/include/myaccount_ug.h @@ -0,0 +1,130 @@ +/* + * 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://floralicense.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 _MYACCOUNT_H_ +#define _MYACCOUNT_H_ + +#include +#include +#include +#include +#include +#include +#include +#include "Eina.h" + +#ifndef LOG_TAG +#define LOG_TAG "MYACCOUNT" +#endif + +#include + + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +#ifndef PREFIX +# define PREFIX "/usr" +#endif + +#define MYACCOUNT_VERBOSE(fmt, arg...) \ + LOGV(": [%s (%d)]" fmt "\n", __FUNCTION__, __LINE__, ##arg); +#define MYACCOUNT_DBUG(fmt, arg...) \ + LOGD(": [%s (%d)]" fmt "\n", __FUNCTION__, __LINE__, ##arg); +#define MYACCOUNT_INFO(fmt, arg...) \ + LOGI(": [%s (%d)]" fmt "\n", __FUNCTION__, __LINE__, ##arg); +#define MYACCOUNT_WARNING(fmt, arg...) \ + LOGW(": [%s (%d)]" fmt "\n", __FUNCTION__, __LINE__, ##arg); +#define MYACCOUNT_ERROR(fmt, arg...) \ + LOGE(": [%s (%d)]" fmt "\n", __FUNCTION__, __LINE__, ##arg); +#define MYACCOUNT_FATAL(fmt, arg...) \ + LOGF(": [%s (%d)]" fmt "\n", __FUNCTION__, __LINE__, ##arg); + +#define _EDJ(obj) elm_layout_edje_get(obj) +/*#define dgettext_noop(s) (s) */ +/*#define N_(s) dgettext_noop(s)*/ + +#define PACKAGE "myaccount" +#define LOCALEDIR PREFIX"/usr/ug/res/locale" + +#define IMAGE_PATH "/usr/ug/res/images/ug-setting-myaccount-efl" + +/*#define MYACCOUNT_EDJ_PATH PREFIX"/share/edje/"*/ +#define MYACCOUNT_EDJ_PATH PREFIX"/usr/ug/res/edje/myaccount" +#define MYACCOUNT_EDJ_NAME MYACCOUNT_EDJ_PATH"/myaccount.edj" +#define MYACCOUNT_GRP_MAIN "main" + +typedef enum { + eMYACCOUNT_ACCOUNT_LIST, + eMYACCOUNT_ADD_ACCOUNT, +} myaccount_mode_e; + + +typedef struct appdata { + Evas_Object *base; + ui_gadget_h ug; + + Evas_Object *navi_bar; + Evas_Object *win_main; + Elm_Object_Item *navi_it; + myaccount_mode_e eMode; + + /* For accounts list*/ + Evas_Object *layout_main; + Evas_Object *account_genlist; + Evas_Object *help_label; + Evas_Object *r_title_sk; + Evas_Object *l_title_sk; + Evas_Object *modal_popup; + Ecore_Timer *progress_timer; + Evas_Object *auto_sync_check; + Evas_Object *refresh_btn; + Evas_Object *refresh_icon; + Evas_Object *cancel_sync_icon; + + Evas_Object *bg; + + /* For addaccount view*/ + Evas_Object *layout_addaccount; + Evas_Object *ly; + Evas_Object *add_genlist; + bool item_selected_state; + + /* to hold info about key lock*/ + int lock_priv_state; + int lock_curr_state; + ui_gadget_h ug_called; + Ecore_X_Window win_id; + + /*package manager client handle */ + pkgmgr_client *pc; + + /* extra data from ug caller */ + char *capability_filter; + char *caller_userdata; +}myaccount_appdata; + +int myaccount_account_info_update(struct appdata *ad); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* _MYACCOUNT_H_ */ + diff --git a/include/myaccount_ug_account_list.h b/include/myaccount_ug_account_list.h new file mode 100755 index 0000000..32e7f4c --- /dev/null +++ b/include/myaccount_ug_account_list.h @@ -0,0 +1,40 @@ +/* + * 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://floralicense.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 _MYACCOUNT_UG_ACCOUNT_LIST_H_ +#define _MYACCOUNT_UG_ACCOUNT_LIST_H_ + +#include "myaccount_ug.h" + +void myaccount_list_view_create(myaccount_appdata *priv); + +void *myaccount_init_appdata(); + +void *myaccount_get_appdata(); + +void myaccount_list_refresh_item_list(myaccount_appdata *ad); + +void myaccount_ug_account_list_create(void *data); + +void myaccount_account_list_quit_cb( void *data, + Evas_Object *obj, void *event_info ); + +void myaccount_check_syncall_finish(myaccount_appdata *ad); + + + +#endif /* _MYACCOUNT_UG_ACCOUNT_LIST_H_ */ + diff --git a/include/myaccount_ug_addaccount.h b/include/myaccount_ug_addaccount.h new file mode 100755 index 0000000..0aa59c2 --- /dev/null +++ b/include/myaccount_ug_addaccount.h @@ -0,0 +1,43 @@ +/* + * 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://floralicense.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 _MYACCOUNT_UG_ADD_ACCOUNT_H_ +#define _MYACCOUNT_UG_ADD_ACCOUNT_H_ + +#include "myaccount_ug.h" +#include "myaccount_ug_common.h" + +typedef struct __addaccount_list_priv { + int service_id; + char service_name[256]; + char package_name[256]; + char library_name[256]; + char icon_path[1024]; + MyAccountProviderType sp_type; + bool b_tizen_email; +}addaccount_list_priv; + +void *myaccount_addaccount_create(ui_gadget_h ug, + enum ug_mode mode, service_h data, void *priv); + +void myaccount_addaccount_create_view(myaccount_appdata *ad); + +void *myaccount_init_appdata(); + +void *myaccount_get_appdata(); + +#endif /* _MYACCOUNT_UG_ADD_ACCOUNT_H_ */ + diff --git a/include/myaccount_ug_common.h b/include/myaccount_ug_common.h new file mode 100755 index 0000000..6b5131a --- /dev/null +++ b/include/myaccount_ug_common.h @@ -0,0 +1,107 @@ +/* + * 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://floralicense.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 _MYACCOUNT_UG_COMMON_H_ +#define _MYACCOUNT_UG_COMMON_H_ + +#include +#include +#include +#include +#include +#include +#include + +#define ENABLE_NOTI + +typedef enum { + MYACCOUNT_TYPE_ANONYMOUS, + MYACCOUNT_TYPE_OTHER +}MyAccountProviderType; + +typedef enum { + MYACCOUNT_REQUEST_SIGNIN = 0, + MYACCOUNT_REQUEST_VIEW +}MyAccountRequestViewType; + +void *myaccount_init_appdata(); + +void myaccount_destroy_appdata(); + +void *myaccount_get_appdata(); + +void myaccount_common_get_icon_by_name(char *account_name, + char *icon_path); + +void myaccount_common_lowercase(char* src, char* dest); + +Evas_Object *myaccount_common_progress_add(Evas_Object *parent); + +Evas_Object *myaccount_common_create_modal_popup(Evas_Object *parent); + +void myaccount_common_delete_modal_popup(Evas_Object *popup); + +Eina_Bool myaccount_common_modal_popup_timer_cb(gpointer data); + +bool myaccount_samsung_callback(char* result_code, char* user_id, void *user_data); + + +int myaccount_common_launch_application(MyAccountRequestViewType + request_type, + char *package_name, + char *username, + char *email_sp, + int account_id, + void *data ); + +int myaccount_common_get_all_account_cnt(int *count); + +void myaccount_common_handle_notification(); + +void myaccount_common_vconf_notification_cb(keynode_t *key, void *user_data); + +void myaccount_common_listen_pkgmgr_for_pkg_uninstall(); + +#define MA_UG_NAME "ug-setting-myaccount-efl" + +#define MA_IMAGE_EDJ_NAME "/usr/ug/res/edje/ug-setting-myaccount-efl/myaccount_edc_images.edj" + +#define BUFSIZE 1024 + +#define MA_SNPRINTF(dest,size,format,arg...) \ + do { \ + snprintf(dest,size-1,format,##arg); \ + }while(0) + /* If the same pointer is passed to free twice, known as a double free. To avoid this, set pointers to +NULL after passing them to free: free(NULL) is safe (it does nothing). + */ + +#define MA_STRNCPY(dest,src,size) \ + do { \ + if(src != NULL && dest != NULL && size > 0) \ + { \ + strncpy(dest,src,size-1); \ + } \ + }while(0); + +#define MA_MEMFREE(ptr) \ + if (ptr != NULL) { \ + free(ptr); \ + ptr = NULL; \ + } \ + +#endif /* _MYACCOUNT_UG_COMMON_H_ */ + diff --git a/include/myaccount_ug_main.h b/include/myaccount_ug_main.h new file mode 100755 index 0000000..7125e2d --- /dev/null +++ b/include/myaccount_ug_main.h @@ -0,0 +1,28 @@ +/* + * 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://floralicense.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 _MYACCOUNT_UG_MAIN_H_ +#define _MYACCOUNT_UG_MAIN_H_ + +#include + +typedef struct { + Evas_Object *base; + ui_gadget_h ug; +}myaccount_ug_data; + +#endif /* _MYACCOUNT_UG_MAIN_H_ */ + diff --git a/my-account.manifest b/my-account.manifest new file mode 100755 index 0000000..a76fdba --- /dev/null +++ b/my-account.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/myaccount.ini b/myaccount.ini new file mode 100755 index 0000000..5abbace --- /dev/null +++ b/myaccount.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/packaging/my-account.spec b/packaging/my-account.spec new file mode 100755 index 0000000..9d8dfaa --- /dev/null +++ b/packaging/my-account.spec @@ -0,0 +1,56 @@ +#sbs-git:slp/apps/m/my-account my-account 1.5.38 c12e7805519b99951f91c33cc96745c7f36166af +Name: my-account +Summary: My account application +Version: 1.7.17 +Release: 1 +Group: main/devel +License: TO_BE_FILL +Source0: %{name}-%{version}.tar.gz +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(appcore-efl) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(appsvc) +BuildRequires: pkgconfig(ui-gadget-1) +BuildRequires: pkgconfig(capi-base-common) +BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(capi-appfw-app-manager) +BuildRequires: pkgconfig(accounts-svc) +BuildRequires: pkgconfig(vconf) +BuildRequires: pkgconfig(pkgmgr) +BuildRequires: pkgconfig(capi-system-system-settings) +BuildRequires: cmake +BuildRequires: gettext-devel +BuildRequires: edje-bin + + +%description +My account application. + +%prep +%setup -q + +%build + +%define PREFIX "/usr" +cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%files +%manifest my-account.manifest +%defattr(-,root,root,-) +/usr/ug/lib/* +/usr/ug/res/* +/usr/share/packages/*.xml + +%post +/sbin/ldconfig +vconftool set -t int db/account/auto_sync 0 -g 6514 +vconftool set -t int db/account/sync_all 0 -g 6514 +mkdir -p /usr/ug/bin/ +ln -sf /usr/bin/ug-client /usr/ug/bin/setting-myaccount-efl + diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt new file mode 100755 index 0000000..28aa5b7 --- /dev/null +++ b/po/CMakeLists.txt @@ -0,0 +1,25 @@ +# 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 ar.po bg.po ca.po cs.po da.po en_US.po fi.po he.po hi.po hr.po hu.po id.po lt.po lv.po ms.po no.po pl.po ro.po sk.po sl.po sr.po sv.po th.po uk.po vi.po az.po en_PH.po es_MX.po et.po eu.po fr_CA.po ga.po gl.po hy.po is.po ka.po kk.po mk.po nb.po pt_BR.po uz.po zh_SG.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 /usr/ug/res/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/GT-I7800_Accounts_Strings.csv b/po/GT-I7800_Accounts_Strings.csv new file mode 100644 index 0000000..6690446 --- /dev/null +++ b/po/GT-I7800_Accounts_Strings.csv @@ -0,0 +1,6 @@ +Design ID English Dutch German Chinese Traditional_HongKong Chinese Simplified Russian Korean Chinese Traditional_Taiwan Japanese Spanish Greek Italian Turkish Portuguese French +IDS_MA_BODY_FACEBOOK Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook Facebook +IDS_MA_BODY_GOOGLE Google Google Google Google Google Google Google Google Google Google Google Google Google Google Google +IDS_MA_BODY_MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN MSN +IDS_MA_BODY_TWITTER Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter +IDS_MA_HEADER_ADD_ACCOUNT Add account Account toevoegen Konto hinzufügen 加入帳戶 添加帐户 Добавить уч. запись 계정 추가 加入帳戶 ​アカウント​追加 Añadir cuenta Προσθήκη λογαριασμού Aggiungi account Hesap ekle Adicionar conta Ajouter compte diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100755 index 0000000..fc41798 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,5 @@ +# List of source files containing translatable strings. +src/myaccount_ug_account_list.c +src/myaccount_ug_addaccount.c +src/myaccount_ug_common.c +src/myaccount_ug_main.c diff --git a/po/ar.po b/po/ar.po new file mode 100755 index 0000000..8df51e9 --- /dev/null +++ b/po/ar.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "أخرى" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "مزامنة تلقائية" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "موافق" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "إضافة حساب" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "المهمة" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "تزامن جهات الاتصال" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "أيام الذروة" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "وقت إنتهاء الذروة" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "وقت بدء الذروة" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "كل البيانات" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "بريد إلكتروني" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "يمكنك إدارة جهات الاتصال والتقاويم والبريد الإلكتروني وحسابات المراسلة الفورية" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "عرض كلمة المرور" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "مجلدات البريد المطلوب دفعها" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "مزامنة المهمة" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "تقويم" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "اتصال VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "غير معروف" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "إضافة" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "الاسم" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "حسابات" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "صورة شخصية" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "غير فعالة" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Post" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "ابقاء الاتصال على البطارية الضعيفة" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "أبق الاتصال أثناء التجوال" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "التزامن تلقائيا" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "متعقب الهاتف" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "قائمة الحسابات" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "سيتم حذف جميع البيانات المتعلقة بهذا الحساب. متابعة؟" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "اسم مستخدم أو بريد إلكتروني غير صحيح" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "يتعذر الحذف. هل تريد إعادة المحاولة؟" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "إعداد يدوي" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "يمكن حذف الأحداث الحالية أو الإبقاء عليها في حالة إيقاف المزامنة" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "يمكن حذف جهات الاتصال الحالية أو الاحتفاظ بها في حالة إيقاف المزامنة" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "حذفها من الهاتف" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "الاحتفاظ بها في الهاتف" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "الفيديو" + diff --git a/po/az.po b/po/az.po new file mode 100755 index 0000000..809a72a --- /dev/null +++ b/po/az.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Digərləri" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Avto-sinxronlaşma" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Hesab əlavə edin" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Tapşırıq" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Kontakt sinxronlaşdırması" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Pik günlər" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Pikin sona çatma vaxtı" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Günün başlanğıcında pik vaxt" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Bütün verilənlər" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "Elektron poçtlar" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Siz kontaktlarınızı, təqvimlərinizi, e-poçt və IM hesablarınızı idarə edə bilərsiniz" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Parolu göstərin" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Push üçün poçt qovluqları" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Tapşırıq sinxronlaşdırılması" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Təqvim" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP zəngi" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Naməlum" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Əlv et" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Ad" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Hesablar" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Qeyri-aktivdir" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Dərc et" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Bağlantını zəif batareyada davam etdir" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Bağlantı rouminqdə qalsın" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Avtomatik sinxronizasiya" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobil izləmə sistemi" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Hesab siyahısı" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Bu hesabla bağlı bütün məlumatlar silinəcək. Davam edilsin?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "İstifadəçi adı və ya e-poçt səhvdir" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Silmək mümkün deyil. Yenidən cəhd edilsin?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Əl ilə qurşdırma" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Sinxronlaşdırılma söndürülübsə, mövcud hadisələr silinə və ya saxlana bilər" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Sinxronlaşdırılma söndürülübsə, mövcud kontaktlar silinə və ya saxlana bilər" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Telefondan sil" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Telefonda saxla" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Video" + diff --git a/po/bg.po b/po/bg.po new file mode 100755 index 0000000..d5a6bf0 --- /dev/null +++ b/po/bg.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Други" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Автоматично синхр." + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Добавяне на акаунт" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Задача" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Синхр. на записи" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Натоварени дни" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Край на натоварените часове" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Начало на натоварените часове" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Всички данни" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "Email" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Обмяна" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Можете да управлявате своите записи, календари, имейл и IM акаунти" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Показване на паролата" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Папки с поща за push" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Синхронизиране на задача" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Календар" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP повикване" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Няма информация" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Добави" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Запис" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Акаунти" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Снимки" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Неактивна" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Публикуване" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Запазвай връзката при слаба батерия" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Запазвай връзката в роуминг" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Автоматично синхронизиране" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Мобилно проследяване" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Списък\nакаунти" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Ще бъдат изтрити всички данни, свързани с този акаунт. Продължаване?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Неправилно потребителско име или email" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Не може да се изтрие. Нов опит?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Ръчна настройка" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Съществуващите събития може да бъдат изтрити или запазени, ако като се изключи синхронизирането" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Съществуващите записи може да бъдат изтрити или запазени, ако като се изключи синхронизирането" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Изтриване от телефона" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Запазване в телефона" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Видеоклипове" + diff --git a/po/ca.po b/po/ca.po new file mode 100755 index 0000000..1e0fdc1 --- /dev/null +++ b/po/ca.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Altres" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Sincronització auto" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "Acceptar" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Afegir compte" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Tasca" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Sincronització de contactes" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dies cim" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Fi de l'hora cim" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Inici d'hora cim" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Totes les dades" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "Correu electrònic" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Pot administrar els contactes, calendaris, correu electrònic i comptes de MI" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Mostrar contrasenya" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Carpetes de correu per push" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Sincronització de tasques" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Calend" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Trucada VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Desconegut" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Afegir" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Contacte" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Comptes" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Desactivada" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Publicar" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Mantenir la connexió amb bateria baixa" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Mantingui la connexió en itinerància" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Sincronitzar automàticament" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Rastrejador mòbil" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Llista comptes" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "S'esborraran totes les dades relacionades amb aquest compte. Continuar?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Nom d'usuari o correu electrònic incorrecte" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "No es pot esborrar. Tornar-ho a intentar?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Configuració manual" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Els esdeveniments existents es poden esborrar o mantenir si es desactiva la sincronització" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "els contactes existents es poden esborrar o mantenir si es desactiva la sincronització" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Esborrar del telèfon" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Mantenir al telèfon" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Vídeos" + diff --git a/po/cs.po b/po/cs.po new file mode 100755 index 0000000..3d3c366 --- /dev/null +++ b/po/cs.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Jiné" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Automaticky synch." + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Přidat účet" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Úkol" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Synchronizace kontaktů" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dny špičky" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Konec špičky" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Začátek špičky" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Všechna data" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Můžete spravovat své kontakty, kalendáře, e-maily a chatové účty" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Zobrazit heslo" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Poštovní složky k nabízení" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Synchronizace úkolů" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalendář" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Hovor VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Neznámé" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Přid." + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Účty" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotografie" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Neaktivní" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Vystavit" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Zachovat připojení při vybité baterii" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Zachovat připojení během roamingu" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Synchronizovat automaticky" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobilní stopař" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Seznam\núčtů" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Všechna data související s tímto účtem budou odstraněna. Chcete pokračovat?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Chybné uživatelské jméno nebo e-mail" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Nelze odstranit. Opakovat akci?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Ruční nastavení" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Po vypnutí synchronizace bude možné stávající události odstranit nebo zachovat" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Po vypnutí synchronizace bude možné stávající kontakty odstranit nebo zachovat" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Odstranit z telefonu" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Zachovat v telefonu" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videa" + diff --git a/po/csv2po_v2 b/po/csv2po_v2 new file mode 100755 index 0000000..85b9c61 Binary files /dev/null and b/po/csv2po_v2 differ diff --git a/po/csv_to_po.py b/po/csv_to_po.py new file mode 100755 index 0000000..cd9af13 --- /dev/null +++ b/po/csv_to_po.py @@ -0,0 +1,177 @@ +#!/usr/bin/env python + +import os +import re +import sys +import csv + +re_strip = re.compile(r'"(.*)"') + +def usage(): + print 'usage: %s input.csv output.po' % sys.argv[0] + +def make_dic(input, outputname): + code, ext = outputname.split('.') + strtbl = {} + + try: + for r in input: + idx_msgid = r.index('msgid') + idx_msgstr = r.index(code) + break + + print 'Language code: %s' % code + + for r in input: + strtbl[r[idx_msgid]] = unicode(r[idx_msgstr], 'euc-kr').encode('utf-8') + + except ValueError, e: + print 'Error: check the language code' + + return strtbl + +def next_newline(lines, i): + while lines[i] <> '': + i = i + 1 + return i + +def next_item(lines, i): + while lines[i][:1] == '"': + i = i + 1 + return i + +def find_msgid(strtbl, lines, i, n): + msgid = '' + mlines = '' + + while i < n: + mlines = mlines + lines[i] + '\n' + i = i + 1 +# print 'mlines: ----------\n%s\n==========' % mlines + + res = re_strip.findall(mlines) + for i in range(len(res)): +# print '[%s]' % res[i] + if res[i] <> '': + if msgid <> '': + msgid = msgid + '\n' + msgid = msgid + res[i] + +# print 'msgid: -----------\n%s\n==========' % msgid + return msgid + + +def to_msgstr(lines): + ret = '' + l_line = lines.split('\n') + if len(l_line) == 1: + ret = 'msgstr "' + l_line[0] + '"\n' + else: + r_line = 'msgstr ""\n' + for i in range(len(l_line)): + r_line = r_line + '"' + l_line[i] + '"\n' + ret = r_line + return ret + +def to_msgid(lines, i, n): + ret = '' + + while i, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-10-07 19:35+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/myaccount_ug_account_list.c:538 +msgid "" +"You can manage your accounts
of email, contacts, calendar and
Instant " +"messenger." +msgstr "" + +#. elm_button_label_set(l_button, (const char*)_("Settings")); +#: src/myaccount_ug_account_list.c:553 +msgid "IDS_COM_BODY_SETTINGS" +msgstr "" + +#. elm_button_label_set(r1_button, (const char*)_("Add")); +#: src/myaccount_ug_account_list.c:558 +msgid "IDS_MA_SK_ADD" +msgstr "" + +#. elm_navigationbar_push(ad->navi_bar, _("Account"), l_button, r1_button, NULL, genlist); +#: src/myaccount_ug_account_list.c:563 +msgid "Accounts" +msgstr "" + +#: src/myaccount_ug_addaccount.c:400 +msgid "Add account" +msgstr "" diff --git a/po/nb.po b/po/nb.po new file mode 100755 index 0000000..a591cb3 --- /dev/null +++ b/po/nb.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Andre" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Autosynkronisering" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Legg til konto" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Oppgave" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Kontaktsynkronisering" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Trafikkdager" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Trafikkperiode slutter" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Trafikkperiode starter" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Alle data" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-post" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Du kan administrere kontakter, kalendere, e-post og direktemeldingskontoer" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Vis passord" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "E-postmapper som skal pushes" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Oppgavesynkronisering" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalender" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP-anrop" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Ukjent" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Tilføy" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Kontoer" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Inaktiv" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Publiser" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Behold tilkoblingen ved lavt batteri" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Behold tilkobling ved roaming" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Synkroniser automatisk" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Tyverisporing" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Konto liste" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Alle data forbundet med denne kontoen slettes. Fortsette?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Feil brukernavn eller e-post" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Kan ikke slette. Prøve på nytt?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Manuelt oppsett" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Eksisterende hendelser kan slettes eller beholdes dersom synkronisering slås av" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Eksisterende kontakter kan slettes eller beholdes dersom synkroniseringen slås av" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Slett fra telefon" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Behold i telefon" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videoklipp" + diff --git a/po/nl_NL.po b/po/nl_NL.po new file mode 100755 index 0000000..2ad0fda --- /dev/null +++ b/po/nl_NL.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Overige" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Automatisch synchroniseren" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Account toevoegen" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Taak" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Contacten synchroniseren" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Piekdagen" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Einde piektijd" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Begin piektijd" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Alle gegevens" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "U kunt contacten, agenda´s, e-mail- en IM-accounts beheren" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Wachtwoord tonen" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "E-mailmappen voor push" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Taak synchroniseren" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Agenda" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP-oproep" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Onbekend" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Voeg toe" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Contact" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Accounts" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Uit" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Plaatsen" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Verbinding behouden bij weinig batterijvoeding" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Verbinding behouden bij roaming" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Automatisch synchroniseren" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobiel opsporen" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Account-lijst" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Alle gegevens die met dit account samenhangen, worden verwijderd. Doorgaan?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Gebruikersnaam of e-mail onjuist" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Kan niet verwijderen. Opnieuw proberen?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Handmatige instelling" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Bestaande agenda-items kunnen worden verwijderd of behouden als synchronisatie wordt uitgeschakeld" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Bestaande contacten kunnen worden verwijderd of behouden als synchronisatie wordt uitgeschakeld" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Verwijderen uit telefoon" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Behouden op telefoon" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Video's" + diff --git a/po/no.po b/po/no.po new file mode 100755 index 0000000..7e4f61f --- /dev/null +++ b/po/no.po @@ -0,0 +1,135 @@ +msgid "IDS_COM_BODY_TASK" +msgstr "Oppgave" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_OTHERS" +msgstr "Andre" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Autosynkronisering" + +msgid "IDS_MA_BODY_ACCOUNT_LIST" +msgstr "Account list" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Du kan administrere kontakter, kalendere, e-post og direktemeldingskontoer" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalender" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP-anrop" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Ukjent" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Tilføy" + +msgid "IDS_FB_BUTTON_VIDEO" +msgstr "Videoklipp" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Kontoer" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Legg til konto" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Inaktiv" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Publiser" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Kontaktsynkronisering" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Behold tilkoblingen ved lavt batteri" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Behold tilkobling ved roaming" + +msgid "IDS_MA_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Trafikkdager" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Trafikkperiode slutter" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Trafikkperiode starter" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Synkroniser automatisk" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Alle data" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Tyverisporing" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-post" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Alle data forbundet med denne kontoen slettes. Fortsette?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Feil brukernavn eller e-post" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Kan ikke slette. Prøve på nytt?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Vis passord" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "E-postmapper som skal pushes" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Manuelt oppsett" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Eksisterende hendelser kan slettes eller beholdes dersom synkronisering slås av" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Eksisterende kontakter kan slettes eller beholdes dersom synkroniseringen slås av" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Slett fra telefon" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Behold i telefon" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Oppgavesynkronisering" + diff --git a/po/pl.po b/po/pl.po new file mode 100755 index 0000000..0e3e804 --- /dev/null +++ b/po/pl.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Inne" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Autom. synchr." + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Dodaj konto" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Zadanie" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Synchr. kontaktów" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dni szczytu" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Koniec szczytu" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Początek szczytu" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Wszystkie dane" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Możesz zarządzać kontaktami, kalendarzami, e-mailami i kontami komunikatora" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Wyświetl hasło" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Synchronizowane katalogi" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Synchr. zadań" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalend." + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Połączenie VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Nieznana" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Dodaj" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Konta" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Zdjęcie" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Nieaktywne" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Publikuj" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Utrzymuj połączenie przy rozładowanej baterii" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Utrzymuj połączenie w roamingu" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Synchronizuj automatycznie" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobile Tracker" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Lista kont" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Wszystkie dane powiązane z tym kontem zostaną usunięte. Kontynuować?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Nieprawidłowa nazwa użytkownika lub adres e-mail" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Nie można usunąć. Spróbować ponownie?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Konfiguracja ręczna" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Po wyłączeniu synchronizacji istniejące wydarzenia mogą zostać usunięte lub zachowane" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Po wyłączeniu synchronizacji istniejące kontakty mogą zostać usunięte lub zachowane" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Usuń z telefonu" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Zachowaj w telefonie" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Filmy" + diff --git a/po/po_to_csv.py b/po/po_to_csv.py new file mode 100755 index 0000000..4a23e94 --- /dev/null +++ b/po/po_to_csv.py @@ -0,0 +1,72 @@ +#!/usr/bin/env python + +import os +import re +import sys +import csv + +OUTPUT = '' +INPUT = '' + +def usage(): + print 'usage: %s input.po output.csv' % sys.argv[0] + +def write_header(inputname, out): + code, ext = inputname.split('.') + out.writerow(['msgid', code]) + +def to_string(l): + str = '' + for i in range(len(l)): + if str <> '' and l[i] <> '': + str += '\n' + str += l[i] + return str + +def _extract(outf, po): + arg_re = r'"[^\\\"]*(?:\\.[^\\\"]*)*"' + arg_re = '%s(?:\s+%s)*' % (arg_re, arg_re) + re_get = re.compile(r'^msgid\s+(' + arg_re + ')\s*\nmsgstr\s+(' + arg_re + ')\s*\n', re.M) + + re_strip = re.compile(r'"(.*)"') + + res = re_get.findall(po) + + for i in range(len(res)): + l_id = re_strip.findall(res[i][0]) + s_id = to_string(l_id) + if s_id == '': + continue + l_str = re_strip.findall(res[i][1]) + s_str = to_string(l_str) + outf.writerow([s_id, unicode(s_str, 'utf-8').encode('euc-kr')]) + +def extract(): + if len(sys.argv) < 3: + usage() + return + + INPUT = sys.argv[1] + OUTPUT = sys.argv[2] + + print 'Input filename: %s' % INPUT + print 'Output filename: %s' % OUTPUT + + try: + outf = csv.writer(open(OUTPUT, 'wb')) + write_header(INPUT, outf) + + inf = open(INPUT, 'r') + po = inf.read() + + _extract(outf, po) + + inf.close() + + except Exception, e: + print e + + +if __name__ == "__main__": + extract() + diff --git a/po/pt_BR.po b/po/pt_BR.po new file mode 100755 index 0000000..aa1d52a --- /dev/null +++ b/po/pt_BR.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Outros" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Sincronização automática" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Adicionar conta" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Tarefas" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Sincronização de contatos" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dias de pico" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Fim do horário de pico" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Início do horário de pico" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Todos os dados" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Você pode gerenciar seus contatos, calendários, e-mails e contas de IM" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Exibir senha" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Pastas de e-mail para receber" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Sincronização de tarefa" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Calendário" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Chamadas VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Desconhecido" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Adicionar" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Contato" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Contas" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Inativo" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Publicar" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Manter a conexão em caso de bateria fraca" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Manter conexão durante o roaming" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Sincronizar automaticamente" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobile Tracker" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Lista de contas" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Todos os dados relacionados a esta conta serão apagados. Continuar?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Nome de usuário ou e-mail incorretos" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Impossível apagar. Tentar novamente?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Configuração manual" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Os eventos existentes podem ser excluídos ou salvos se a sincronização for desativada" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Os contatos existentes podem ser excluídos ou salvos se a sincronização for desativada" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Excluir do telefone" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Salvar no telefone" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Vídeos" + diff --git a/po/pt_PT.po b/po/pt_PT.po new file mode 100755 index 0000000..9e8a40b --- /dev/null +++ b/po/pt_PT.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Outros" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Sincronização automática" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Adicionar conta" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Tarefa" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Sincronizar contactos" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dias de ponta" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Fim de hora de ponta" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Início de hora de ponta" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Todos os dados" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Pode gerir os seus contactos, agendas, e-mail e contas de MI" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Mostrar palavra-passe" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Pastas de correio para difundir" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Sincronização de tarefa" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Agenda" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Chamada VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Desconhecido" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Adicion." + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Contacto" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Contas" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Inactivo" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Publicar" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Manter a ligação no caso de bateria fraca" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Manter ligação durante o roaming" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Sincronizar automaticamente" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobile tracker" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Lista contas" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Todos os dados relacionados com esta conta serão eliminados. Continuar?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Nome de utilizador ou e-mail incorrectos" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Impossível eliminar. Tentar novamente?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Configuração manual" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Os eventos existentes podem ser eliminados ou guardados se a sincronização for desligada" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Os contactos existentes podem ser eliminados ou guardados se a sincronização for desligada" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Eliminar do telefone" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Guardar no telefone" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Vídeos" + diff --git a/po/ro.po b/po/ro.po new file mode 100755 index 0000000..3108713 --- /dev/null +++ b/po/ro.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Altele" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Sincron. automată" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Adăugare cont" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Activitate" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Sincronizare contact" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Zile de vârf" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Final perioadă de vârf" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Început perioadă de vârf" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Toate datele" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "Email" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Vă puteţi gestiona contactele, calendarele, e-mailul şi conturile IM" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Afişare parolă" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Directoare de poştă electronică pentru push" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Sincronizare activitate" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Calendar" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Apel VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Necunoscut" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Adăug." + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Contact" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Conturi" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotografie" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Inactiv" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Postare" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Conexiune continuă cu bateria descărcată" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Menţinere conexiune în roaming" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Sincronizare automată" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobile Tracker" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Listă\nde cont." + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Toate datele asociate acestui cont vor fi şterse. Continuaţi?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Nume de utilizator sau adresă de e-mail incorecte" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Imposibil de şters. Încercaţi din nou?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Configurare manuală" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Evenimentele existente pot fi şterse sau păstrate dacă sincronizarea este dezactivată" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Contactele existente pot fi şterse sau păstrate dacă sincronizarea este dezactivată" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Ştergere din telefon" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Păstrare în telefon" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videoclipuri" + diff --git a/po/ru_RU.po b/po/ru_RU.po new file mode 100755 index 0000000..c4fd07f --- /dev/null +++ b/po/ru_RU.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Прочее" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Автосинхронизация" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "ОК" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Добавить уч. запись" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Задача" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Синхронизация контактов" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Пиковые дни" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Время окончания пикового периода" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Время начала пикового периода" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Все данные" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Вы можете управлять своими контактами, календарями, электронной почтой и учетными записями IM" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Показать пароль" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Папки почты для push-синхронизации" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Синхронизация задач" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Календ." + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Вызов VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Неизвестно" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Добав." + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Контакт" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Учетные записи" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Фото" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Неактивно" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Опубликовать" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Не разрывать подключение при низком заряде батареи" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Не разрывать подключение в роуминге" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Синхронизировать автоматически" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Оповещение о смене SIM-карты" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Учетные записи" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Все данные, относящиеся к этой учетной записи, будут удалены. Продолжить?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Неправильное имя пользователя или адрес электронной почты" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Невозможно удалить. Повторить попытку?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Настройка вручную" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "После отключения синхронизации можно либо удалить, либо сохранить существующие события" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "После отключения синхронизации можно либо удалить, либо сохранить существующие контакты" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Удалить с телефона" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Сохранить на телефоне" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Видео" + diff --git a/po/sk.po b/po/sk.po new file mode 100755 index 0000000..aa2ead8 --- /dev/null +++ b/po/sk.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Ostatné" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Automat. synchronizácia" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Pridať konto" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Úloha" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Synchronizácia kontaktov" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dni silnej prevádzky" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Konečný čas silnej prevádzky" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Počiatočný čas silnej prevádzky" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Všetky údaje" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-mail" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Môžete spravovať kontakty, kalendáre, e-maily a kontá okamžitých správ" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Zobraziť heslo" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Poštové priečinky na automatickú synchronizáciu" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Synchronizácia úloh" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalendár" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Hovor VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Neznáme" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Pridať" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Kontá" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotografia" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Neaktívne" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Príspevok" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Zachovať spojenie pri slabej batérii" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Zachovať spojenie pri roamingu" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Synchronizovať automaticky" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobilný stopár" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Zoznam\nkont" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Všetky údaje týkajúce sa tohto konta sa vymažú. Pokračovať?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Nesprávne meno používateľa alebo e-mail" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Nedá sa vymazať. Skúsiť znova?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Manuálne nastavenie" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Existujúce udalosti môžete buď odstrániť, alebo ponechať, ak je synchronizácia vypnutá" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Existujúce kontakty môžete buď odstrániť, alebo ponechať, ak je synchronizácia vypnutá" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Odstrániť z telefónu" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Ponechať v telefóne" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videá" + diff --git a/po/sl.po b/po/sl.po new file mode 100755 index 0000000..d2e8416 --- /dev/null +++ b/po/sl.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Drugo" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Samodejna sinhronizacija" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "V redu" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Dodaj račun" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Opravila" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Sinhronizacija stikov" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Zasedeni dnevi" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Konec bolj zasedenega časa" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Začetek bolj zasedenega časa" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Vsi podatki" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-pošta" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Upravljate lahko stike, koledarje, e-pošto in račune za NS" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Prikaži geslo" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Poštne mape za potisk" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Sinhronizacija opravila" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Koledar" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Klic VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Neznano" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Dodaj" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Stik" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Računi" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotografija" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Neaktivno" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Objavi" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Ohrani povezavo pri skoraj prazni bateriji" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Ohrani povezavo med gostovanjem" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Sinhroniziraj samodejno" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobilni sledilnik" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Seznam\nračunov" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Vsi podatki, povezani s tem računom, bodo izbrisani. Nadaljujem?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Napačno uporabniško ime ali e-pošta" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Ni mogoče izbrisati. Poskusim znova?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Ročna nastavitev" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Obstoječe dogodke lahko izbrišete ali ohranite, če je sinhronizacija izključena" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Obstoječe stike lahko izbrišete ali ohranite, če je sinhronizacija izključena" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Izbriši iz telefona" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Ohrani v telefonu" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videoposnetki" + diff --git a/po/sr.po b/po/sr.po new file mode 100755 index 0000000..227e076 --- /dev/null +++ b/po/sr.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Ostalo" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Automatska sinhronizacija" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Dodaj nalog" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Zadatak" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Sinhronizacija kontakata" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Udarni dani" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Kraj udarnog vremena" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Početak udarnog vremena" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Svi podaci" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-pošta" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Možeš da upravljaš svojim kontaktima, kalendarom, e-poštom i nalozima za trenutne poruke" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Prikaži šifru" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Folderi za pritisne poruke" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Sinhronizacija zadataka" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalendar" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP poziv" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Nepoznato" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Dodaj" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Nalozi" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotografija" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Neaktivno" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Objavi" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Održavaj vezu pri slaboj bateriji" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Održavaj vezu u romingu" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Sinhronizuj automatski" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobile tracker" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Lista\nnaloga" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Biće obrisani svi podaci povezani sa ovim nalogom. Nastavak?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Neispravno korisničko ime ili adresa e-pošte" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Nemoguće obrisati. Ponoviti?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Ručno konfigurisanje" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Ako je sinhronizacija isključena, postojeći događaji se mogu izbrisati ili sačuvati" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Ako je sinhronizacija isključena, postojeći kontakti se mogu izbrisati ili sačuvati" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Izbriši iz telefona" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Sačuvaj na telefonu" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Video zapisi" + diff --git a/po/sv.po b/po/sv.po new file mode 100755 index 0000000..856df30 --- /dev/null +++ b/po/sv.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Annat" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Autosynkning" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Lägg till konto" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Uppgift" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Synkronisera kontakter" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Dagar med hög belastning" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Sluttid för hög belastning" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Starttid för hög belastning" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Alla data" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-post" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Du kan hantera kontakter, kalender, e-post och IM-konton" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Visa lösenord" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Mappar som ska pushas" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Synkronisera uppgifter" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalender" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP-samtal" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Okänd" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Lägg till" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Konton" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Foto" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Inaktiv" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Posta" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Behåll anslutning vid låg batterinivå" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Behåll anslutning vid roaming" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Synka automatiskt" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Stöldspårning" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Kontolista" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Alla data som hänför sig till det här kontot raderas. Fortsätta?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Fel användarnamn eller e-post" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Kan inte radera. Försöka igen?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Manuell inställning" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Befintliga händelser kan antingen raderas eller behållas om synkroniseringen stängs av" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Befintliga kontakter kan antingen raderas eller behållas om synkroniseringen stängs av" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Ta bort från telefonbok" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Behåll i telefon" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videoklipp" + diff --git a/po/th.po b/po/th.po new file mode 100755 index 0000000..e054006 --- /dev/null +++ b/po/th.po @@ -0,0 +1,135 @@ +msgid "IDS_COM_BODY_TASK" +msgstr "สิ่งที่ต้องทำ" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_OTHERS" +msgstr "อื่นๆ" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "ซิงค์​อัตโนมัติ" + +msgid "IDS_MA_BODY_ACCOUNT_LIST" +msgstr "Account list" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "คุณ​สามารถ​จัดการ​ราย​ชื่อ, ​ปฏิทิน, ​อี​เมล์ และ​บัญชี​ผู้​ใช้ IM ​ได้" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "ปฏิทิน" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "บริการ VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "ไม่​รู้จัก" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "เพิ่ม" + +msgid "IDS_FB_BUTTON_VIDEO" +msgstr "วี​ดี​โอ" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "ราย​ชื่อ" + +msgid "IDS_MA_BUTTON_OK" +msgstr "ตกลง" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "แอคเคาท์" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "เพิ่ม​แอคเคาท์" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "รูปถ่าย" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "ไม่​ทำ​งาน" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Post" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "ซิงค์​ราย​ชื่อ" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "เชื่อม​ต่อ​ต่อ​ไป​ขณะ​แบตเตอรี่​ต่ำ" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "เชื่อม​ต่อ​ต่อ​ไป​ขณะ​โรม​มิ่ง" + +msgid "IDS_MA_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "วัน​ใน​ช่วง​เร่ง​ด่วน" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "เวลา​สิ้น​สุด​ช่วง​เร่ง​ด่วน" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "เวลา​เริ่ม​ต้น​ช่วง​เร่ง​ด่วน" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "ทำ​ข้อมูล​ให้​ตรง​กัน​โดย​อัตโนมัติ" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "ข้อมูล​ทั้ง​หมด" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "โม​บายล์​แทร็กเกอร์" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "อีเมล์" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "ผู้​ใช้ Exchange" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "ข้อมูล​ทั้ง​หมด​ที่​เกี่ยว​ข้อง​\nกับ​แอคเคาท์​นี้​จะ​\nถูกลบ​ออก ดำเนินการ?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "ชื่อ​ผู้​ใช้​หรือ​อี​เมล์​ไม่​ถูก​ต้อง" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "ลบ​ไม่​ได้ ลอง​อีก​ครั้ง?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "แสดง​รหัส​ผ่าน" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "โฟลเดอร์​เมล์​ที่​จะ Push" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "การ​ตั้ง​ค่า​เอง" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "เหตุการณ์​ที่​มี​อยู่​สามารถ​ลบ​หรือ​เก็บ​ไว้​ได้ หาก​ปิด​การ​ซิ​งโค​รไน​ซ์" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "ราย​ชื่อ​ที่​มี​อยู่​สามารถ​ลบ​หรือ​เก็บ​ไว้​ได้ หาก​ปิด​การ​ซิ​งโค​รไน​ซ์" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "ลบ​ออก​จาก​โทรศัพท์" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "เก็บ​ใน​โทรศัพท์" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "ซิงค์​รายการ" + diff --git a/po/tr_TR.po b/po/tr_TR.po new file mode 100755 index 0000000..c6cf611 --- /dev/null +++ b/po/tr_TR.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Diğerleri" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Oto eşitleme" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "Tamam" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Hesap ekle" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Görevler" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Kişi senkr" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "En yoğun günler" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Yoğun dönem bitiş zamanı" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Yoğun dönem başlangıç zamanı" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Tüm veriler" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-posta" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Değişim" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Kişileri, takvimleri, e-postayı ve IM hesaplarını yönetebilirsiniz" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Parolayı göster" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Klasörleri push'a postala" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Görev senkr" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Takvim" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP araması" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Bilinmeyen" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Ekle" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kişi" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Hesaplar" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotoğraf" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Devre dışı" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Gönder" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Düşük pilde bağlantınızı koruyun" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Roaming sırasında bağlantınızı koruyun" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Otomatik olarak senkronize et" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobil izleyici" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Hesap listesi" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Bu hesapla ilgili tüm veriler silinecek. Devam edilsin mi?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Hatalı kullanıcı adı veya e-posta" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Silinemiyor. Yeniden denensin mi?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Manuel kurulum" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Eşitleme kapatılırsa, mevcut etkinlikler silinebilir veya saklanabilir" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Eşitleme kapatılırsa, mevcut kişiler silinebilir veya saklanabilir" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Telefondan sil" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Telefonda sakla" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videolar" + diff --git a/po/uk.po b/po/uk.po new file mode 100755 index 0000000..21cc0cb --- /dev/null +++ b/po/uk.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Інші" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Автосинхронізація" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Дод. обл. запис" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Завдання" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Синхронізація контактів" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Дні максимального навантаження" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Час завершення максимального навантаження" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Час початку максимального навантаження" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Всі дані" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "Email" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Можна керувати контактами, календарями, повідомленнями Email та обліковими записами служби миттєвих повідомлень" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Показати пароль" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Поштові папки для Push-повідомлень" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Синхронізація завдань" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Календар" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Виклик VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Невідомо" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Додати" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Контакт" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Обл. записи" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Фото" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Неактивно" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Post" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Зберегти підключення за розрядженої батареї" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Зберегти підключення в роумінгу" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Синхронізувати автоматично" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Мобільна сигналізація" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "Спис.обл. запис." + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Усі дані, пов'язані з цим обліковим записом, буде видалено. Продовжити?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Хибне ім’я користувача або адреса Email" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Неможливо видалити. Спробувати ще раз?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Настроювання вручну" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Поточні події можуть бути видалені або збережені, якщо синхронізацію вимкнено" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Поточні контакти можуть бути видалені або збережені, якщо синхронізацію вимкнено" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Видалити з телефону" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Залишити на телефоні" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Відео" + diff --git a/po/update-po.sh b/po/update-po.sh new file mode 100755 index 0000000..bb23093 --- /dev/null +++ b/po/update-po.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +PACKAGE=myaccount_ui +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_US en_GB ja ko_KR zh_CN" +ALL_LINGUAS="en_US nl de zh_HK zh_CN ru ko zh_TW ja es el it tk pt fr" + +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 \ +&& test ! -f ${PACKAGE}.po \ + || (rm -f ${PACKAGE}.pot && mv ${PACKAGE}.po ${PACKAGE}.pot) + +if [ $? -ne 0 ]; then + echo "error" + exit 1 +else + echo "done" +fi + +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/uz.po b/po/uz.po new file mode 100755 index 0000000..bfd94ac --- /dev/null +++ b/po/uz.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "Boshqalar" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Avto-sinxronlash" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Hisob qaydnoma qo‘shish" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "Topshiriq" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Kontakt sinxronlanishi" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Pik kunlar" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Pik tugatish vaqti" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Pik boshlash vaqti" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Barcha ma’lumot" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "E-pochta" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Kontaktlar, kalendarlar, e-pochtalar va IM hisob qaydnomalarini boshqarishingiz mumkin" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Parol ko‘rsatilsin" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Push uchun pochta jildlari" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Vazifa sinxronlash" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Kalendar" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP qo‘ng‘irog‘i" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Noma’lum" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Qo‘shish" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Kontakt" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Hisob qaydnomalari" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Fotosurat" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Nofaol" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Xabar yuborish" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Ulanishni past batareya zaryadida davom ettiring" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Ulanishni roumingda davom ettiring" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Avtomatik ravishda sinxronlashtiring" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Mobil telefonni topish xizmati" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "His/qayd. ro‘yx." + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Ushbu hisob qaydnomasiga tegishli barcha ma’lumotlar o'chirib tashlanadi. Davom ettirilsinmi?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Foydalanuvchi nomi yoki e-pochta noto‘g‘ri" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "O'chirib bo‘lmaydi. Qayta urinib ko‘rilsinmi?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Qo‘lda o‘rnatish" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Sinxronlash o‘chirilganda mavjud hodisalar yo‘q qilinishi yoki saqlanishi mumkin" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Sinxronlashtirish o‘chirilgandan so‘ng kontakt ma’lumoti yo‘q qilinishi yoki saqlanishi mumkin" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Telefondan o‘chirish" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Telefonda saqlash" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "Videolar" + diff --git a/po/vi.po b/po/vi.po new file mode 100755 index 0000000..5a3bb60 --- /dev/null +++ b/po/vi.po @@ -0,0 +1,135 @@ +msgid "IDS_COM_BODY_TASK" +msgstr "Nhiệm vụ" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_OTHERS" +msgstr "Khác" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "Tự động đồng bộ" + +msgid "IDS_MA_BODY_ACCOUNT_LIST" +msgstr "Account list" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "Bạn có thể quản lý các danh bạ, lịch, thư điện tử và tài khoản IM của bạn" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "Lịch" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "Cuộg gọi VoIP" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "Không rõ" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "Thêm" + +msgid "IDS_FB_BUTTON_VIDEO" +msgstr "Video" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "Danh bạ" + +msgid "IDS_MA_BUTTON_OK" +msgstr "OK" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "Tài khoản" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "Thêm tài khoản" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "Ảnh" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "Không kích hoạt" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Post" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "Đồng bộ danh bạ" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "Giữ kết nối khi pin yếu" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "Giữ kết nối khi chuyển vùng" + +msgid "IDS_MA_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "Ngày cao điểm" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "Giờ cao điểm kết thúc" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "Giờ cao điểm bắt đầu" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "Đồng bộ hoá tự động" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "Tất cả dữ liệu" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "Theo dõi điện thoại" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "Email" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "Mọi dữ liệu liên quan đến tài khoản này sẽ bị xóa. Tiếp tục?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "Tên người dùng hoặc email không đúng" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "Không thể xóa. Thử lại?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "Hiện mật mã" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Thư mục để push mail" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "Cài đặt thủ công" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Các sự kiện hiện tại có thể bị xóa hoặc giữ lại nếu đồng bộ bị tắt" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "Các danh bạ hiện tại có thể bị xóa hoặc giữ lại nếu đồng bộ bị tắt" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "Xóa khỏi điện thoại" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "Giữ trên điện thoại" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "Đồng bộ nhiệm vụ" + diff --git a/po/zh_CN.po b/po/zh_CN.po new file mode 100755 index 0000000..78368f2 --- /dev/null +++ b/po/zh_CN.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "其它" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "自动同步" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "确认" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "添加账户" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "任务" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "联系人同步" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "高峰日" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "高峰结束时间" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "高峰开始时间" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "所有数据" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "电子邮件" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "更换" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "微软Exchange ActiveSync 账户" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "您可管理您的联系人、日历、电子邮件和 IM 账户" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "显示密码" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "邮件文件夹推送" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "任务同步" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "日历" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP 电话" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "未知" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "添加" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "联系人" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "账户" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "照片" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "未启动" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "发贴" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "电池电量低时保持连接" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "漫游时保持连接" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "自动同步" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "手机追踪" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "帐户列表" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "与此帐户相关的全部数据将被删除。继续?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "用户名或电子邮件不正确" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "无法删除。重试?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "三星" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "手动设置" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果同步关闭,可删除或保留现存事件" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果同步关闭,可删除或保留现存联系人" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "从手机删除" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "保留在手机" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "视频" + diff --git a/po/zh_HK.po b/po/zh_HK.po new file mode 100755 index 0000000..856fb69 --- /dev/null +++ b/po/zh_HK.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "其他" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "自動同步" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "確定" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "加入帳戶" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "工作" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "聯絡人同步" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "繁忙日子" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "繁忙結束時間" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "繁忙開始時間" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "全部數據" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "電子郵件" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "Exchange" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "您可管理您的聯絡人、日曆、電子郵件、以及 IM 帳戶" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "顯示密碼" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "要推送的電子郵件資料夾" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "工作同步" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "日曆" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP 通話" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "未知" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "新增" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "聯絡人" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "帳戶" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "相片" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "無效" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "張貼" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "電量不足時保持連接" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "漫遊時保持連接" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "自動同步" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "手機追蹤器" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "帳戶清單" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "所有關於此帳戶的數據將被刪除。繼續嗎?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "用戶名稱或電子郵件不正確" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "無法刪除。重試嗎?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "手動設定" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果關閉同步,可刪除或保留現有的事件" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果關閉同步,可刪除或保留現有的聯絡人" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "從手機刪除" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "保留於手機中" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "影片" + diff --git a/po/zh_SG.po b/po/zh_SG.po new file mode 100755 index 0000000..ba535fc --- /dev/null +++ b/po/zh_SG.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "其它" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "自动同步" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "确认" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "添加帐户" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "任务" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "谷歌" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "联系人同步" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "最高日" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "最高结束时间" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "最高开始时间" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "全部数据" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "电邮" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "更换" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "您可管理您的联系人、日历、电子邮件和 IM 账户" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "显示密码" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "邮件文件夹推送" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "任务同步" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "日历" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "三星应用程序" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP 电话" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "未知" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "添加" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "联系人" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "帐户" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "照片" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "未启动" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "发贴" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "电池电量低时保持连接" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "漫游时保持连接" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "自动同步" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "手机追踪器" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "帐户列表" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "与此帐户相关的全部数据将被删除。继续?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "用户名或电子邮件不正确" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "无法删除。重试?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "Samsung" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "手动设置" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果同步关闭,可删除或保留现存事件" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果同步关闭,可删除或保留现存联系人" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "从手机删除" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "保留在手机" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "录像" + diff --git a/po/zh_TW.po b/po/zh_TW.po new file mode 100755 index 0000000..5dbca4f --- /dev/null +++ b/po/zh_TW.po @@ -0,0 +1,141 @@ +msgid "IDS_MA_BODY_OTHERS" +msgstr "其他" + +msgid "IDS_MA_MBODY_AUTO_SYNC" +msgstr "自動同步" + +msgid "IDS_MA_BODY_AOL" +msgstr "AOL" + +msgid "IDS_MA_BUTTON_OK" +msgstr "確認" + +msgid "IDS_MA_HEADER_ADD_ACCOUNT" +msgstr "新增帳號" + +msgid "IDS_FB_HEADER_FACEBOOK" +msgstr "Facebook" + +msgid "IDS_COM_BODY_TASK" +msgstr "工作" + +msgid "IDS_MA_BODY_GOOGLE" +msgstr "Google" + +msgid "IDS_MA_BODY_CONTACT_SYNC" +msgstr "聯絡人同步" + +msgid "IDS_MA_BODY_PEAK_DAYS" +msgstr "尖峰天數" + +msgid "IDS_MA_BODY_PEAK_END_TIME" +msgstr "尖峰結束時間" + +msgid "IDS_MA_BODY_PEAK_START_TIME" +msgstr "尖峰開始時間" + +msgid "IDS_MA_OPT_ALL_DATA" +msgstr "所有資料" + +msgid "IDS_COM_BODY_EMAIL" +msgstr "電子郵件" + +msgid "IDS_MA_BODY_EXCHANGE" +msgstr "交換" + +msgid "IDS_EMAIL_BODY_MICROSOFT_EXCHANGE_ACTIVESYNC" +msgstr "Microsoft Exchange ActiveSync" + +msgid "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS" +msgstr "可管理您的聯絡人、日曆、電子郵件、以及 IM 帳號" + +msgid "IDS_MA_BODY_SHOW_PASSWORD" +msgstr "顯示密碼" + +msgid "IDS_MA_HEADER_MAIL_FOLDERS_TO_PUSH" +msgstr "Push郵件檔案" + +msgid "IDS_MA_BODY_TASK_SYNC" +msgstr "任務同步" + +msgid "IDS_EMAIL_BODY_WINDOWS_LIVE_HOTMAIL" +msgstr "Windows Live Hotmail" + +msgid "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2" +msgstr "日曆" + +msgid "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU" +msgstr "Samsung Apps" + +msgid "IDS_COM_BODY_VOIP_CALL" +msgstr "VoIP 通話" + +msgid "IDS_COM_POP_UNKNOWN" +msgstr "未知" + +msgid "IDS_COM_SK_ADD_LITE" +msgstr "新增" + +msgid "IDS_MA_BODY_CONTACT" +msgstr "聯絡人" + +msgid "IDS_MA_HEADER_ACCOUNTS" +msgstr "帳號" + +msgid "IDS_PB_BODY_PHOTO" +msgstr "相片" + +msgid "IDS_ST_BODY_INACTIVE" +msgstr "停用" + +msgid "IDS_TW_BODY_POST_TWITTER" +msgstr "Post" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_LOW_BATTERY" +msgstr "保持連線於低電量" + +msgid "IDS_MA_BODY_KEEP_CONNECTION_ON_ROAMING" +msgstr "漫遊時保持連接" + +msgid "IDS_MA_BODY_MSN" +msgstr "MSN" + +msgid "IDS_MA_BODY_SYNC_AUTOMATICALLY" +msgstr "自動同步" + +msgid "IDS_ST_BODY_MOBILE_TRACKER" +msgstr "手機追蹤系統" + +msgid "IDS_EMAIL_SK3_ACCOUNT_LIST" +msgstr "帳戶列表" + +msgid "IDS_MA_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q" +msgstr "所有此帳戶的相關資料將被刪除。要繼續嗎?" + +msgid "IDS_MA_POP_INCORRECT_USER_NAME_OR_EMAIL" +msgstr "不正確的用戶名或電子郵件" + +msgid "IDS_MA_BODY_UNABLE_TO_DELETE_TRY_AGAIN_Q" +msgstr "無法刪除。再試一次?" + +msgid "IDS_ST_BODY_SAMSUNG" +msgstr "三星" + +msgid "IDS_MA_BODY_MANUAL_SETUP" +msgstr "手動設定" + +msgid "IDS_MA_POP_EXISTING_EVENTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果關閉同步,可刪除或保留現有的活動" + +msgid "IDS_MA_POP_EXISTING_CONTACTS_CAN_BE_EITHER_DELETED_OR_KEPT_IF_SYNCHRONISATION_IS_TURNED_OFF" +msgstr "如果關閉同步,可刪除或保留現有的聯絡人" + +msgid "IDS_MA_BUTTON_DELETE_FROM_PHONE" +msgstr "從手機刪除" + +msgid "IDS_MA_BUTTON_KEEP_ON_PHONE" +msgstr "保留於手機中" + +msgid "IDS_ST_BODY_VIDEOS" +msgstr "影片" + diff --git a/setting-myaccount-efl.xml b/setting-myaccount-efl.xml new file mode 100755 index 0000000..20daad3 --- /dev/null +++ b/setting-myaccount-efl.xml @@ -0,0 +1,27 @@ + + + + Wonyoung Lee + My Account Application + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/myaccount_ug_account_list.c b/src/myaccount_ug_account_list.c new file mode 100755 index 0000000..42e3b40 --- /dev/null +++ b/src/myaccount_ug_account_list.c @@ -0,0 +1,1119 @@ +/* + * 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://floralicense.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 +#include +#include "myaccount_ug_account_list.h" +#include "myaccount_ug_addaccount.h" +#include "myaccount_ug_common.h" + +typedef struct __capability_data { + char* type; + int state; +}myaccount_capability_data; + +typedef struct __account_list_priv { + int account_id; + char username[256]; + char display_name[256]; + char email_address[256]; + char package_name[256]; + char domain_name[60]; + char icon_path[PATH_MAX]; + char capability[128]; + int secret; + int list_index; + int sync_status; + GSList *capablity_list; +}myaccount_list_priv; + +static Elm_Genlist_Item_Class account_list_itc; +static Elm_Genlist_Item_Class account_list_title_itc; +static Elm_Genlist_Item_Class account_auto_sync_itc; +static Elm_Genlist_Item_Class account_list_itc_sep; +static Elm_Genlist_Item_Class account_list_itc_sep_end; +static myaccount_list_priv *account_info; +static int account_index = 0; + +static void __myaccount_account_list_addaccount_cb( void *data, + Evas_Object *obj, void* event_info ); +static void _myaccount_ug_account_list_layout_cb(ui_gadget_h ug, + enum ug_mode mode, void *priv); +static void _myaccount_ug_account_list_result_cb(ui_gadget_h ug, + service_h service, void *priv); +static void _myaccount_ug_account_list_destroy_cb(ui_gadget_h ug, + void *priv); +static void __myaccount_account_list_append_genlist(myaccount_appdata *ad, + int count); + +static char *__myaccount_account_list_get_capablity_string_value(const char* capability_type) +{ + if (!strcmp(capability_type, ACCOUNT_SUPPORTS_CAPABILITY_CONTACT)) + return dgettext(MA_UG_NAME, "IDS_MA_BODY_CONTACT"); + else if (!strcmp(capability_type, ACCOUNT_SUPPORTS_CAPABILITY_CALENDAR)) + return dgettext(MA_UG_NAME, "IDS_COM_BODY_CALENDAR_T_MAINMENU_ABB2"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_PHOTO)) + return dgettext(MA_UG_NAME, "IDS_PB_BODY_PHOTO"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_VIDEO)) + return dgettext(MA_UG_NAME, "IDS_ST_BODY_VIDEOS"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_EMAIL)) + return dgettext(MA_UG_NAME, "IDS_COM_BODY_EMAIL"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_POST)) + return dgettext(MA_UG_NAME, "IDS_TW_BODY_POST_TWITTER"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_VOIP)) + return dgettext(MA_UG_NAME, "IDS_COM_BODY_VOIP_CALL"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_SAMSUNG_APPS)) + return dgettext(MA_UG_NAME, "IDS_COM_BODY_SAMSUNG_APPS_T_MAINMENU"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_MOBILE_TRACKER)) + return dgettext(MA_UG_NAME, "IDS_ST_BODY_MOBILE_TRACKER"); + else if (!strcmp(capability_type ,ACCOUNT_SUPPORTS_CAPABILITY_TASK)) + return dgettext(MA_UG_NAME, "IDS_COM_BODY_TASK"); + else + return dgettext(MA_UG_NAME, "IDS_COM_POP_UNKNOWN"); +} + +bool _myaccount_account_list_get_capablity_text(const char* capability_type, + account_capability_state_e capability_state, + void *user_data) +{ + /* get capabilities of the account*/ + char *capability_string = NULL; + myaccount_list_priv *account_info = (myaccount_list_priv*)user_data; + char *capability_textbuf = account_info->capability; + + myaccount_capability_data *cap_data = (myaccount_capability_data*)malloc(sizeof(myaccount_capability_data)); + if (!cap_data) { + MYACCOUNT_FATAL("malloc failed\n"); + return true; + } + memset(cap_data, 0, sizeof(myaccount_capability_data)); + + cap_data->type = strdup(capability_type); + cap_data->state = capability_state; + + account_info->capablity_list = g_slist_append(account_info->capablity_list, (gpointer)cap_data); + + if (capability_state == ACCOUNT_CAPABILITY_ENABLED) { + capability_string = __myaccount_account_list_get_capablity_string_value( + capability_type); + + MYACCOUNT_VERBOSE("capability_string = %s\n", capability_string); + + if (capability_string != NULL) { + if(strlen(capability_textbuf) > 0) { + char *temp2 = strdup(capability_textbuf); + if (!temp2) { + MYACCOUNT_FATAL("strdup returns NULL\n"); + return false; + } + MA_SNPRINTF(capability_textbuf, 127, "%s, %s", temp2, capability_string); + MA_MEMFREE(temp2); + } else { + MA_SNPRINTF(capability_textbuf, 127, "%s%s", capability_textbuf, + capability_string); + } + } + } + + MYACCOUNT_VERBOSE("capability_textbuf = %s \n", capability_textbuf); + return true; +} + +bool _myaccount_account_list_account_info_cb(account_h account, + void *user_data) +{ + int error_code = -1; + int j = account_index; + + if (!account) { + MYACCOUNT_ERROR("_myaccount_account_list_account_info_cb:account handle is NULL\n"); + return false; + } else { + char *temptxt = NULL; + int id = -1; + account_secrecy_state_e secret; + + error_code = account_get_user_name(account, &temptxt); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_user_name: Failed \n"); + } else if (temptxt && strlen(temptxt)) { + MA_STRNCPY(account_info[j].username, temptxt, + sizeof(account_info[j].username)); + } else { + MYACCOUNT_DBUG("account_get_user_name: returned NULL \n"); + } + MA_MEMFREE(temptxt); + error_code = account_get_display_name(account, &temptxt); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_display_name: Failed \n"); + } else if (temptxt && strlen(temptxt)) { + MA_STRNCPY(account_info[j].display_name, temptxt, + sizeof(account_info[j].display_name)); + } else { + MYACCOUNT_DBUG("account_get_display_name: returned NULL \n"); + } + MA_MEMFREE(temptxt); + error_code = account_get_email_address(account, &temptxt); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_email_address: Failed \n"); + } else if (temptxt && strlen(temptxt)) { + MA_STRNCPY(account_info[j].email_address, temptxt, + sizeof(account_info[j].email_address)); + } else { + MYACCOUNT_DBUG("account_get_email_address: returned NULL \n"); + } + MA_MEMFREE(temptxt); + error_code = account_get_package_name(account, &temptxt); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_package_name: Failed \n"); + } else if (temptxt && strlen(temptxt)) { + MA_STRNCPY(account_info[j].package_name, temptxt, + sizeof(account_info[j].package_name)); + } else { + MYACCOUNT_DBUG("account_get_package_name: returned NULL \n"); + } + MA_MEMFREE(temptxt); + error_code = account_get_account_id(account, &id); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_account_id: Failed \n"); + } else if (id > 0) { + account_info[j].account_id = id; + } else { + MYACCOUNT_DBUG("account_get_account_id: returned 0 or -ve \n"); + } + error_code = account_get_secret(account, &secret); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_secret: Failed \n"); + } else { + account_info[j].secret = secret; + } + error_code = account_get_domain_name(account, &temptxt); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_domain_name: Failed \n"); + } else if (temptxt && strlen(temptxt)) { + MA_STRNCPY(account_info[j].domain_name, temptxt, + sizeof(account_info[j].domain_name)); + } else { + MYACCOUNT_DBUG("account_get_domain_name: returned NULL \n"); + } + MA_MEMFREE(temptxt); + error_code = account_get_icon_path(account, &temptxt); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_icon_path: Failed \n"); + } else if (temptxt && strlen(temptxt)) { + MA_STRNCPY(account_info[j].icon_path, temptxt, + sizeof(account_info[j].icon_path)); + } else { + MYACCOUNT_DBUG("account_get_icon_path: returned NULL \n"); + } + MA_MEMFREE(temptxt); + if(!strlen(account_info[j].icon_path)) + myaccount_common_get_icon_by_name(account_info[j].domain_name , + account_info[j].icon_path); + + error_code = account_get_sync_support(account, + (account_sync_state_e *)&(account_info[j].sync_status)); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("account_get_sync_support: Failed \n"); + } + + error_code = account_get_capability_all(account, + _myaccount_account_list_get_capablity_text, + (void *)&account_info[j]); + if (error_code != ACCOUNT_ERROR_NONE) + MYACCOUNT_ERROR("account_get_capability: Failed \n"); + + account_index++; + } + return true; +} + +static int __myaccount_account_list_populate_account_info() +{ + MYACCOUNT_VERBOSE("\n Inside __myaccount_account_list_populate_account_info !! \n"); + int error_code = -1; + int count=0; + + error_code = account_connect(); + if (error_code != ACCOUNT_ERROR_NONE) + MYACCOUNT_ERROR("account_connect: Failed \n"); + + error_code = account_get_total_count_from_db(&count); + if (error_code != ACCOUNT_ERROR_NONE) + MYACCOUNT_ERROR("account_get_total_count_from_db: Failed \n"); + + MYACCOUNT_DBUG("CURRENT account count is %d\n", count); + account_info = calloc(count, sizeof(myaccount_list_priv)); + account_foreach_account_from_db(_myaccount_account_list_account_info_cb, + NULL); + error_code = account_disconnect(); + if (error_code != ACCOUNT_ERROR_NONE) + MYACCOUNT_ERROR("account_disconnect: Failed \n"); + + MYACCOUNT_VERBOSE("populate myacconut data END\n"); + return count; +} + +void myaccount_account_list_quit_cb( void *data, + Evas_Object *obj, void *event_info ) +{ + int error_code=0; + myaccount_appdata *priv = (myaccount_appdata*)data; + + MYACCOUNT_VERBOSE("myaccount_account_list_quit_cb START\n"); + + if (!priv) { + MYACCOUNT_ERROR("myaccount_account_list_quit_cb callback user data is null!!!\n"); + return; + } + if (account_info->capablity_list) { + g_slist_free(account_info->capablity_list); + account_info->capablity_list = NULL; + } + MA_MEMFREE(account_info); + account_index = 0; + if (priv->ug) { + error_code = ug_destroy_me(priv->ug); + MYACCOUNT_INFO("myaccount_account_list_quit_cb callback : return = %d!!!\n", + error_code); + } + MYACCOUNT_VERBOSE("myaccount_account_list_quit_cb END\n"); +} + +static void __myaccount_account_list_addaccount_cb( void *data, + Evas_Object *obj, void *event_info ) +{ + myaccount_appdata *priv = (myaccount_appdata*)data; + myaccount_addaccount_create_view(priv); +} + +static void __myaccount_check_sync_support_active_count(int *active_count) +{ + int index = 0; + int count = 0, tmp_count = 0; + + if (account_info && account_info->capablity_list) { + g_slist_free(account_info->capablity_list); + account_info->capablity_list = NULL; + } + MA_MEMFREE(account_info); + account_index = 0; + count = __myaccount_account_list_populate_account_info(); + + for (index = 0; index < count; index++) { + MYACCOUNT_VERBOSE("account_info[%d].sync_status = [%d]", + index, account_info[index].sync_status); + if (account_info[index].sync_status == ACCOUNT_SYNC_STATUS_RUNNING) { + tmp_count++; + } + } + *active_count = tmp_count; +} + +static void __myaccount_account_list_refresh_btn_clicked_cb( void *data, + Evas_Object *obj, void *event_info ) +{ + myaccount_appdata *ad = (myaccount_appdata*)data; + int ret = -1; + int sync_all_status = -1; + MYACCOUNT_VERBOSE("__myaccount_account_list_refresh_btn_clicked_cb START"); + if (vconf_get_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, &sync_all_status) < 0) { + MYACCOUNT_ERROR("Fail to get VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT\n"); + return; + } + if (sync_all_status == 0) { + Evas_Object *tmp = elm_object_part_content_unset(ad->refresh_btn, "icon"); + evas_object_hide (tmp); + elm_object_part_content_set(ad->refresh_btn, "icon", ad->cancel_sync_icon); + evas_object_show (ad->cancel_sync_icon); + ret = vconf_set_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, 1); + if (ret == 0) { + MYACCOUNT_DBUG("vconf_set_int Success %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } else { + MYACCOUNT_ERROR("vconf_set_int Failed!!! %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } + if (ad->account_genlist) + myaccount_list_refresh_item_list(ad); + } else if (sync_all_status == 1) { + Evas_Object *tmp = elm_object_part_content_unset(ad->refresh_btn, "icon"); + evas_object_hide (tmp); + elm_object_part_content_set(ad->refresh_btn, "icon", ad->refresh_icon); + evas_object_show (ad->refresh_icon); + ret = vconf_set_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, 0); + if (ret == 0) { + MYACCOUNT_DBUG("vconf_set_int Success %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } else { + MYACCOUNT_ERROR("vconf_set_int Failed!!! %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } + if (ad->account_genlist) + myaccount_list_refresh_item_list(ad); + } else { + MYACCOUNT_INFO("Unkown sync all status(%d) \n", sync_all_status); + } +} + +static char *__myaccount_account_list_gl_label_get(void *data, + Evas_Object *obj, const char *part) +{ + myaccount_list_priv *account_info_item = (myaccount_list_priv*)data; + char domain_name_lower[128] = {0,}; + MYACCOUNT_VERBOSE("__myaccount_account_list_gl_label_get START data=%p, part=%s\n", + data, part); + + if (!account_info_item) { + MYACCOUNT_ERROR(" __myaccount_account_list_gl_label_get: Data is NULL\n"); + return NULL; + } + + if (!strcmp(part, "elm.text") || !strcmp(part, "elm.text.1")) { + myaccount_common_lowercase(account_info_item->domain_name, + domain_name_lower); + + if (strlen(account_info_item->display_name) > 0) + return strdup(account_info_item->display_name); + else if (strlen(account_info_item->email_address) > 0) + return strdup(account_info_item->email_address); + else if (strlen(account_info_item->username) > 0) + return strdup(account_info_item->username); + else + return strdup("Unknown"); + } else if (!strcmp(part, "elm.text.sub") || !strcmp(part, "elm.text.2")) { + if (strlen(account_info_item->capability) <=0 ) + return strdup("Signed In"); + else + return strdup(account_info_item->capability); + } else { + MYACCOUNT_DBUG("__myaccount_account_list_gl_label_get : UNKNOWN part name"); + return strdup(account_info_item->domain_name); + } + + MYACCOUNT_VERBOSE("END of __myaccount_account_list_gl_label_get \n"); + return NULL; +} + +static char *__myaccount_account_list_title_get(void *data, + Evas_Object *obj, const char *part) +{ + if (!strcmp(part, "elm.text")) + return (strdup(dgettext(MA_UG_NAME, "IDS_EMAIL_SK3_ACCOUNT_LIST"))); + + return NULL; +} + +static char *__myaccount_account_auto_sync_gl_label_get(void *data, + Evas_Object *obj, const char *part) +{ + MYACCOUNT_VERBOSE("__myaccount_account_auto_sync_gl_label_get data=%p, obj = %p, part=%s\n", + data, obj, part); + + if (!strcmp(part, "elm.text")) + return (strdup(dgettext(MA_UG_NAME, "IDS_MA_MBODY_AUTO_SYNC"))); + + return NULL; +} + +static void __myaccount_account_auto_sync_gl_sel(void *data, + Evas_Object *obj, void *event_info) +{ + if (!data || !obj) { + MYACCOUNT_ERROR("__myaccount_account_auto_sync_gl_sel : data or obj is NULL"); + return; + } + myaccount_appdata *ad = (myaccount_appdata*)data; + int ret = -1; + + Eina_Bool state = elm_check_state_get(ad->auto_sync_check); + MYACCOUNT_VERBOSE("__myaccount_account_auto_sync_gl_sel :check state= %d\n", state); + + if (state == 0) { + elm_check_state_set(ad->auto_sync_check, EINA_TRUE); + ret = vconf_set_int(VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, 1); + } else { + elm_check_state_set(ad->auto_sync_check, EINA_FALSE); + ret = vconf_set_int(VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, 0); + } + + if (ret == 0) { + MYACCOUNT_DBUG("vconf_set_int Success %s : %d\n", + VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, !state); + if (ad->account_genlist) + myaccount_list_refresh_item_list(ad); + } else { + MYACCOUNT_ERROR("vconf_set_int Failed!!! %s : %d\n", + VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, !state); + } + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); +} + +static void __myaccount_account_auto_sync_check_clicked_cb(void *data, + Evas_Object *obj, void *event_info) +{ + if (!obj || !data) { + MYACCOUNT_ERROR("__myaccount_account_auto_sync_check_clicked_cb : data or obj is NULL"); + return; + } + + myaccount_appdata *ad = (myaccount_appdata*)data; + + Eina_Bool state = elm_check_state_get(obj); + MYACCOUNT_VERBOSE("__myaccount_account_auto_sync_check_clicked_cb : %d\n", state); + + int ret = vconf_set_int(VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, (const int)state); + if (ret == 0) { + MYACCOUNT_DBUG("vconf_set_int Success %s : %d\n", + VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, state); + if (ad->account_genlist) + myaccount_list_refresh_item_list(ad); + } else { + MYACCOUNT_ERROR("vconf_set_int Failed!!! %s : %d\n", + VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, state); + } + +} + +static Evas_Object *__myaccount_account_auto_sync_gl_icon_get(void *data, + Evas_Object *obj, const char *part) +{ + if (!obj || !data) + return NULL; + + myaccount_appdata *ad = (myaccount_appdata*)data; + int auto_sync_status = -1; + MYACCOUNT_VERBOSE("__myaccount_account_auto_sync_gl_icon_get data=%p, obj = %p, part=%s\n", + data, obj, part); + if (!strcmp(part, "elm.icon")) { + if (ad->auto_sync_check) { + evas_object_del(ad->auto_sync_check); + ad->auto_sync_check = NULL; + } + ad->auto_sync_check = elm_check_add(obj); + if (vconf_get_int(VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, + &auto_sync_status) < 0) { + MYACCOUNT_ERROR("Fail to getVCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT\n"); + } + if (auto_sync_status == 0) + elm_check_state_set(ad->auto_sync_check, EINA_FALSE); + if (auto_sync_status == 1) + elm_check_state_set(ad->auto_sync_check, EINA_TRUE); + elm_object_part_content_set(obj, "elm.icon", ad->auto_sync_check); + elm_object_style_set(ad->auto_sync_check, "on&off"); + evas_object_smart_callback_add(ad->auto_sync_check, "changed", + __myaccount_account_auto_sync_check_clicked_cb, + (void *)ad); + evas_object_show(ad->auto_sync_check); + return ad->auto_sync_check; + } + return NULL; +} + +static Evas_Object *__myaccount_account_list_gl_icon_get(void *data, + Evas_Object *obj, const char *part) +{ + char tempbuf[PATH_MAX]; + Evas_Object *icon = NULL; + int auto_sync_status = -1; + myaccount_list_priv *account_info_item = (myaccount_list_priv*)data; + + MYACCOUNT_VERBOSE("__myaccount_account_list_gl_icon_get START data=%p, obj = %p, part=%s\n", + data, obj, part); + + if (!account_info_item) { + MYACCOUNT_ERROR("__myaccount_account_list_gl_icon_get: Data is NULL\n"); + return NULL; + } + memset(tempbuf, 0, sizeof(char)*PATH_MAX); + if (!strcmp(part, "elm.icon.1")) { + MYACCOUNT_VERBOSE("__myaccount_account_list_gl_icon_get : current path %s\n", + account_info_item->icon_path); + if (strlen(account_info_item->icon_path) > 0) { + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", account_info_item->icon_path); + } else { + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", "99_email.png"); + } + + icon = elm_icon_add(obj); + if (strstr(tempbuf, "/")) + elm_image_file_set(icon, tempbuf, NULL); + else + elm_image_file_set(icon, MA_IMAGE_EDJ_NAME, tempbuf); + + evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_NONE, 1, 1); + } + if (!strcmp(part, "elm.icon.2")) { + if (account_info_item->sync_status == ACCOUNT_SYNC_NOT_SUPPORT) + return NULL; + if (vconf_get_int(VCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT, + &auto_sync_status) < 0) { + MYACCOUNT_ERROR("Fail to getVCONFKEY_ACCOUNT_AUTO_SYNC_STATUS_INT\n"); + } + if ((strlen(account_info_item->capability) > 0 ) + && (auto_sync_status == 1)) { + if (account_info_item->sync_status == ACCOUNT_SYNC_STATUS_IDLE) { + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", + "66_myaccount_icon_push.png"); + } else if (account_info_item->sync_status == ACCOUNT_SYNC_STATUS_OFF) { + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", + "66_myaccount_icon_push_deactivated.png"); + } else if (account_info_item->sync_status == ACCOUNT_SYNC_STATUS_RUNNING){ + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", + "66_myaccount_icon_push_press.png"); + } + + } else { + if (account_info_item->sync_status == ACCOUNT_SYNC_STATUS_IDLE + || account_info_item->sync_status == ACCOUNT_SYNC_STATUS_OFF ) { + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", + "66_myaccount_icon_push_deactivated.png"); + } else if (account_info_item->sync_status == ACCOUNT_SYNC_STATUS_RUNNING){ + MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", + "66_myaccount_icon_push_press.png"); + } + } + icon = elm_icon_add(obj); + if (strstr(tempbuf, "/")) + elm_image_file_set(icon, tempbuf, NULL); + else + elm_image_file_set(icon, MA_IMAGE_EDJ_NAME, tempbuf); + + evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_NONE, 1, 1); + } + MYACCOUNT_VERBOSE("__myaccount_account_list_gl_icon_get :: END :: icon = %p\n", + icon); + return icon; +} + +static Evas_Object *__myaccount_account_list_title_progress_get(void *data, + Evas_Object *obj, const char *part) +{ + int sync_all_status; + + if (!obj) + return NULL; + + if (vconf_get_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, &sync_all_status) < 0) { + MYACCOUNT_ERROR("Fail to get VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT\n"); + return NULL; + } + + if (!strcmp(part, "elm.icon") && (sync_all_status == 1)) { + Evas_Object *progressbar = NULL; + progressbar = elm_progressbar_add(obj); + elm_object_style_set(progressbar, "list_process_small"); + evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, 0.5); + evas_object_size_hint_weight_set(progressbar, + EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + evas_object_show(progressbar); + elm_progressbar_pulse(progressbar, EINA_TRUE); + return progressbar; + } + + return NULL; +} + +static void _myaccount_ug_account_list_layout_cb(ui_gadget_h ug, + enum ug_mode mode, void *priv) +{ + Evas_Object *base; + myaccount_appdata *ad; + + if (!ug||!priv) { + MYACCOUNT_FATAL("layout cb error ug=%p, priv=%p\n", ug, priv); + return; + } + ad = (myaccount_appdata*)priv; + base = ug_get_layout(ug); + if (!base) + MYACCOUNT_FATAL("layout cb base is null\n"); + + switch (mode) { + case UG_MODE_FRAMEVIEW: + elm_object_part_content_set (ad->layout_main, "content", base); + break; + case UG_MODE_FULLVIEW: + evas_object_size_hint_weight_set(base, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + elm_win_resize_object_add(ad->win_main, base); + evas_object_show(base); + break; + default: + break; + } +} + +static void _myaccount_ug_account_list_result_cb(ui_gadget_h ug, + service_h service, void *priv) +{ + MYACCOUNT_VERBOSE("_myaccount_ug_account_list_result_cb\n"); +} + +static void _myaccount_ug_account_list_destroy_cb(ui_gadget_h ug, + void *priv) +{ + MYACCOUNT_VERBOSE("_myaccount_ug_account_list_destroy_cb\n"); + myaccount_appdata *mydata = (myaccount_appdata*)priv; + + if (!ug||!mydata) { + MYACCOUNT_ERROR("destroy cb error ug=%p, priv=%p\n", ug, mydata); + return; + } + mydata->item_selected_state = false; + + ug_destroy(ug); + MYACCOUNT_VERBOSE("_myaccount_ug_account_list_destroy_cb : ug callee request kill layout_addaccount=%p\n", + mydata->layout_addaccount); +#ifndef ENABLE_NOTI + myaccount_common_handle_notification(); +#endif +} + +static void __myaccount_ug_launch_signin_view(void *data, myaccount_list_priv *account) +{ + myaccount_appdata *ad = (myaccount_appdata*)data; + service_h service; + int ret; + + if(!account) { + MYACCOUNT_ERROR("__myaccount_ug_launch_signin_view : account info NULL\n"); + return; + } + + ret = service_create(&service); + + myaccount_common_launch_application(MYACCOUNT_REQUEST_VIEW, + strdup(account->package_name), + strdup(account->username), + "", + account->account_id, + ad); + + service_destroy(service); +} + +static void __myaccount_account_list_gl_sel(void *data, + Evas_Object *obj, void *event_info) +{ + myaccount_appdata *ad = myaccount_get_appdata(); + if(ad->item_selected_state) { + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); + return; + } + ad->item_selected_state = true; + Elm_Object_Item *item = (Elm_Object_Item *) event_info; + + MYACCOUNT_VERBOSE("__myaccount_account_list_gl_sel data=%p, obj=%p, event_info=%p\n", + data, obj, event_info); + myaccount_list_priv *account = (myaccount_list_priv*)data; + MYACCOUNT_DBUG("__myaccount_account_list_gl_sel : account name : %s\n", + account->domain_name); + + if (item != NULL) + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); + + __myaccount_ug_launch_signin_view((myaccount_appdata*)ad, account); + + MYACCOUNT_VERBOSE("END of __myaccount_account_list_gl_sel\n"); + + return; +} + +static void __myaccount_account_list_item_selected(void *data, + Evas_Object *obj, void *event_info) +{ + MYACCOUNT_VERBOSE("__myaccount_account_list_item_selected \n"); +} + +static void __myaccount_account_list_append_genlist(myaccount_appdata *ad, + int count) +{ + MYACCOUNT_DBUG ("\n count received in __myaccount_account_list_append_genlist = %d \n", + count); + int index = 0; + Elm_Object_Item *it; + bool supported = false; + + if (count > 0) { + it = elm_genlist_item_append(ad->account_genlist, + &account_list_itc_sep, NULL, NULL, + ELM_GENLIST_ITEM_NONE, NULL, NULL); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + elm_genlist_item_append(ad->account_genlist, + &account_auto_sync_itc, (void *)ad, NULL, + ELM_GENLIST_ITEM_NONE, + __myaccount_account_auto_sync_gl_sel, + (void *)ad); + it = elm_genlist_item_append(ad->account_genlist, + &account_list_title_itc, NULL, NULL, + ELM_GENLIST_ITEM_NONE, NULL, NULL); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + + for (index = 0; index < count; index++) { + supported = false; + if (account_info[index].secret == ACCOUNT_SECRECY_VISIBLE) { + if (ad->capability_filter) { + GSList* iter; + myaccount_list_priv *acc_info = NULL; + acc_info = &account_info[index]; + for (iter = acc_info->capablity_list; iter != NULL; iter = g_slist_next(iter)) { + myaccount_capability_data *cap_data = (myaccount_capability_data*)iter->data; + if (!strcmp(cap_data->type, ad->capability_filter)) { + supported = true; + break; + } + } + if (supported) { + it = elm_genlist_item_append(ad->account_genlist, + &account_list_itc, + (void *)&account_info[index], NULL, + ELM_GENLIST_ITEM_NONE, + __myaccount_account_list_gl_sel, + (void *)&account_info[index]); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + } + } else { + it = elm_genlist_item_append(ad->account_genlist, + &account_list_itc, + (void *)&account_info[index], NULL, + ELM_GENLIST_ITEM_NONE, + __myaccount_account_list_gl_sel, + (void *)&account_info[index]); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + } + } + } + + it = elm_genlist_item_append(ad->account_genlist, + &account_list_itc_sep_end, NULL, NULL, + ELM_GENLIST_ITEM_NONE, NULL, NULL); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + } else { + myaccount_addaccount_create_view(ad); + } + return; +} + +static Evas_Object *__myaccount_account_list_create_genlist( + myaccount_appdata *ad) +{ + Evas_Object *genlist; + + if (ad == NULL) { + MYACCOUNT_ERROR("__myaccount_account_list_create_genlist returns NULL\n"); + return NULL; + } + + int account_count = 0; + account_count = __myaccount_account_list_populate_account_info(); + + account_list_itc.item_style = "dialogue/2text.2icon.3"; + account_list_itc.func.text_get = __myaccount_account_list_gl_label_get; + account_list_itc.func.content_get = __myaccount_account_list_gl_icon_get; + account_list_itc.func.state_get = NULL; + account_list_itc.func.del = NULL; + + account_list_title_itc.item_style = "dialogue/title"; + account_list_title_itc.func.text_get = __myaccount_account_list_title_get; + account_list_title_itc.func.content_get = __myaccount_account_list_title_progress_get; + account_list_title_itc.func.state_get = NULL; + account_list_title_itc.func.del = NULL; + + account_auto_sync_itc.item_style = "dialogue/1text.1icon"; + account_auto_sync_itc.func.text_get = __myaccount_account_auto_sync_gl_label_get; + account_auto_sync_itc.func.content_get = __myaccount_account_auto_sync_gl_icon_get; + account_auto_sync_itc.func.state_get = NULL; + account_auto_sync_itc.func.del = NULL; + + /*to add 40 pixel separator*/ + account_list_itc_sep.item_style = "dialogue/separator"; + account_list_itc_sep.func.text_get = NULL; + account_list_itc_sep.func.content_get = NULL; + account_list_itc_sep.func.state_get = NULL; + account_list_itc_sep.func.del = NULL; + + /*to add 40 pixel list end separator*/ + account_list_itc_sep_end.item_style = "dialogue/separator/end"; + account_list_itc_sep_end.func.text_get = NULL; + account_list_itc_sep_end.func.content_get = NULL; + account_list_itc_sep_end.func.state_get = NULL; + account_list_itc_sep_end.func.del = NULL; + + ad->account_genlist = genlist = elm_genlist_add(ad->navi_bar); + + elm_object_style_set (genlist, "dialogue"); + evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_genlist_mode_set(genlist, EINA_TRUE); + + evas_object_smart_callback_add(genlist, "selected", + __myaccount_account_list_item_selected, + (myaccount_appdata*) ad); + + MYACCOUNT_VERBOSE("\n account count = %d\n", account_count); + + __myaccount_account_list_append_genlist(ad, account_count); + + MYACCOUNT_VERBOSE("END of __myaccount_account_list_create_genlist\n"); + return genlist; +} + +void myaccount_ug_account_list_create(void *data) +{ + MYACCOUNT_VERBOSE("\n myaccount_ug_account_list_create called !!\n"); + myaccount_appdata *ad = data; + Evas_Object *genlist = NULL; + Evas_Object *layout; + Evas_Object *l_button; + Evas_Object *btn; + int sync_all_status; + int active_count = 0; + int index; + int ret =-1; + char buf[BUFSIZE]={0,}; + + if (ad == NULL) { + MYACCOUNT_ERROR("myaccount_ug_account_list_create myaccount_appdata is null\n"); + return; + } + + layout = elm_layout_add(ad->navi_bar); + elm_layout_file_set(layout, + "/usr/ug/res/edje/ug-setting-myaccount-efl/myaccount.edj", + "account_list"); + evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set( layout, EVAS_HINT_FILL, EVAS_HINT_FILL); + edje_object_signal_emit(_EDJ(layout), "elm,state,show,content", "elm"); + edje_object_signal_emit(_EDJ(layout), "elm,bg,show,group_list", "elm"); + evas_object_show(layout); + + ad->refresh_btn = elm_button_add(ad->navi_bar); + elm_object_style_set(ad->refresh_btn, "naviframe/title_icon"); + + ad->refresh_icon = elm_icon_add(ad->navi_bar); + MA_SNPRINTF(buf, BUFSIZE, "%s", "refresh.png"); + if (strstr(buf, "/")) + elm_image_file_set(ad->refresh_icon, buf, NULL); + else + elm_image_file_set(ad->refresh_icon, MA_IMAGE_EDJ_NAME, buf); + elm_image_no_scale_set(ad->refresh_icon, EINA_FALSE); + + ad->cancel_sync_icon = elm_icon_add(ad->navi_bar); + MA_SNPRINTF(buf, BUFSIZE, "%s", "cancel_sync.png"); + if (strstr(buf, "/")) + elm_image_file_set(ad->cancel_sync_icon, buf, NULL); + else + elm_image_file_set(ad->cancel_sync_icon, MA_IMAGE_EDJ_NAME, buf); + elm_image_no_scale_set(ad->cancel_sync_icon, EINA_FALSE); + + genlist = __myaccount_account_list_create_genlist(ad); + + if (vconf_get_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, &sync_all_status) < 0) { + MYACCOUNT_ERROR("Fail to get VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT\n"); + return; + } + if (sync_all_status == 0) { + elm_object_part_content_set(ad->refresh_btn, "icon", ad->refresh_icon); + } else { + for (index = 0; index < account_index; index++) { + if (account_info[index].sync_status == ACCOUNT_SYNC_STATUS_RUNNING) + active_count++; + } + if (active_count == 0) { + elm_object_part_content_set(ad->refresh_btn, "icon", ad->refresh_icon); + ret = vconf_set_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, 0); + if (ret == 0) { + MYACCOUNT_VERBOSE("vconf_set_int Success %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } else { + MYACCOUNT_ERROR("vconf_set_int Failed!!! %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } + } else { + elm_object_part_content_set(ad->refresh_btn, "icon", ad->cancel_sync_icon); + } + } + evas_object_smart_callback_add(ad->refresh_btn, + "clicked", __myaccount_account_list_refresh_btn_clicked_cb, ad); + + elm_object_part_content_set (layout, "accountlist.genlist", genlist); + ad->l_title_sk = l_button = elm_button_add(ad->navi_bar); + evas_object_smart_callback_add(l_button, "clicked", + myaccount_account_list_quit_cb, + ad); + elm_object_style_set(l_button , "naviframe/back_btn/default"); + ad->navi_it = elm_naviframe_item_push(ad->navi_bar, + dgettext(MA_UG_NAME, + "IDS_MA_HEADER_ACCOUNTS"), + l_button, NULL, layout, NULL); + + elm_object_item_part_content_set(ad->navi_it, + "title_right_btn", ad->refresh_btn); + btn = elm_button_add(ad->navi_bar); + if (!btn) { + MYACCOUNT_ERROR("myaccount_ug_account_list_create elm_button_add FAIL\n"); + return; + } + elm_object_style_set(btn, "naviframe/toolbar/default"); + elm_object_text_set(btn, dgettext(MA_UG_NAME, + "IDS_COM_SK_ADD_LITE")); + evas_object_smart_callback_add(btn, "clicked", + __myaccount_account_list_addaccount_cb, + ad); + + elm_object_item_part_content_set(ad->navi_it, "toolbar_button1", btn); + + MYACCOUNT_VERBOSE("END of myaccount_ug_account_list_create\n"); +} + +static Evas_Object *__myaccount_account_list_create_bg(Evas_Object *parent) +{ + MYACCOUNT_VERBOSE("START of __myaccount_account_list_create_bg "); + Evas_Object *bg = elm_bg_add(parent); + evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(parent, bg); + evas_object_show(bg); + MYACCOUNT_VERBOSE("END of __myaccount_account_list_create_bg "); + return bg; +} + +static Evas_Object *__myaccount_account_list_create_main_layout( + Evas_Object *parent, + Evas_Object *bg) +{ + Evas_Object *layout; + MYACCOUNT_VERBOSE("START of __myaccount_account_list_create_main_layout "); + + layout = elm_layout_add(parent); + elm_layout_theme_set(layout, "layout", "application", "default"); + evas_object_size_hint_weight_set( layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + edje_object_signal_emit(_EDJ(layout), "elm,state,show,indicator", "elm"); + edje_object_signal_emit(_EDJ(layout), "elm,state,show,content", "elm"); + elm_object_part_content_set ( layout, "elm.swallow.bg", bg); + evas_object_show( layout ); + MYACCOUNT_VERBOSE("END of __myaccount_account_list_create_main_layout "); + + return layout; +} + +static Evas_Object *__myaccount_account_list_create_navi_layout( + Evas_Object *parent) +{ + Evas_Object *navi_bar; + MYACCOUNT_VERBOSE("START of __myaccount_account_list_create_navi_layout "); + + navi_bar = elm_naviframe_add(parent); + elm_object_part_content_set ( parent, "elm.swallow.content", navi_bar ); + evas_object_show(navi_bar); + MYACCOUNT_VERBOSE("END of __myaccount_account_list_create_navi_layout "); + + return navi_bar; +} + +static void __myaccount_account_list_init_main_view(myaccount_appdata *ad) +{ + elm_win_indicator_mode_set(ad->win_main, ELM_WIN_INDICATOR_SHOW); + ad->bg = __myaccount_account_list_create_bg(ad->win_main); + ad->layout_main = __myaccount_account_list_create_main_layout(ad->win_main, + ad->bg); + ad->base = ad->layout_main; + ad->navi_bar = __myaccount_account_list_create_navi_layout(ad->layout_main); + + MYACCOUNT_VERBOSE("END of __myaccount_account_list_init_main_view : %p\n", + ad->navi_bar); +} + +void myaccount_list_view_create(myaccount_appdata *priv) +{ + struct ug_cbs cbs = {0,}; + cbs.layout_cb = _myaccount_ug_account_list_layout_cb; + cbs.result_cb = _myaccount_ug_account_list_result_cb; + cbs.destroy_cb = _myaccount_ug_account_list_destroy_cb; + cbs.priv = (void *)priv; + + MYACCOUNT_VERBOSE("\n !!!!! myaccount_list_view_create !!!!! \n"); + + __myaccount_account_list_init_main_view(priv); +} + +void myaccount_list_refresh_item_list(myaccount_appdata *ad) +{ + int count = 0; + Elm_Object_Item *p_it; + + p_it = elm_genlist_last_item_get(ad->account_genlist); + + MYACCOUNT_VERBOSE("myaccount_list_refresh_item_list : p_it=%p\n", p_it); + + while (p_it) { + MYACCOUNT_VERBOSE("myaccount_list_refresh_item_list : in loop p_it=%p\n", p_it); + if (p_it) { + elm_object_item_del(p_it); + p_it = elm_genlist_last_item_get(ad->account_genlist); + } + } + + MYACCOUNT_DBUG("Account list removed completely!\n"); + if(account_info) { + if (account_info->capablity_list) { + g_slist_free(account_info->capablity_list); + account_info->capablity_list = NULL; + } + } + MA_MEMFREE(account_info); + account_index = 0; + count = __myaccount_account_list_populate_account_info(); + + __myaccount_account_list_append_genlist(ad, count); + + return; +} + +void myaccount_check_syncall_finish(myaccount_appdata *ad) +{ + int ret = -1; + int active_count = -1; + int sync_all_status = -1; + + MYACCOUNT_VERBOSE("myaccount_check_syncall_finish START\n"); + if (vconf_get_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, &sync_all_status) < 0) { + MYACCOUNT_ERROR("Fail to get VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT\n"); + return; + } + if (sync_all_status == 1) { + __myaccount_check_sync_support_active_count(&active_count); + MYACCOUNT_DBUG("sync_all_status[1], active_count[%d]\n", active_count); + + if ( active_count == 0 ) { + Evas_Object *tmp = elm_object_part_content_unset(ad->refresh_btn, "icon"); + evas_object_hide (tmp); + elm_object_part_content_set(ad->refresh_btn, "icon", ad->refresh_icon); + evas_object_show (ad->refresh_icon); + + ret = vconf_set_int(VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT, 0); + if (ret == 0) { + MYACCOUNT_DBUG("vconf_set_int Success %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } else { + MYACCOUNT_ERROR("vconf_set_int Failed!!! %s \n", + VCONFKEY_ACCOUNT_SYNC_ALL_STATUS_INT); + } + } + } +} + diff --git a/src/myaccount_ug_addaccount.c b/src/myaccount_ug_addaccount.c new file mode 100755 index 0000000..011b34e --- /dev/null +++ b/src/myaccount_ug_addaccount.c @@ -0,0 +1,510 @@ +/* + * 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://floralicense.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 UG_MODULE_API +#define UG_MODULE_API __attribute__ ((visibility("default"))) +#endif + +#include +#include "myaccount_ug_common.h" +#include "myaccount_ug_addaccount.h" +#include "myaccount_ug_account_list.h" +#include +#include +#include +#include + +#define PREDEFINED_ACCOUNT_CNT 1 +#define ACCOUNT_APP_TYPE_UI_GADGET "ui-gadget" + +static Elm_Genlist_Item_Class addacc_list_itc; +#ifndef ENABLE_HELP +static Elm_Genlist_Item_Class addacc_list_itc_sep; +#endif +static Elm_Genlist_Item_Class addacc_list_itc_sep_end; + +addaccount_list_priv* service_info; + +#ifdef ENABLE_HELP +static char *__myaccount_add_account_help_label_get(void *data, + Evas_Object *obj, const char *part) +{ + return NULL; +} + +static Evas_Object *__myaccount_add_account_help_icon_get(void *data, + Evas_Object *obj, const char *part) +{ + Evas_Object *eohelp = NULL; + MYACCOUNT_VERBOSE("myaccount_ug_account_list : help_get data=%p, obj=%p, part=%s \n", + data, obj, part); + eohelp = elm_label_add(obj); + evas_object_size_hint_weight_set(eohelp, EVAS_HINT_EXPAND, 0.0); + evas_object_size_hint_align_set(eohelp, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_label_line_wrap_set(eohelp, ELM_WRAP_WORD); + char buf[512]; + memset(buf, 0, 512); + MA_SNPRINTF(buf, 511, "%s%s%s", "", + dgettext(MA_UG_NAME, + "IDS_MA_BODY_YOU_CAN_MANAGE_YOUR_CONTACTS_CALENDARS_EMAIL_AND_IM_ACCOUNTS"), + ""); + elm_object_text_set(eohelp, buf); + return eohelp; +} + +static Eina_Bool __myaccount_add_account_help_state_get(void *data, + Evas_Object *obj, const char *part) +{ + return EINA_FALSE; +} + +static Elm_Genlist_Item_Class help_itc = { ELM_GENGRID_ITEM_CLASS_VERSION, 0, 0, + "1icon", NULL, NULL, + { __myaccount_add_account_help_label_get, + __myaccount_add_account_help_icon_get, + __myaccount_add_account_help_state_get, + NULL } +}; +#endif + +static char *__myaccount_addaccount_gl_label_get(void *data, + Evas_Object *obj, const char *part) +{ + addaccount_list_priv *service = (addaccount_list_priv*)data; + + if (!strcmp(part, "elm.text") || !strcmp(part, "elm.text.2")) { + return strdup(service->service_name); + } + + return NULL; +} + +bool myaccount_add_account_by_package_name_cb(account_h account, + void *user_data) +{ + MYACCOUNT_VERBOSE("myaccount_add_account_already_exist_account_cb"); + return false; +} + +static gboolean __myaccount_ug_addaccount_able_to_add(char *pkg_name) +{ + char package_name[256] = {0,}; + int error_code = ACCOUNT_ERROR_NONE; + bool supported = false; + + error_code = account_connect(); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("__myaccount_ug_addaccount_able_to_add account db connect fail (%x)\n", error_code); + error_code = account_disconnect(); + MYACCOUNT_INFO("account db disconnect error_code(%x)\n", error_code); + return FALSE; + } + + if(!pkg_name) { + MYACCOUNT_ERROR("__myaccount_ug_addaccount_able_to_add: No package name\n"); + return FALSE; + } + + MA_STRNCPY(package_name, pkg_name, sizeof(package_name)); + + error_code = account_query_account_by_package_name( + myaccount_add_account_by_package_name_cb, + package_name, NULL); + + if (error_code == ACCOUNT_ERROR_NONE) { + account_get_application_multiple_account_support(package_name, &supported); + if (supported) { + error_code = account_disconnect(); + MYACCOUNT_INFO("account db disconnect error_code(%x)\n", error_code); + return TRUE; + } else { + error_code = account_disconnect(); + MYACCOUNT_INFO("account db disconnect error_code(%x)\n", error_code); + return FALSE; + } + } else { + error_code = account_disconnect(); + MYACCOUNT_INFO("account db disconnect error_code(%x)\n", error_code); + return TRUE; + } + + return FALSE; +} + +static void __myaccount_addaccount_gl_sel(void *data, + Evas_Object *obj, void *event_info) +{ + myaccount_appdata *ad = myaccount_get_appdata(); + addaccount_list_priv *service = (addaccount_list_priv*)data; + Elm_Object_Item *item = (Elm_Object_Item *) event_info; + char email_sp[64] = {0,}; + + if(!ad) { + MYACCOUNT_FATAL("__myaccount_account_list_gl_sel appdata is NULL\n"); + return; + } + + if(ad->item_selected_state) { + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); + return; + } + ad->item_selected_state = true; + + MYACCOUNT_VERBOSE("__myaccount_account_list_gl_sel START\n"); + + if (item != NULL) { + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); + + MYACCOUNT_VERBOSE("service->package_name = %s \n ", service->package_name); + + switch(service->sp_type) { + case MYACCOUNT_TYPE_OTHER: + MA_SNPRINTF(email_sp, sizeof(email_sp), "%s", "others"); + myaccount_common_launch_application( + MYACCOUNT_REQUEST_SIGNIN, + strdup(service->package_name), + NULL, + email_sp, + -1, + ad); + break; + case MYACCOUNT_TYPE_ANONYMOUS: + default: + if(myaccount_common_launch_application( + MYACCOUNT_REQUEST_SIGNIN, + strdup(service->package_name), + NULL, + "", + -1, + ad) != SERVICE_ERROR_NONE ) { + MYACCOUNT_ERROR("__myaccount_addaccount_gl_sel : Failed to launch application\n"); + ad->item_selected_state = false; + + } + break; + } + + } + return; +} + + +static Evas_Object *__myaccount_addaccount_icon_get( void *data, + Evas_Object *obj, const char *part) +{ + char tempbuf[PATH_MAX]; + Evas_Object *icon = NULL; + addaccount_list_priv *service_item = (addaccount_list_priv*)data; + + if (!service_item) { + MYACCOUNT_ERROR(" __myaccount_addaccount_icon_get: Data is NULL\n"); + return NULL; + } + memset(tempbuf, 0, sizeof(char)*PATH_MAX); + if (!strcmp(part, "elm.photo") || !strcmp(part, "elm.icon")) { + if (strlen(service_item->icon_path) > 0) { + MA_STRNCPY(tempbuf, service_item->icon_path, sizeof(tempbuf)); + } else { + MA_STRNCPY(tempbuf, "99_email.png", sizeof(tempbuf)); + } + } + icon = elm_icon_add(obj); + if (strstr(tempbuf, "/")) + elm_image_file_set(icon, tempbuf, NULL); + else + elm_image_file_set(icon, MA_IMAGE_EDJ_NAME, tempbuf); + evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); + return icon; +} + + static bool __account_iter_func(service_h service, const char* pkg_name, + void *data) + { + GSList **pkg_list = (GSList **)data; + char *pkgname = NULL; + + MYACCOUNT_DBUG("##### AUL iter func called pkgname=%s(%d)\n", + pkg_name, __LINE__); + + if (!strcmp(pkg_name, "email-setting-efl")) { + MYACCOUNT_DBUG("Exception Tizen email pkgname=%s(%d)\n", pkg_name, __LINE__); + return TRUE; + } + + if (__myaccount_ug_addaccount_able_to_add((char *)pkg_name) == TRUE) { + pkgname = strdup(pkg_name); + *pkg_list = g_slist_append(*pkg_list, pkgname); + } + //END temporary check + return TRUE; + } + +static int myaccount_get_appinfo(char* pkgname, int appinfo_idx) +{ + int index = appinfo_idx; + MYACCOUNT_VERBOSE("myaccount_get_appinfo index = %d\n", index); + char *icon = NULL; + char *name = NULL; + + account_get_application_icon_path(pkgname, &icon); + if (!icon) + app_manager_get_app_icon_path(pkgname, &icon); + + app_manager_get_app_name(pkgname, &name); + + MA_STRNCPY(service_info[index].icon_path, icon, + sizeof(service_info[index].icon_path)); + MA_STRNCPY(service_info[index].service_name, name, + sizeof(service_info[index].service_name)); + MA_STRNCPY(service_info[index].package_name, pkgname, + sizeof(service_info[index].package_name)); + service_info[index].sp_type = MYACCOUNT_TYPE_ANONYMOUS; + + service_info[index].b_tizen_email = FALSE; + + MA_MEMFREE(icon); + MA_MEMFREE(name); + return 1; +} + +static int __myaccount_addaccount_populate_service_info() +{ + int pkg_count = 0; + int ret = SERVICE_ERROR_NONE; + GSList *pkg_list = NULL; + GSList *iter = NULL; + char* list_item = NULL; + service_h service; + + ret = service_create(&service); + if (ret != SERVICE_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount add : service_create fail ret=%d\n", ret); + } else { + MYACCOUNT_VERBOSE("myaccount add : service_create SUCCESS!!!!!! ret=%d\n", + ret); + } + ret = service_set_operation(service, ACCOUNT_OPERATION_SIGNIN); + if (ret != SERVICE_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount add : service_set_operation fail ret=%d\n", ret); + } else { + MYACCOUNT_VERBOSE("myaccount add : service_set_operation SUCCESS!!!!!! ret=%d\n", + ret); + } + ret = service_foreach_app_matched(service, __account_iter_func, &pkg_list); + if (ret != SERVICE_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount add : service_foreach_app_matched fail ret=%d\n", + ret); + } else { + MYACCOUNT_VERBOSE("myaccount add : service_foreach_app_matched SUCCESS!!!!!! ret=%d\n", + ret); + } + pkg_count = g_slist_length(pkg_list); + pkg_count += PREDEFINED_ACCOUNT_CNT; + + service_info = calloc(pkg_count, sizeof(addaccount_list_priv)); + + int index = 0; + + MA_STRNCPY(service_info[index].service_name, + dgettext(MA_UG_NAME, "IDS_MA_BODY_OTHERS"), + sizeof(service_info[index].service_name)); + MA_STRNCPY(service_info[index].package_name, + "email-setting-efl", + sizeof(service_info[index].package_name)); + myaccount_common_get_icon_by_name("others", + service_info[index].icon_path); + service_info[index].sp_type = MYACCOUNT_TYPE_OTHER; + service_info[index].b_tizen_email = TRUE; + index++; + + for (iter = pkg_list; iter != NULL; iter = g_slist_next(iter)) { + list_item = (char *)iter->data; + myaccount_get_appinfo(list_item, index++); + MYACCOUNT_VERBOSE("############### pkg name = %s \n", list_item); + g_free(list_item); + } + + g_slist_free(pkg_list); + ret = service_destroy(service); + if (ret != SERVICE_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount add : service_destroy fail ret=%d\n", ret); + } else { + MYACCOUNT_VERBOSE("myaccount add : service_destroy SUCCESS!!!!!! ret=%d\n", + ret); + } + + MYACCOUNT_VERBOSE("populate service list END\n"); + return pkg_count; +} + +static Evas_Object *__myaccount_addaccount_create_genlist( + myaccount_appdata *ad, int count) +{ + MYACCOUNT_VERBOSE("\n __myaccount_addaccount_create_genlist called !!! \n"); + Evas_Object *genlist; + Elm_Object_Item *it; + bool supported = false; +#ifdef ENABLE_HELP + Elm_Object_Item *help; +#endif + int index; + + if (ad == NULL) { + MYACCOUNT_FATAL("__myaccount_addaccount_create_genlist returns NULL\n"); + return NULL; + } + + addacc_list_itc.item_style = "dialogue/1text.1icon.2.tb"; + addacc_list_itc.func.text_get = __myaccount_addaccount_gl_label_get; + addacc_list_itc.func.content_get = __myaccount_addaccount_icon_get; + addacc_list_itc.func.state_get = NULL; + addacc_list_itc.func.del = NULL; + +#ifndef ENABLE_HELP + /*to add 40 pixel separator*/ + addacc_list_itc_sep.item_style = "dialogue/separator"; + addacc_list_itc_sep.func.text_get = NULL; + addacc_list_itc_sep.func.content_get = NULL; + addacc_list_itc_sep.func.state_get = NULL; + addacc_list_itc_sep.func.del = NULL; +#endif + /*to add 40 pixel list end separator*/ + addacc_list_itc_sep_end.item_style = "dialogue/separator/end"; + addacc_list_itc_sep_end.func.text_get = NULL; + addacc_list_itc_sep_end.func.content_get = NULL; + addacc_list_itc_sep_end.func.state_get = NULL; + addacc_list_itc_sep_end.func.del = NULL; + + genlist = elm_genlist_add(ad->navi_bar); + elm_object_style_set (genlist, "dialogue"); + MYACCOUNT_DBUG("############################# ADD SERVICE COUNT = %d\n", + count); +#ifdef ENABLE_HELP + help = elm_genlist_item_append(genlist, &help_itc, (void*)ad, NULL, + ELM_GENLIST_ITEM_NONE, NULL, NULL); +#else + it = elm_genlist_item_append(genlist, + &addacc_list_itc_sep, NULL, NULL, + ELM_GENLIST_ITEM_NONE, NULL, NULL); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); +#endif + for (index = 0; index < count; index++) { + if(ad->capability_filter) { + /* Tizen email exception */ + if( !strcmp(ad->capability_filter, ACCOUNT_SUPPORTS_CAPABILITY_TIZEN_EMAIL)) { + if(service_info[index].b_tizen_email) { + elm_genlist_item_append(genlist, &addacc_list_itc, + (void *)&service_info[index], NULL, + ELM_GENLIST_ITEM_NONE, + __myaccount_addaccount_gl_sel, + (void *)&service_info[index]); + } + } else { + account_get_application_capability_support( + service_info[index].package_name, + ad->capability_filter, + &supported); + if (supported) { + elm_genlist_item_append(genlist, &addacc_list_itc, + (void *)&service_info[index], NULL, + ELM_GENLIST_ITEM_NONE, + __myaccount_addaccount_gl_sel, + (void *)&service_info[index]); + } + } + } else { + elm_genlist_item_append(genlist, &addacc_list_itc, + (void *)&service_info[index], NULL, + ELM_GENLIST_ITEM_NONE, + __myaccount_addaccount_gl_sel, + (void *)&service_info[index]); + } + } + it = elm_genlist_item_append(genlist, + &addacc_list_itc_sep_end, NULL, NULL, + ELM_GENLIST_ITEM_NONE, NULL, NULL); + elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + + elm_genlist_block_count_set(genlist, count); + MYACCOUNT_VERBOSE("END of __myaccount_addaccount_create_genlist\n"); + return genlist; +} + +void __myaccount_addaccount_quit_cb( void *data, + Evas_Object *obj, void *event_info ) +{ + int error_code = 0; + myaccount_appdata *priv = (myaccount_appdata*)data; + int count = -1; + + error_code = myaccount_common_get_all_account_cnt(&count); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("__myaccount_addaccount_quit_cb: myaccount_common_get_all_account_cnt fail(%d) \n", + error_code); + } + MYACCOUNT_VERBOSE("myaccount_account_list_quit_cb START\n"); + if (!priv) { + MYACCOUNT_ERROR("myaccount_account_list_quit_cb callback user data is null!!!\n"); + return; + } + MA_MEMFREE(service_info); + if ((count > 0) && (priv->eMode == eMYACCOUNT_ACCOUNT_LIST)) { + if (priv->add_genlist) { + evas_object_del(priv->add_genlist); + priv->add_genlist = NULL; + } + elm_naviframe_item_pop(priv->navi_bar); + return; + } + if (priv->ug) { + error_code = ug_destroy_me(priv->ug); + MYACCOUNT_DBUG("myaccount_account_list_quit_cb callback : return = %d!!!\n", + error_code); + } + MYACCOUNT_VERBOSE("myaccount_account_list_quit_cb END\n"); +} + +void myaccount_addaccount_genlist_create(void *data) +{ + MYACCOUNT_VERBOSE("\n myaccount_addaccount_genlist_create called !!! \n"); + myaccount_appdata *ad = data; + Evas_Object *genlist; + Evas_Object *l_button; + int service_cnt=0; + + if (ad == NULL) { + MYACCOUNT_FATAL("myaccount_addaccount_genlist_create myaccount_appdata is null\n"); + return; + } + service_cnt = __myaccount_addaccount_populate_service_info(); + ad->add_genlist = genlist = __myaccount_addaccount_create_genlist(ad, service_cnt); + l_button = elm_button_add(ad->navi_bar); + evas_object_smart_callback_add(l_button, + "clicked", + __myaccount_addaccount_quit_cb, + ad); + elm_object_style_set(l_button , "naviframe/back_btn/default"); + elm_naviframe_item_push(ad->navi_bar, + dgettext(MA_UG_NAME, "IDS_MA_HEADER_ADD_ACCOUNT"), + l_button, NULL, genlist, NULL); + MYACCOUNT_VERBOSE("END of myaccount_Addaccount_genlist_create\n"); +} + +void myaccount_addaccount_create_view(myaccount_appdata *ad) +{ + MYACCOUNT_VERBOSE("\n myaccount_addaccount_create_view called !!! \n"); + myaccount_addaccount_genlist_create(ad); +} diff --git a/src/myaccount_ug_common.c b/src/myaccount_ug_common.c new file mode 100755 index 0000000..2fcf894 --- /dev/null +++ b/src/myaccount_ug_common.c @@ -0,0 +1,504 @@ +/* + * 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://floralicense.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 "myaccount_ug.h" +#include "myaccount_ug_common.h" +#include "myaccount_ug_addaccount.h" +#include "myaccount_ug_account_list.h" + +static myaccount_appdata *g_myaccount_appdata = NULL; + +void *myaccount_init_appdata() +{ + if (g_myaccount_appdata == NULL) { + g_myaccount_appdata = calloc(1, sizeof(myaccount_appdata)); + g_myaccount_appdata->item_selected_state = false; + } + return g_myaccount_appdata; +} + +void myaccount_destroy_appdata() +{ + MYACCOUNT_INFO("myaccount_destroy_appdata START \n"); + + if (g_myaccount_appdata == NULL) { + MYACCOUNT_WARNING("myaccount_destroy_appdata: appdata NULL \n"); + return; + } + + +/* fix by sungchan,kim. + sudden crash on account list view destroyed. + tempolarily blocked below codes. */ + if (g_myaccount_appdata->base) { + evas_object_del(g_myaccount_appdata->base); + g_myaccount_appdata->base = NULL; + } + MA_MEMFREE(g_myaccount_appdata->capability_filter) + + /* For accounts list */ + if (g_myaccount_appdata->ug_called) { + ug_destroy(g_myaccount_appdata->ug_called); + g_myaccount_appdata->ug_called = NULL; + } + if (g_myaccount_appdata->layout_main) { + evas_object_del(g_myaccount_appdata->layout_main); + g_myaccount_appdata->layout_main = NULL; + } + if (g_myaccount_appdata->layout_addaccount) { + evas_object_del(g_myaccount_appdata->layout_addaccount); + g_myaccount_appdata->layout_addaccount = NULL; + } + if (g_myaccount_appdata->navi_bar) { + evas_object_del(g_myaccount_appdata->navi_bar); + g_myaccount_appdata->navi_bar = NULL; + } + if (g_myaccount_appdata->account_genlist) { + evas_object_del(g_myaccount_appdata->account_genlist); + g_myaccount_appdata->account_genlist = NULL; + } + if (g_myaccount_appdata->help_label) { + evas_object_del(g_myaccount_appdata->help_label); + g_myaccount_appdata->help_label = NULL; + } + if (g_myaccount_appdata->refresh_btn) { + evas_object_del(g_myaccount_appdata->refresh_btn); + g_myaccount_appdata->refresh_btn = NULL; + } + if (g_myaccount_appdata->refresh_icon) { + evas_object_del(g_myaccount_appdata->refresh_icon); + g_myaccount_appdata->refresh_icon = NULL; + } + if (g_myaccount_appdata->cancel_sync_icon) { + evas_object_del(g_myaccount_appdata->cancel_sync_icon); + g_myaccount_appdata->cancel_sync_icon = NULL; + } + if (g_myaccount_appdata->auto_sync_check) { + evas_object_del(g_myaccount_appdata->auto_sync_check); + g_myaccount_appdata->auto_sync_check = NULL; + } + if (g_myaccount_appdata->bg) { + evas_object_del(g_myaccount_appdata->bg); + g_myaccount_appdata->bg = NULL; + } + if (g_myaccount_appdata->ly) { + elm_object_part_content_unset(g_myaccount_appdata->ly, "elm.swallow.content"); + evas_object_del(g_myaccount_appdata->ly); + g_myaccount_appdata->ly = NULL; + } + if (g_myaccount_appdata->modal_popup) { + evas_object_del(g_myaccount_appdata->modal_popup); + g_myaccount_appdata->modal_popup = NULL; + } + if (g_myaccount_appdata->r_title_sk) { + evas_object_del(g_myaccount_appdata->r_title_sk); + g_myaccount_appdata->r_title_sk = NULL; + } + if (g_myaccount_appdata->l_title_sk) { + evas_object_del(g_myaccount_appdata->l_title_sk); + g_myaccount_appdata->l_title_sk = NULL; + } + if (g_myaccount_appdata->progress_timer) { + ecore_timer_del(g_myaccount_appdata->progress_timer); + g_myaccount_appdata->progress_timer = NULL; + } + if (g_myaccount_appdata->add_genlist) { + evas_object_del(g_myaccount_appdata->add_genlist); + g_myaccount_appdata->add_genlist = NULL; + } + if (g_myaccount_appdata->pc) { + pkgmgr_client_free(g_myaccount_appdata->pc); + g_myaccount_appdata->pc = NULL; + } + MA_MEMFREE(g_myaccount_appdata->caller_userdata); + MA_MEMFREE(g_myaccount_appdata); + + MYACCOUNT_VERBOSE("myaccount_destroy_appdata END \n"); +} + +void * myaccount_get_appdata() +{ + return g_myaccount_appdata; +} + +void myaccount_common_get_icon_by_name(char *domain_name, + char *icon_path) +{ + if (!domain_name) { + MYACCOUNT_ERROR("\n !!! domain_name is NULL \n"); + return; + } + char tmp_domain_name[64] = {0,}; + myaccount_common_lowercase(domain_name, tmp_domain_name); + MYACCOUNT_VERBOSE("\n !!! myaccount_common_get_icon_by_name = %s \n", + domain_name); + + if (!icon_path) { + MYACCOUNT_ERROR("\n !!! icon_path is NULL \n"); + return; + } + + MYACCOUNT_VERBOSE("Default icon\n"); + MA_SNPRINTF(icon_path, BUFSIZE, "%s", "99_email.png"); +} + +void myaccount_common_lowercase(char *src, char *dest) +{ + int i; + int src_len=0; + + if (!src || !dest) { + MYACCOUNT_ERROR("myaccount_common_lowercase src=%p, dest=%p\n", + src, dest); + return; + } + src_len = strlen(src); + for(i=0;iitem_selected_state = false; + + noti_name = vconf_get_str(VCONFKEY_ACCOUNT_MSG_STR); + if (!noti_name) { + MYACCOUNT_FATAL("myaccount_common_handle_notification: vconf_get_str() Failed!\n"); + return; + } else { + MYACCOUNT_VERBOSE("myaccount_common_handle_notification: noti_name = %s\n", + noti_name); + } + error_code = myaccount_common_get_all_account_cnt(&count); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount_common_handle_notification: myaccount_common_get_all_account_cnt fail(%d) \n", + error_code); + } + + MYACCOUNT_VERBOSE("myaccount_common_handle_notification account count =%d\n", + count); + + if (appdata->eMode == eMYACCOUNT_ACCOUNT_LIST) { + if (count > 0) { + if (appdata->add_genlist && strcmp(noti_name, ACCOUNT_NOTI_NAME_SYNC_UPDATE)) { + evas_object_del(appdata->add_genlist); + appdata->add_genlist = NULL; + elm_naviframe_item_pop(appdata->navi_bar); + MA_MEMFREE(service_info); + } + if (appdata->account_genlist) { + myaccount_check_syncall_finish(appdata); + myaccount_list_refresh_item_list(appdata); + } else { + myaccount_ug_account_list_create((void*)appdata); + } + } else { + if (appdata->add_genlist) { + evas_object_show(appdata->add_genlist); + } else { + myaccount_addaccount_create_view(appdata); + } + } + } else if (appdata->eMode == eMYACCOUNT_ADD_ACCOUNT) { + if (appdata->ug) { + if (!appdata->add_genlist) + MA_MEMFREE(service_info); + error_code = ug_destroy_me(appdata->ug); + MYACCOUNT_DBUG("myaccount_common_handle_notification callback : return = %d!!!\n", + error_code); + } + } else { + MYACCOUNT_DBUG("Unknown mode !!!"); + } +} + +int myaccount_common_launch_application(MyAccountRequestViewType + request_type, + char *package_name, + char *username, + char *email_sp, + int account_id, + void *data ) +{ + int ret = SERVICE_ERROR_NONE; + service_h service; + myaccount_appdata *ad = (myaccount_appdata *) data; + char id_buf[64] = {0,}; + + if (!ad || !package_name) { + MYACCOUNT_DBUG("myaccount_common_launch_application: App data=%p, package_name=%p\n", + ad, package_name); + return 0; + } + + ret = service_create(&service); + ret = service_set_package(service, package_name); + ret = service_set_window(service, ad->win_id); + if(ad->caller_userdata) { + MYACCOUNT_DBUG("myaccount_common_launch_application: caller userdata exist!\n"); + ret = service_add_extra_data(service, "myaccount_userdata", ad->caller_userdata); + } + + if (ret != SERVICE_ERROR_NONE) + MYACCOUNT_ERROR("myaccount_common_launch_application: service_set_package failed\n"); + + switch (request_type) { + case MYACCOUNT_REQUEST_SIGNIN : + service_set_operation(service, ACCOUNT_OPERATION_SIGNIN); + if(email_sp && strlen(email_sp) > 0) + service_add_extra_data(service, ACCOUNT_DATA_SERVICE_PROVIDER, email_sp); + break; + case MYACCOUNT_REQUEST_VIEW : + if(!username) { + MYACCOUNT_ERROR("myaccount_common_launch_application: username=%p !!!\n", + username); + MA_MEMFREE(package_name); + service_destroy(service); + return 0; + } + + MA_SNPRINTF(id_buf, sizeof(id_buf), "%d", account_id); + ret = service_add_extra_data(service, ACCOUNT_DATA_ID, id_buf); + ret = service_set_operation(service, ACCOUNT_OPERATION_VIEW); + MYACCOUNT_DBUG("###### USERNAME = %s\n", username); + ret = service_add_extra_data(service, ACCOUNT_DATA_USERNAME,username); + break; + default : + MYACCOUNT_DBUG("myaccount_common_launch_application: Invalid request type=%d\n", + request_type); + MA_MEMFREE(username); + MA_MEMFREE(package_name); + service_destroy(service); + return 0; + } + MYACCOUNT_VERBOSE("myaccount_common_launch_application request type=%d, package name = %s\n", + request_type, package_name); + + ret = service_send_launch_request(service, NULL, NULL); + MA_MEMFREE(username); + MA_MEMFREE(package_name); + service_destroy(service); + if(ret != SERVICE_ERROR_NONE){ + return 0; + } else { + return 1; + } +} + + +Evas_Object *myaccount_common_progress_add(Evas_Object *parent) +{ + if (!parent) { + MYACCOUNT_ERROR("myaccount_common_progress_add: parent is NULL \n"); + return NULL; + } + Evas_Object *progressbar = NULL; + progressbar = elm_progressbar_add(parent); + elm_object_style_set(progressbar, "list_process"); + evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, 0.5); + evas_object_size_hint_weight_set(progressbar, + EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + evas_object_show(progressbar); + elm_progressbar_pulse(progressbar, EINA_TRUE); + return progressbar; +} + +Evas_Object *myaccount_common_create_modal_popup(Evas_Object *parent) +{ + if (!parent) { + MYACCOUNT_ERROR("myaccount_common_create_modal_popup: parent is NULL \n"); + return NULL; + } + Evas_Object *popup = NULL; + Evas_Object *progressbar = NULL; + popup = elm_popup_add(parent); + progressbar = myaccount_common_progress_add(popup); + elm_object_content_set(popup, progressbar); + evas_object_show(popup); + return popup; +} + +void myaccount_common_delete_modal_popup(Evas_Object *popup) +{ + if (!popup){ + MYACCOUNT_ERROR("myaccount_common_delete_modal_popup: popup is NULL \n"); + return; + } + evas_object_del(popup); +} + +Eina_Bool myaccount_common_modal_popup_timer_cb(gpointer data) +{ + if (!data) { + MYACCOUNT_ERROR("myaccount_common_modal_popup_timer_cb: data is NULL \n"); + return false; + } + myaccount_appdata *global_data = NULL; + global_data = (myaccount_appdata*)data; + if (global_data->modal_popup) { + myaccount_common_delete_modal_popup(global_data->modal_popup); + global_data->modal_popup = NULL; + } + if (global_data->progress_timer) { + ecore_timer_del(global_data->progress_timer); + global_data->progress_timer = NULL; + } + return false; +} + +int myaccount_common_get_all_account_cnt(int *count) +{ + int error_code = -1; + int account_cnt = 0; + if (!count) { + MYACCOUNT_ERROR("myaccount_common_get_all_account_cnt: count ptr is NULL \n"); + return error_code; + } + error_code = account_connect(); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount_common_get_all_account_cnt: fail to connect account DB \n"); + return error_code; + } + error_code = account_get_total_count_from_db(&account_cnt); + if (error_code != ACCOUNT_ERROR_NONE) { + int ret = ACCOUNT_ERROR_NONE; + MYACCOUNT_VERBOSE("myaccount_common_get_all_account_cnt: account_svc_get_count fail(%d) \n", + error_code); + ret = account_disconnect(); + if (ret != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount_common_get_all_account_cnt: account_svc_disconnect fail(%d) \n", + ret); + } + return error_code; + } + *count = account_cnt; + error_code = account_disconnect(); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("myaccount_common_get_all_account_cnt: account_svc_get_count fail(%d) \n", + error_code); + return error_code; + } + return ACCOUNT_ERROR_NONE; +} + +static int _myaccount_common_pkmgr_return_cb(int req_id, const char *pkg_type, + const char *pkg_name, + const char *key, + const char *val, + const void *pmsg, + void *data) +{ + MYACCOUNT_VERBOSE(" _myaccount_common_pkmgr_return_cb: pkg_type = %s, pkg_name = %s, key = %s, val = %s\n", pkg_type, pkg_name,key,val); + + int error_code = -1; + int count = -1; + if( strcmp(key, "end") == 0 && strcmp(val, "ok") == 0) { + myaccount_appdata *appdata = (myaccount_appdata*)myaccount_get_appdata(); + + if (!appdata) { + MYACCOUNT_FATAL("App data NULL!!! \n"); + return -1; + } + error_code = myaccount_common_get_all_account_cnt(&count); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_ERROR("_myaccount_common_pkmgr_return_cb: myaccount_common_get_all_account_cnt fail(%d) \n", + error_code); + } + + MYACCOUNT_VERBOSE("_myaccount_common_pkmgr_return_cb account count =%d\n", + count); + if (appdata->eMode == eMYACCOUNT_ACCOUNT_LIST) { + if (count > 0) { + if (appdata->add_genlist) { + evas_object_del(appdata->add_genlist); + appdata->add_genlist = NULL; + elm_naviframe_item_pop(appdata->navi_bar); + MA_MEMFREE(service_info); + } + if (appdata->account_genlist) { + myaccount_check_syncall_finish(appdata); + myaccount_list_refresh_item_list(appdata); + } else { + myaccount_ug_account_list_create((void*)appdata); + } + } else { + if (appdata->add_genlist) { + evas_object_show(appdata->add_genlist); + } else { + myaccount_addaccount_create_view(appdata); + } + } + } else if (appdata->eMode == eMYACCOUNT_ADD_ACCOUNT) { + if (appdata->ug) { + if (!appdata->add_genlist) + MA_MEMFREE(service_info); + error_code = ug_destroy_me(appdata->ug); + MYACCOUNT_VERBOSE("myaccount_common_handle_notification callback : return = %d!!!\n", + error_code); + } + } else { + MYACCOUNT_WARNING("Unknown mode !!!"); + } + return 0; + } + return 0; +} + +void myaccount_common_listen_pkgmgr_for_pkg_uninstall() +{ + myaccount_appdata *appdata = (myaccount_appdata*)myaccount_get_appdata(); + + if (!appdata) { + MYACCOUNT_FATAL("App data NULL!!! \n"); + return; + } + + int result = 0; + pkgmgr_client *pc = NULL; + pc = pkgmgr_client_new(PC_LISTENING); + if(pc == NULL) { + MYACCOUNT_ERROR("pc is NULL\n"); + return; + } + appdata->pc = pc; + result = pkgmgr_client_listen_status(pc, _myaccount_common_pkmgr_return_cb, pc); + if(result < 0) + { + MYACCOUNT_ERROR("status listen failed!\n"); + return; + } +} diff --git a/src/myaccount_ug_main.c b/src/myaccount_ug_main.c new file mode 100755 index 0000000..9f71e15 --- /dev/null +++ b/src/myaccount_ug_main.c @@ -0,0 +1,301 @@ +/* + * 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://floralicense.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 "myaccount_ug_account_list.h" +#include "myaccount_ug_addaccount.h" +#include "myaccount_ug_common.h" +#include +#include + +#ifndef UG_MODULE_API +#define UG_MODULE_API __attribute__ ((visibility("default"))) +#endif + +static int g_handle_noti = 0; + +int myaccount_subscribe_to_account_notification_vconfkey(); + +static gboolean __myaccount_account_list_parse_param(myaccount_mode_e + *mode, + service_h data, + myaccount_appdata *ad) +{ + if (!data || !ad) { + MYACCOUNT_DBUG("Service/App data is null!\n"); + return FALSE; + } else { + char *extracted = NULL; + ad->capability_filter = NULL; + service_get_extra_data(data, "mode", &extracted); + service_get_extra_data(data, "capability_filter", &ad->capability_filter); + service_get_extra_data(data, "myaccount_userdata", &ad->caller_userdata); + + if (ad->capability_filter) + MYACCOUNT_DBUG("capability_filter = %s\n", ad->capability_filter); + + if (extracted) { + MYACCOUNT_DBUG("view_account_list = %s\n", extracted); + + if (!strcmp(extracted, "account_list")) + *mode = eMYACCOUNT_ACCOUNT_LIST; + else if (!strcmp(extracted, "add_account")) + *mode = eMYACCOUNT_ADD_ACCOUNT; + else + *mode = eMYACCOUNT_ACCOUNT_LIST; + } else { + *mode = eMYACCOUNT_ACCOUNT_LIST; + MYACCOUNT_DBUG("param is not view_account_list!\n"); + } + + MA_MEMFREE(extracted); + } + return TRUE; +} + +void *myaccount_account_list_create(ui_gadget_h ug, + enum ug_mode mode, + service_h data, void *priv) +{ + MYACCOUNT_DBUG("\n myaccount_account_list_create called !!\n"); + Evas_Object *parent; + myaccount_appdata *ugd; + int count = -1; + int error_code = -1; + + if (!ug || !priv) { + MYACCOUNT_DBUG("myaccount_account_list_create: ug or priv is NULL \n"); + return NULL; + } + + bindtextdomain("ug-setting-myaccount-efl", "/usr/ug/res/locale"); + ugd = (myaccount_appdata*)priv; + ugd->ug = ug; + MYACCOUNT_DBUG("ugd->ug = %p\n", ugd->ug); + ugd->eMode = 0; + parent = ug_get_parent_layout(ug); + if (!parent) { + MYACCOUNT_DBUG("myaccount_account_list_create: parent is NULL \n"); + return NULL; + } + ugd->win_main = parent; + /*sbscribe to vconf noti key which will recevie notification about account update, delete and insert*/ +#ifdef ENABLE_NOTI + myaccount_subscribe_to_account_notification_vconfkey(); +#endif + /*listen to pkgmgr for uninstall of pkg*/ + myaccount_common_listen_pkgmgr_for_pkg_uninstall(); + + __myaccount_account_list_parse_param(&ugd->eMode, data, ugd); + error_code = myaccount_common_get_all_account_cnt(&count); + if (error_code != ACCOUNT_ERROR_NONE) { + MYACCOUNT_DBUG("myaccount_account_list_create: myaccount_common_get_all_account_cnt fail(%d) \n", + error_code); + } + + MYACCOUNT_DBUG("\nmyaccount_account_list_create Account count = %d \n", count); + if (ugd->eMode == eMYACCOUNT_ACCOUNT_LIST) { + MYACCOUNT_DBUG("\n eMode is eMYACCOUNT_ACCOUNT_LIST \n"); + if (count > 0) { + myaccount_list_view_create(ugd); + myaccount_ug_account_list_create((void*)priv); + } else if (count == 0) { + myaccount_list_view_create(ugd); + myaccount_addaccount_create_view(ugd); + } else { + MYACCOUNT_DBUG("myaccount_account_list_create : invalid mode %d\n", + ugd->eMode); + myaccount_list_view_create(ugd); + } + } else if (ugd->eMode == eMYACCOUNT_ADD_ACCOUNT) { + MYACCOUNT_DBUG("\n !! eMode is eMYACCOUNT_ADD_ACCOUNT !! \n"); + myaccount_list_view_create(ugd); + myaccount_addaccount_create_view(ugd); + } else { + MYACCOUNT_DBUG("myaccount_account_list_create : invalid mode %d\n", + ugd->eMode); + } + + return ugd->base; + } + +#ifdef ENABLE_NOTI +int myaccount_subscribe_to_account_notification_vconfkey() +{ + MYACCOUNT_DBUG("myaccount_subscribe_to_account_notification_vconfkey\n"); + + if (vconf_notify_key_changed(VCONFKEY_ACCOUNT_MSG_STR, + (vconf_callback_fn)myaccount_common_vconf_notification_cb, + NULL) == 0) { + MYACCOUNT_DBUG("Vconf Subscription Success!!!!\n"); + return 1; + } else { + MYACCOUNT_DBUG("Vconf Subscription Failed !!!!!\n"); + return -1; + } +} +#endif + + static void myaccount_account_list_start(ui_gadget_h ug, + service_h data, void *priv) + { + MYACCOUNT_DBUG("ug start\n"); + } + + static void myaccount_account_list_pause(ui_gadget_h ug, + service_h data, void *priv) + { + myaccount_appdata *ugd; + ugd = (myaccount_appdata*)priv; + + MYACCOUNT_DBUG("My account ug goes to pause state\n"); + } +extern addaccount_list_priv* service_info; + + static void myaccount_account_list_resume(ui_gadget_h ug, + service_h data, void *priv) + { + myaccount_appdata *ugd; + ugd = (myaccount_appdata*)priv; + MYACCOUNT_DBUG("Myaccount ug resume\n"); + ugd->item_selected_state = false; +#ifndef ENABLE_NOTI + myaccount_common_handle_notification(); +#endif +} + + static void myaccount_account_list_destroy(ui_gadget_h ug, + service_h data, void *priv) + { + MYACCOUNT_DBUG("myaccount_ug_destroy START[%s]", __func__); + + if (!ug || !priv) { + MYACCOUNT_DBUG("myaccount_account_ug_destroy ### ug=%p, priv=%p\n", + ug, priv); + return; + } + + myaccount_destroy_appdata(); + + if (g_handle_noti > 0) { + g_source_remove(g_handle_noti); + g_handle_noti = 0; + } + if (vconf_ignore_key_changed(VCONFKEY_ACCOUNT_MSG_STR, + (vconf_callback_fn)myaccount_common_vconf_notification_cb) == 0) { + MYACCOUNT_DBUG("Vconf Ignore Key change success \n"); + } else { + MYACCOUNT_DBUG("Vconf Ignore Key change Failed \n"); + } + + MYACCOUNT_DBUG("Terminate Myaccount_ug_main[%s]", __func__); + } + + static void myaccount_account_list_message(ui_gadget_h ug, + service_h msg, + service_h data, + void *priv) + { + + } + + static void myaccount_account_list_event(ui_gadget_h ug, + enum ug_event event, + service_h data, + void *priv) + { + switch (event) { + case UG_EVENT_LOW_MEMORY: + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_LOW_MEMORY \n"); + break; + case UG_EVENT_LOW_BATTERY: + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_LOW_BATTERY \n"); + break; + case UG_EVENT_LANG_CHANGE: /* old : SG_BINDTEXTDOMAIN_NOTIFY*/ + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_LANG_CHANGE \n"); + break; + case UG_EVENT_ROTATE_PORTRAIT: + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_ROTATE_PORTRAIT \n"); + break; + case UG_EVENT_ROTATE_PORTRAIT_UPSIDEDOWN: + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_ROTATE_PORTRAIT_UPSIDEDOWN \n"); + break; + case UG_EVENT_ROTATE_LANDSCAPE: + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_ROTATE_LANDSCAPE \n"); + break; + case UG_EVENT_ROTATE_LANDSCAPE_UPSIDEDOWN: + MYACCOUNT_DBUG("myaccount_account_list_event: UG_EVENT_ROTATE_LANDSCAPE_UPSIDEDOWN \n"); + break; + default: + MYACCOUNT_DBUG("myaccount_account_list_event: default !!! \n"); + break; + } + } + +static void myaccount_on_key_event(ui_gadget_h ug, + enum ug_key_event event , + service_h data, + void * priv) +{ + MYACCOUNT_DBUG("myaccount_on_key_event START[%s]", __func__); + if(!ug) { + MYACCOUNT_DBUG("myaccount_on_key_event ug is NULL !!!"); + return; + } + switch (event) { + case UG_KEY_EVENT_END: + ug_destroy_me(ug); + MYACCOUNT_DBUG("myaccount_on_key_event: UG_KEY_EVENT_END \n"); + break; + default: + MYACCOUNT_DBUG("myaccount_on_key_event: default !!! \n"); + break; + } + MYACCOUNT_DBUG("myaccount_on_key_event END[%s]", __func__); +} + +UG_MODULE_API int UG_MODULE_INIT(struct ug_module_ops *ops) +{ + MYACCOUNT_DBUG ("\n UG_MODULE_INIT is called !!! \n"); + myaccount_appdata *ugd; + if (!ops) { + MYACCOUNT_DBUG("UG_MODULE_INIT ops is NULL !!!"); + return -1; + } + MYACCOUNT_DBUG("myaccount UG_MODULE_INIT!\n"); + ugd = (myaccount_appdata*)myaccount_init_appdata(); + if (!ugd) { + MYACCOUNT_DBUG("myaccount_init_appdata failed!\n"); + return -1; + } + ops->create = myaccount_account_list_create; + ops->start = myaccount_account_list_start; + ops->pause = myaccount_account_list_pause; + ops->resume = myaccount_account_list_resume; + ops->destroy = myaccount_account_list_destroy; + ops->message = myaccount_account_list_message; + ops->event = myaccount_account_list_event; + ops->key_event= myaccount_on_key_event;/*to handle BACK(END)key Event recently added in UG*/ + ops->priv = ugd; + ops->opt = UG_OPT_INDICATOR_ENABLE;/*UG_OPT_INDICATOR_ENABLE;*/ + + return 0; +} + +UG_MODULE_API void UG_MODULE_EXIT(struct ug_module_ops *ops) +{ + MYACCOUNT_DBUG("myaccount UG_MODULE_EXIT!\n"); +} +