summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-14 15:10:33 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-06-14 15:10:33 +0900
commit8b69bc57f4606a7a2063bcab01def174301b39bd (patch)
treec87fa8a216fb4f4d89e6136e0790b758a1e3848c
parentc88eea5343cceab966aee76e1fbbbf87cca7ba6a (diff)
downloadug-setting-location-efl-8b69bc57f4606a7a2063bcab01def174301b39bd.tar.gz
ug-setting-location-efl-8b69bc57f4606a7a2063bcab01def174301b39bd.tar.bz2
ug-setting-location-efl-8b69bc57f4606a7a2063bcab01def174301b39bd.zip
apply FSL license
-rw-r--r--LICENSE279
-rw-r--r--debian/changelog332
-rw-r--r--libug-setting-location-efl-help.c58
-rw-r--r--libug-setting-location-efl-help.h27
-rw-r--r--libug-setting-location-efl-log.h27
-rw-r--r--libug-setting-location-efl-mypos.c102
-rw-r--r--libug-setting-location-efl-mypos.h27
-rw-r--r--libug-setting-location-efl.c235
-rw-r--r--libug-setting-location-efl.h30
9 files changed, 368 insertions, 749 deletions
diff --git a/LICENSE b/LICENSE
index 9c13a9b..7ccb5b5 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,204 +1,75 @@
-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.
-
+Flora License
+
+Version 1.0, May, 2012
+
+http://www.tizenopensource.org/license
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+"Tizen Certified Platform" shall mean a software platform that complies with the standards set forth in the Compatibility Definition Document and passes the Compatibility Test Suite as defined from time to time by the Tizen Technical Steering Group and certified by the Tizen Association or its designated agent.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work solely as incorporated into a Tizen Certified Platform, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work solely as incorporated into a Tizen Certified Platform to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof pursuant to the copyright license above, in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+ 1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+ 2. You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+ 3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+ 4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Flora License to your work
+
+To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Flora License, Version 1.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.tizenopensource.org/license
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/debian/changelog b/debian/changelog
index cb2ea87..bd0009c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,335 +1,7 @@
libug-setting-location-efl (0.3.14-5) unstable; urgency=low
- * adjust multi-language for messages
- * Git: slp/pkgs/u/ug-setting-location-efl
+ * Initial Flora release
+ * Git: pkgs/u/ug-setting-location-efl
* Tag: libug-setting-location-efl_0.3.14-5
-- Genie Kim <daejins.kim@samsung.com> Tue, 10 Apr 2012 17:21:18 +0900
-
-libug-setting-location-efl (0.3.14-4) unstable; urgency=low
-
- * fix bug for elm_genlist_select_mode_set
- * Back to libug-setting-location-efl from ug-setting-location-efl
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.14-4
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 19 Mar 2012 10:15:02 +0900
-
-ug-setting-location-efl (0.3.14-3) unstable; urgency=low
-
- * Modify source directory name in control and changelog
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: ug-setting-location-efl_0.3.14-3
-
- -- Youngae Kang <youngae.kang@samsung.com> Thu, 15 Mar 2012 15:57:54 +0900
-
-libug-setting-location-efl (0.3.14-2) unstable; urgency=low
-
- * efl1.0 is released
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.14-2
-
- -- Genie Kim <daejins.kim@samsung.com> Tue, 13 Mar 2012 15:44:21 +0900
-
-libug-setting-location-efl (0.3.14-1) unstable; urgency=low
-
- * change from libslp-location to location-manager(CAPI)
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.14-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 05 Mar 2012 19:38:32 +0900
-
-libug-setting-location-efl (0.3.13-1) unstable; urgency=low
-
- * efl API is changed
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.13-1
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 15 Feb 2012 18:36:17 +0900
-
-libug-setting-location-efl (0.3.12-2) unstable; urgency=low
-
- * Fix a bug while using MDM.
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.12-2
-
- -- Yunhan Kim <yhan.kim@samsung.com> Thu, 02 Feb 2012 23:36:24 +0900
-
-libug-setting-location-efl (0.3.12-1) unstable; urgency=low
-
- * Check location policy with MDM.
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.12-1
-
- -- Yunhan Kim <yhan.kim@samsung.com> Wed, 01 Feb 2012 19:16:41 +0900
-
-libug-setting-location-efl (0.3.11-1) unstable; urgency=low
-
- * fixed bug when position is in 'South or West'
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.11-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 19 Dec 2011 18:12:57 +0900
-
-libug-setting-location-efl (0.3.10-1) unstable; urgency=low
-
- * Add 'Location service' help under Location service button. Change kmph to km/h.
- * Git: slp/pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.10-1
-
- -- Genie Kim <daejins.kim@samsung.com> Thu, 08 Dec 2011 11:09:20 +0900
-
-libug-setting-location-efl (0.3.9-1) unstable; urgency=low
-
- * Disable button click after first click event on genlist item.
- * Resolve CQ defect(H0100137377 / Two screens opens after quickly tap My position or Help options in Location)
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.9-1
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 23 Nov 2011 15:02:33 +0900
-
-libug-setting-location-efl (0.3.8-1) unstable; urgency=low
-
- * vconf key path is changed
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.8-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 17 Oct 2011 13:27:21 +0900
-
-libug-setting-location-efl (0.3.7-1) unstable; urgency=low
-
- * Change elm_navigationbar to elm_naviframe.
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.7-1
-
- -- Yunhan Kim <yhan.kim@samsung.com> Mon, 10 Oct 2011 20:08:08 +0900
-
-libug-setting-location-efl (0.3.6-1) unstable; urgency=low
-
- * Fixed H0100133972 : Help contents headlines are 'bold'
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.6-1
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 07 Oct 2011 11:32:28 +0900
-
-libug-setting-location-efl (0.3.5-1) unstable; urgency=low
-
- * add turkce(tr_TR.po)
- * change help view according to GUI guide
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.5-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 29 Aug 2011 19:21:30 +0900
-
-libug-setting-location-efl (0.3.4-1) unstable; urgency=low
-
- * support multi-languages(add 13 languages)
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.4-1
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 26 Aug 2011 13:26:50 +0900
-
-libug-setting-location-efl (0.3.3-1) unstable; urgency=low
-
- * support multi languages
- * Help view is changed with theme color
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.3-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 22 Aug 2011 22:35:56 +0900
-
-libug-setting-location-efl (0.3.2-1) unstable; urgency=low
-
- * EFL theme is chaged
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.2-1
-
- -- Genie Kim <daejins.kim@samsung.com> Sat, 06 Aug 2011 15:49:11 +0900
-
-libug-setting-location-efl (0.3.1-2) unstable; urgency=low
-
- * re-upload package to build server
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.1-2
-
- -- Genie Kim <daejins.kim@samsung.com> Sat, 23 Jul 2011 15:42:58 +0900
-
-libug-setting-location-efl (0.3.1-1) unstable; urgency=low
-
- * Fixed CQ defects : disable my position list & pressing name on list
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.1-1
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 22 Jul 2011 13:41:42 +0900
-
-libug-setting-location-efl (0.3.0-1) unstable; urgency=low
-
- * New UI guide is released
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.3.0-1
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 01 Jul 2011 17:56:30 +0900
-
-libug-setting-location-efl (0.2.12-1) unstable; urgency=low
-
- * fix CQ(H0100126732/H010126734)
- * chagne style of dialougue group seperator / back button
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.12-1
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 11 May 2011 18:07:34 +0900
-
-libug-setting-location-efl (0.2.11-1) unstable; urgency=low
-
- * genlist dialougue group background theme
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.11-1
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 20 Apr 2011 12:07:20 +0900
-
-libug-setting-location-efl (0.2.10-1) unstable; urgency=low
-
- * nbeat theme : genlist & check button
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.10-1
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 30 Mar 2011 20:48:18 +0900
-
-libug-setting-location-efl (0.2.9-1) unstable; urgency=low
-
- * nbeat navigation bar
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.9-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 28 Mar 2011 22:31:43 +0900
-
-libug-setting-location-efl (0.2.8-1) unstable; urgency=low
-
- * remove location enable option
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.8-1
-
- -- Genie Kim <daejins.kim@samsung.com> Tue, 08 Mar 2011 17:10:02 +0900
-
-libug-setting-location-efl (0.2.7-1) unstable; urgency=low
-
- * fixed CQ defect(H0100121364)
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.7-1
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 25 Feb 2011 15:10:09 +0900
-
-libug-setting-location-efl (0.2.6-1) unstable; urgency=low
-
- * add Sensor aiding
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.6-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 14 Feb 2011 22:09:45 +0900
-
-libug-setting-location-efl (0.2.5-1) unstable; urgency=low
-
- * rollback endkey event
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.5-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 07 Feb 2011 14:18:20 +0900
-
-libug-setting-location-efl (0.2.4-1) unstable; urgency=low
-
- * delete callback of popup
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.4-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 24 Jan 2011 23:00:13 +0900
-
-libug-setting-location-efl (0.2.3-1) unstable; urgency=low
-
- * changs of UG directory policy
- * end key event
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.3-1
-
- -- Genie Kim <daejins.kim@samsung.com> Mon, 24 Jan 2011 14:48:50 +0900
-
-libug-setting-location-efl (0.2.2) unstable; urgency=low
-
- * Changes menu according to UX design
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.2
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 05 Jan 2011 16:51:37 +0900
-
-libug-setting-location-efl (0.2.1) unstable; urgency=low
-
- * Add popup of warning message
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.1
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 24 Dec 2010 15:25:42 +0900
-
-libug-setting-location-efl (0.2.0) unstable; urgency=low
-
- * Add new options(Use Network / GPS / AGPS)
- * Change check to toggle button
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.2.0
-
- -- Genie Kim <daejins.kim@samsung.com> Wed, 15 Dec 2010 12:08:14 +0900
-
-libug-setting-location-efl (0.1.6) unstable; urgency=low
-
- * Fix sp in box
- * Git: pkgs/u/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.6
-
- -- Genie Kim <daejins.kim@samsung.com> Fri, 10 Dec 2010 20:58:25 +0900
-
-libug-setting-location-efl (0.1.5) unstable; urgency=low
-
- * Fix as-needed
- * Git: 165.213.180.234:/git/slp/pkgs/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.5
-
- -- Tae-Hwan Kim <the81.kim@samsung.com> Wed, 17 Nov 2010 22:24:01 +0900
-
-libug-setting-location-efl (0.1.4-1) unstable; urgency=low
-
- * Fix for debugging package
- * Git: 165.213.180.234:/git/slp/pkgs/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.4-1
-
- -- Tae-Hwan Kim <the81.kim@samsung.com> Mon, 15 Nov 2010 21:19:06 +0900
-
-libug-setting-location-efl (0.1.3) unstable; urgency=low
-
- * Update for multi language support again
- * Git: 165.213.180.234:/git/slp/pkgs/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.3
-
- -- Tae-Hwan Kim <the81.kim@samsung.com> Mon, 25 Oct 2010 12:13:01 +0900
-
-libug-setting-location-efl (0.1.2) unstable; urgency=low
-
- * Update for multi language support
- * Git: 165.213.180.234:/git/slp/pkgs/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.2
-
- -- Tae-Hwan Kim <the81.kim@samsung.com> Wed, 20 Oct 2010 21:14:14 +0900
-
-libug-setting-location-efl (0.1.1) unstable; urgency=low
-
- * Add Agps Popup
- * Git: 165.213.180.234:/git/slp/pkgs/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.1
-
- -- Tae-Hwan Kim <the81.kim@samsung.com> Thu, 07 Oct 2010 22:55:56 +0900
-
-libug-setting-location-efl (0.1.0) unstable; urgency=low
-
- * Initial release
- * Git: 165.213.180.234:/git/slp/pkgs/ug-setting-location-efl
- * Tag: libug-setting-location-efl_0.1.0
-
- -- Tae-Hwan Kim <the81.kim@samsung.com> Sat, 11 Sep 2010 14:22:30 +0900
-
diff --git a/libug-setting-location-efl-help.c b/libug-setting-location-efl-help.c
index c9bbb76..36cd8e6 100644
--- a/libug-setting-location-efl-help.c
+++ b/libug-setting-location-efl-help.c
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * 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 "libug-setting-location-efl.h"
@@ -43,24 +36,31 @@ static char *help_msg[] = {
#define LOCATION_HELP_MENU_NET 2
#define LOCATION_HELP_MENU_SENSOR 3
-static void setting_location_help_back_cb(void *data, Evas_Object * obj, void *event_info)
+static void setting_location_help_back_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
elm_genlist_item_class_free(ugd->itc_help_msg);
- elm_genlist_select_mode_set(ugd->genlist, ELM_OBJECT_SELECT_MODE_DEFAULT);
+ elm_genlist_select_mode_set(ugd->genlist,
+ ELM_OBJECT_SELECT_MODE_DEFAULT);
elm_naviframe_item_pop(ugd->naviframe);
}
-static char *_setting_location_help_gl_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_help_gl_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
char help_message[1024];
snprintf(help_message, sizeof(help_message) - 1,
"<b>%s</b><br>%s<br><br><b>%s</b><br>%s<br><br><b>%s</b><br>%s<br><br><b>%s</b><br>%s",
- _(help_menu[LOCATION_HELP_MENU_ENABLE]), _(help_msg[LOCATION_HELP_MENU_ENABLE]),\
- _(help_menu[LOCATION_HELP_MENU_AGPS]), _(help_msg[LOCATION_HELP_MENU_AGPS]),\
- _(help_menu[LOCATION_HELP_MENU_NET]), _(help_msg[LOCATION_HELP_MENU_NET]),\
- _(help_menu[LOCATION_HELP_MENU_SENSOR]), _(help_msg[LOCATION_HELP_MENU_SENSOR]));
+ _(help_menu[LOCATION_HELP_MENU_ENABLE]),
+ _(help_msg[LOCATION_HELP_MENU_ENABLE]),
+ _(help_menu[LOCATION_HELP_MENU_AGPS]),
+ _(help_msg[LOCATION_HELP_MENU_AGPS]),
+ _(help_menu[LOCATION_HELP_MENU_NET]),
+ _(help_msg[LOCATION_HELP_MENU_NET]),
+ _(help_menu[LOCATION_HELP_MENU_SENSOR]),
+ _(help_msg[LOCATION_HELP_MENU_SENSOR]));
return strdup(help_message);
}
@@ -82,7 +82,9 @@ Evas_Object *setting_location_help_create_gl(Evas_Object * parent, void *data)
ugd->itc_help_msg->func.state_get = NULL;
ugd->itc_help_msg->func.del = NULL;
- ugd->gi_help = elm_genlist_item_append(genlist, ugd->itc_help_msg, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ ugd->gi_help =
+ elm_genlist_item_append(genlist, ugd->itc_help_msg, (void *)ugd,
+ NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_select_mode_set(genlist, ELM_OBJECT_SELECT_MODE_NONE);
@@ -99,11 +101,13 @@ int setting_location_help_view(void *data)
Evas_Object *l_button;
l_button = elm_button_add(ugd->naviframe);
- evas_object_smart_callback_add(l_button, "clicked", setting_location_help_back_cb, ugd);
+ evas_object_smart_callback_add(l_button, "clicked",
+ setting_location_help_back_cb, ugd);
genlist = setting_location_help_create_gl(ugd->naviframe, ugd);
- elm_naviframe_item_push(ugd->naviframe, _("IDS_ST_BODY_HELP"), l_button, NULL, genlist, NULL);
+ elm_naviframe_item_push(ugd->naviframe, _("IDS_ST_BODY_HELP"), l_button,
+ NULL, genlist, NULL);
elm_object_style_set(l_button, "naviframe/back_btn/default");
diff --git a/libug-setting-location-efl-help.h b/libug-setting-location-efl-help.h
index a8c2d3a..b8d73ae 100644
--- a/libug-setting-location-efl-help.h
+++ b/libug-setting-location-efl-help.h
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * 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 __libug_setting_location_efl_help_H__
diff --git a/libug-setting-location-efl-log.h b/libug-setting-location-efl-log.h
index a460af1..dce5d46 100644
--- a/libug-setting-location-efl-log.h
+++ b/libug-setting-location-efl-log.h
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
#ifndef __DEF_ADMIN_LBS_VIEW_MANAGER_H_
diff --git a/libug-setting-location-efl-mypos.c b/libug-setting-location-efl-mypos.c
index f899b69..23d65a3 100644
--- a/libug-setting-location-efl-mypos.c
+++ b/libug-setting-location-efl-mypos.c
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * 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 "libug-setting-location-efl.h"
@@ -37,7 +30,9 @@ static char *mypos_menu[] = {
#define LOCATION_MYPOS_MENU_ALT 2
#define LOCATION_MYPOS_MENU_SPEED 3
-static void _loc_ug_position_updated_cb(double latitude, double longitude, double altitude, time_t timestamp, void *user_data)
+static void _loc_ug_position_updated_cb(double latitude, double longitude,
+ double altitude, time_t timestamp,
+ void *user_data)
{
struct ug_data *ugd = (struct ug_data *)user_data;
ugd->latitude = latitude;
@@ -48,21 +43,24 @@ static void _loc_ug_position_updated_cb(double latitude, double longitude, doubl
elm_genlist_item_update(ugd->gi_alt);
}
-static void _loc_ug_velocity_updated_cb(double speed, double direction, double climb, time_t timestamp, void *user_data)
+static void _loc_ug_velocity_updated_cb(double speed, double direction,
+ double climb, time_t timestamp,
+ void *user_data)
{
struct ug_data *ugd = (struct ug_data *)user_data;
ugd->speed = speed;
elm_genlist_item_update(ugd->gi_speed);
}
-static void setting_location_mypos_free_itc(Elm_Genlist_Item_Class *itc)
+static void setting_location_mypos_free_itc(Elm_Genlist_Item_Class * itc)
{
if (itc) {
elm_genlist_item_class_free(itc);
}
}
-static void setting_location_mypos_back_cb(void *data, Evas_Object * obj, void *event_info)
+static void setting_location_mypos_back_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -75,12 +73,15 @@ static void setting_location_mypos_back_cb(void *data, Evas_Object * obj, void *
setting_location_mypos_free_itc(ugd->itc_alt);
setting_location_mypos_free_itc(ugd->itc_speed);
- elm_genlist_select_mode_set(ugd->genlist, ELM_OBJECT_SELECT_MODE_DEFAULT);
+ elm_genlist_select_mode_set(ugd->genlist,
+ ELM_OBJECT_SELECT_MODE_DEFAULT);
elm_naviframe_item_pop(ugd->naviframe);
}
-static char *_setting_location_mypos_gl_lat_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_mypos_gl_lat_text_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -102,7 +103,9 @@ static char *_setting_location_mypos_gl_lat_text_get(void *data, Evas_Object * o
return NULL;
}
-static char *_setting_location_mypos_gl_long_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_mypos_gl_long_text_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -124,7 +127,9 @@ static char *_setting_location_mypos_gl_long_text_get(void *data, Evas_Object *
return NULL;
}
-static char *_setting_location_mypos_gl_alt_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_mypos_gl_alt_text_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -142,7 +147,9 @@ static char *_setting_location_mypos_gl_alt_text_get(void *data, Evas_Object * o
return NULL;
}
-static char *_setting_location_mypos_gl_speed_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_mypos_gl_speed_text_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -176,8 +183,11 @@ Evas_Object *setting_location_mypos_create_gl(Evas_Object * parent, void *data)
ugd->itc_sep->func.state_get = NULL;
ugd->itc_sep->func.del = NULL;
- item = elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ item =
+ elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ elm_genlist_item_select_mode_set(item,
+ ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
ugd->itc_lat = elm_genlist_item_class_new();
ugd->itc_lat->item_style = "dialogue/2text.2";
@@ -186,7 +196,9 @@ Evas_Object *setting_location_mypos_create_gl(Evas_Object * parent, void *data)
ugd->itc_lat->func.state_get = NULL;
ugd->itc_lat->func.del = NULL;
- ugd->gi_lat = elm_genlist_item_append(genlist, ugd->itc_lat, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ ugd->gi_lat =
+ elm_genlist_item_append(genlist, ugd->itc_lat, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
ugd->itc_long = elm_genlist_item_class_new();
ugd->itc_long->item_style = "dialogue/2text.2";
@@ -195,7 +207,9 @@ Evas_Object *setting_location_mypos_create_gl(Evas_Object * parent, void *data)
ugd->itc_long->func.state_get = NULL;
ugd->itc_long->func.del = NULL;
- ugd->gi_long = elm_genlist_item_append(genlist, ugd->itc_long, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ ugd->gi_long =
+ elm_genlist_item_append(genlist, ugd->itc_long, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
ugd->itc_alt = elm_genlist_item_class_new();
ugd->itc_alt->item_style = "dialogue/2text.2";
@@ -204,16 +218,21 @@ Evas_Object *setting_location_mypos_create_gl(Evas_Object * parent, void *data)
ugd->itc_alt->func.state_get = NULL;
ugd->itc_alt->func.del = NULL;
- ugd->gi_alt = elm_genlist_item_append(genlist, ugd->itc_alt, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ ugd->gi_alt =
+ elm_genlist_item_append(genlist, ugd->itc_alt, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
ugd->itc_speed = elm_genlist_item_class_new();
ugd->itc_speed->item_style = "dialogue/2text.2";
- ugd->itc_speed->func.text_get = _setting_location_mypos_gl_speed_text_get;
+ ugd->itc_speed->func.text_get =
+ _setting_location_mypos_gl_speed_text_get;
ugd->itc_speed->func.content_get = NULL;
ugd->itc_speed->func.state_get = NULL;
ugd->itc_speed->func.del = NULL;
- ugd->gi_speed = elm_genlist_item_append(genlist, ugd->itc_speed, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ ugd->gi_speed =
+ elm_genlist_item_append(genlist, ugd->itc_speed, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_select_mode_set(genlist, ELM_OBJECT_SELECT_MODE_NONE);
evas_object_show(genlist);
@@ -225,13 +244,18 @@ int setting_location_position_start(void *data)
{
struct ug_data *ugd = (struct ug_data *)data;
- if (location_manager_create(LOCATIONS_METHOD_HYBRID, &ugd->loc) != LOCATIONS_ERROR_NONE) {
+ if (location_manager_create(LOCATIONS_METHOD_HYBRID, &ugd->loc) !=
+ LOCATIONS_ERROR_NONE) {
LOC_LOG("location_manager_create is failed");
return -1;
}
- location_manager_set_position_updated_cb(ugd->loc, _loc_ug_position_updated_cb, 1, (void *)ugd);
- location_manager_set_velocity_updated_cb(ugd->loc, _loc_ug_velocity_updated_cb, (void *)ugd);
+ location_manager_set_position_updated_cb(ugd->loc,
+ _loc_ug_position_updated_cb, 1,
+ (void *)ugd);
+ location_manager_set_velocity_updated_cb(ugd->loc,
+ _loc_ug_velocity_updated_cb,
+ (void *)ugd);
if (location_manager_start(ugd->loc) != LOCATIONS_ERROR_NONE) {
LOC_LOG("location_manager_start is failed");
@@ -268,11 +292,13 @@ int setting_location_mypos_view(void *data)
}
l_button = elm_button_add(ugd->naviframe);
- evas_object_smart_callback_add(l_button, "clicked", setting_location_mypos_back_cb, ugd);
+ evas_object_smart_callback_add(l_button, "clicked",
+ setting_location_mypos_back_cb, ugd);
genlist = setting_location_mypos_create_gl(ugd->naviframe, ugd);
- elm_naviframe_item_push(ugd->naviframe, _("IDS_ST_BODY_MY_POSITION"), l_button, NULL, genlist, NULL);
+ elm_naviframe_item_push(ugd->naviframe, _("IDS_ST_BODY_MY_POSITION"),
+ l_button, NULL, genlist, NULL);
elm_object_style_set(l_button, "naviframe/back_btn/default");
diff --git a/libug-setting-location-efl-mypos.h b/libug-setting-location-efl-mypos.h
index 9bc71d0..4904ae1 100644
--- a/libug-setting-location-efl-mypos.h
+++ b/libug-setting-location-efl-mypos.h
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * 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 __libug_setting_location_efl_mypos_H__
diff --git a/libug-setting-location-efl.c b/libug-setting-location-efl.c
index 3d123a9..e2fa65a 100644
--- a/libug-setting-location-efl.c
+++ b/libug-setting-location-efl.c
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * 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
@@ -76,16 +69,16 @@ void setting_location_check_di(void *data)
elm_object_item_disabled_set(ugd->gi_mypos, !ugd->is_location);
}
-static void setting_location_free_itc(Elm_Genlist_Item_Class *itc)
+static void setting_location_free_itc(Elm_Genlist_Item_Class * itc)
{
if (itc == NULL) {
return;
}
- elm_genlist_item_class_free(itc);
+ elm_genlist_item_class_free(itc);
}
-
-static void setting_location_back_cb(void *data, Evas_Object * obj, void *event_info)
+static void setting_location_back_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -100,7 +93,8 @@ static void setting_location_back_cb(void *data, Evas_Object * obj, void *event_
ug_destroy_me(ugd->ug);
}
-static void _setting_location_gps_cb(void *data, Evas_Object * obj, void *event_info)
+static void _setting_location_gps_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -111,7 +105,8 @@ static void _setting_location_gps_cb(void *data, Evas_Object * obj, void *event_
setting_location_check_di(ugd);
}
-static void _setting_location_agps_cb(void *data, Evas_Object * obj, void *event_info)
+static void _setting_location_agps_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -125,7 +120,8 @@ static void _setting_location_agps_cb(void *data, Evas_Object * obj, void *event
setting_location_set_int(AGPS_ENABLED, ugd->is_agps);
}
-static void _setting_location_net_cb(void *data, Evas_Object * obj, void *event_info)
+static void _setting_location_net_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -139,7 +135,8 @@ static void _setting_location_net_cb(void *data, Evas_Object * obj, void *event_
setting_location_set_int(NETWORK_ENABLED, ugd->is_net);
}
-static void _setting_location_sensor_cb(void *data, Evas_Object * obj, void *event_info)
+static void _setting_location_sensor_cb(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -154,12 +151,15 @@ static void _setting_location_sensor_cb(void *data, Evas_Object * obj, void *eve
setting_location_set_int(SENSOR_ENABLED, ugd->is_sensor);
}
-static char *_setting_location_gl_gps_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_gps_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
return strdup(_(menu[LOCATION_MENU_ENABLE]));
}
-static Evas_Object *_setting_location_gl_gps_check_get(void *data, Evas_Object * obj, const char *part)
+static Evas_Object *_setting_location_gl_gps_check_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -175,22 +175,29 @@ static Evas_Object *_setting_location_gl_gps_check_get(void *data, Evas_Object *
elm_object_style_set(tg, "on&off");
evas_object_propagate_events_set(tg, EINA_FALSE);
- evas_object_smart_callback_add(tg, "changed", _setting_location_gps_cb, ugd);
+ evas_object_smart_callback_add(tg, "changed", _setting_location_gps_cb,
+ ugd);
return tg;
}
-static char *_setting_location_gl_loc_msg_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_loc_msg_get(void *data, Evas_Object * obj,
+ const char *part)
{
- return strdup(_("IDS_ST_APPLICATIONS_WILL_BE_PERMITTED_TO_USE_YOUR_LOCATION"));
+ return
+ strdup(_
+ ("IDS_ST_APPLICATIONS_WILL_BE_PERMITTED_TO_USE_YOUR_LOCATION"));
}
-static char *_setting_location_gl_agps_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_agps_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
return strdup(_(menu[LOCATION_MENU_AGPS]));
}
-static Evas_Object *_setting_location_gl_agps_check_get(void *data, Evas_Object * obj, const char *part)
+static Evas_Object *_setting_location_gl_agps_check_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -206,17 +213,21 @@ static Evas_Object *_setting_location_gl_agps_check_get(void *data, Evas_Object
elm_object_style_set(tg, "on&off");
evas_object_propagate_events_set(tg, EINA_FALSE);
- evas_object_smart_callback_add(tg, "changed", _setting_location_agps_cb, ugd);
+ evas_object_smart_callback_add(tg, "changed", _setting_location_agps_cb,
+ ugd);
return tg;
}
-static char *_setting_location_gl_net_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_net_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
return strdup(_(menu[LOCATION_MENU_NET]));
}
-static Evas_Object *_setting_location_gl_net_check_get(void *data, Evas_Object * obj, const char *part)
+static Evas_Object *_setting_location_gl_net_check_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -232,17 +243,21 @@ static Evas_Object *_setting_location_gl_net_check_get(void *data, Evas_Object *
elm_object_style_set(tg, "on&off");
evas_object_propagate_events_set(tg, EINA_FALSE);
- evas_object_smart_callback_add(tg, "changed", _setting_location_net_cb, ugd);
+ evas_object_smart_callback_add(tg, "changed", _setting_location_net_cb,
+ ugd);
return tg;
}
-static char *_setting_location_gl_sensor_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_sensor_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
return strdup(_(menu[LOCATION_MENU_SENSOR]));
}
-static Evas_Object *_setting_location_gl_sensor_check_get(void *data, Evas_Object * obj, const char *part)
+static Evas_Object *_setting_location_gl_sensor_check_get(void *data,
+ Evas_Object * obj,
+ const char *part)
{
struct ug_data *ugd = (struct ug_data *)data;
@@ -258,17 +273,20 @@ static Evas_Object *_setting_location_gl_sensor_check_get(void *data, Evas_Objec
elm_object_style_set(tg, "on&off");
evas_object_propagate_events_set(tg, EINA_FALSE);
- evas_object_smart_callback_add(tg, "changed", _setting_location_sensor_cb, ugd);
+ evas_object_smart_callback_add(tg, "changed",
+ _setting_location_sensor_cb, ugd);
return tg;
}
-static char *_setting_location_gl_mypos_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_mypos_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
return strdup(_(menu[LOCATION_MENU_MYPOS]));
}
-static char *_setting_location_gl_help_text_get(void *data, Evas_Object * obj, const char *part)
+static char *_setting_location_gl_help_text_get(void *data, Evas_Object * obj,
+ const char *part)
{
return strdup(_(menu[LOCATION_MENU_HELP]));
}
@@ -280,14 +298,16 @@ static Evas_Object *setting_location_create_layout(Evas_Object * parent)
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);
+ evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
+ EVAS_HINT_EXPAND);
elm_win_resize_object_add(parent, layout);
bg = elm_bg_add(layout);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
+ EVAS_HINT_EXPAND);
elm_object_part_content_set(layout, "elm.swallow.bg", bg);
elm_object_style_set(bg, "group_list");
-
+
evas_object_show(layout);
return layout;
@@ -306,7 +326,8 @@ Evas_Object *setting_location_create_navibar(Evas_Object * parent)
return naviframe;
}
-static void setting_location_gl_gps_sel(void *data, Evas_Object *obj, void *event_info)
+static void setting_location_gl_gps_sel(void *data, Evas_Object * obj,
+ void *event_info)
{
LOC_LOG("setting_location_gl_gps_sel");
struct ug_data *ugd = (struct ug_data *)data;
@@ -315,10 +336,12 @@ static void setting_location_gl_gps_sel(void *data, Evas_Object *obj, void *even
elm_check_state_set(ugd->tg_gps, !state);
ugd->is_location = (!state == EINA_TRUE) ? KEY_ENABLED : KEY_DISABLED;
setting_location_set_int(LOCATION_ENABLED, ugd->is_location);
- elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
+ elm_genlist_item_selected_set((Elm_Object_Item *) event_info,
+ EINA_FALSE);
}
-static void setting_location_gl_agps_sel(void *data, Evas_Object *obj, void *event_info)
+static void setting_location_gl_agps_sel(void *data, Evas_Object * obj,
+ void *event_info)
{
LOC_LOG("setting_location_gl_agps_sel");
struct ug_data *ugd = (struct ug_data *)data;
@@ -327,10 +350,12 @@ static void setting_location_gl_agps_sel(void *data, Evas_Object *obj, void *eve
elm_check_state_set(ugd->tg_agps, !state);
ugd->is_agps = (!state == EINA_TRUE) ? KEY_ENABLED : KEY_DISABLED;
setting_location_set_int(AGPS_ENABLED, ugd->is_agps);
- elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
+ elm_genlist_item_selected_set((Elm_Object_Item *) event_info,
+ EINA_FALSE);
}
-static void setting_location_gl_net_sel(void *data, Evas_Object *obj, void *event_info)
+static void setting_location_gl_net_sel(void *data, Evas_Object * obj,
+ void *event_info)
{
LOC_LOG("setting_location_gl_net_sel");
struct ug_data *ugd = (struct ug_data *)data;
@@ -339,10 +364,12 @@ static void setting_location_gl_net_sel(void *data, Evas_Object *obj, void *even
elm_check_state_set(ugd->tg_net, !state);
ugd->is_net = (!state == EINA_TRUE) ? KEY_ENABLED : KEY_DISABLED;
setting_location_set_int(NETWORK_ENABLED, ugd->is_net);
- elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
+ elm_genlist_item_selected_set((Elm_Object_Item *) event_info,
+ EINA_FALSE);
}
-static void setting_location_gl_sensor_sel(void *data, Evas_Object *obj, void *event_info)
+static void setting_location_gl_sensor_sel(void *data, Evas_Object * obj,
+ void *event_info)
{
LOC_LOG("setting_location_gl_sensor_sel");
struct ug_data *ugd = (struct ug_data *)data;
@@ -351,28 +378,33 @@ static void setting_location_gl_sensor_sel(void *data, Evas_Object *obj, void *e
elm_check_state_set(ugd->tg_sensor, !state);
ugd->is_sensor = (!state == EINA_TRUE) ? KEY_ENABLED : KEY_DISABLED;
setting_location_set_int(SENSOR_ENABLED, ugd->is_sensor);
- elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
+ elm_genlist_item_selected_set((Elm_Object_Item *) event_info,
+ EINA_FALSE);
return;
}
-static void setting_location_mypos_sel(void *data, Evas_Object *obj, void *event_info)
+static void setting_location_mypos_sel(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
elm_genlist_select_mode_set(ugd->genlist, ELM_OBJECT_SELECT_MODE_NONE);
- elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
+ elm_genlist_item_selected_set((Elm_Object_Item *) event_info,
+ EINA_FALSE);
setting_location_mypos_view(data);
return;
}
-static void setting_location_help_sel(void *data, Evas_Object *obj, void *event_info)
+static void setting_location_help_sel(void *data, Evas_Object * obj,
+ void *event_info)
{
struct ug_data *ugd = (struct ug_data *)data;
elm_genlist_select_mode_set(ugd->genlist, ELM_OBJECT_SELECT_MODE_NONE);
- elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
+ elm_genlist_item_selected_set((Elm_Object_Item *) event_info,
+ EINA_FALSE);
setting_location_help_view(data);
return;
}
@@ -394,8 +426,11 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_sep->func.state_get = NULL;
ugd->itc_sep->func.del = NULL;
- item = elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ item =
+ elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ elm_genlist_item_select_mode_set(item,
+ ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
ugd->itc_gps = elm_genlist_item_class_new();
ugd->itc_gps->item_style = "dialogue/1text.1icon";
@@ -404,7 +439,10 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_gps->func.state_get = NULL;
ugd->itc_gps->func.del = NULL;
- ugd->gi_gps = elm_genlist_item_append(genlist, ugd->itc_gps, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, setting_location_gl_gps_sel, ugd);
+ ugd->gi_gps =
+ elm_genlist_item_append(genlist, ugd->itc_gps, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ setting_location_gl_gps_sel, ugd);
ugd->itc_msg = elm_genlist_item_class_new();
ugd->itc_msg->item_style = "multiline/1text";
@@ -413,11 +451,17 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_msg->func.state_get = NULL;
ugd->itc_msg->func.del = NULL;
- item = elm_genlist_item_append(genlist, ugd->itc_msg, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ item =
+ elm_genlist_item_append(genlist, ugd->itc_msg, NULL, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ elm_genlist_item_select_mode_set(item,
+ ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
- item = elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ item =
+ elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ elm_genlist_item_select_mode_set(item,
+ ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
ugd->itc_agps = elm_genlist_item_class_new();
ugd->itc_agps->item_style = "dialogue/1text.1icon";
@@ -426,7 +470,10 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_agps->func.state_get = NULL;
ugd->itc_agps->func.del = NULL;
- ugd->gi_agps = elm_genlist_item_append(genlist, ugd->itc_agps, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, setting_location_gl_agps_sel, ugd);
+ ugd->gi_agps =
+ elm_genlist_item_append(genlist, ugd->itc_agps, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ setting_location_gl_agps_sel, ugd);
ugd->itc_net = elm_genlist_item_class_new();
ugd->itc_net->item_style = "dialogue/1text.1icon";
@@ -435,16 +482,23 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_net->func.state_get = NULL;
ugd->itc_net->func.del = NULL;
- ugd->gi_net = elm_genlist_item_append(genlist, ugd->itc_net, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, setting_location_gl_net_sel, ugd);
+ ugd->gi_net =
+ elm_genlist_item_append(genlist, ugd->itc_net, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ setting_location_gl_net_sel, ugd);
ugd->itc_sensor = elm_genlist_item_class_new();
ugd->itc_sensor->item_style = "dialogue/1text.1icon";
ugd->itc_sensor->func.text_get = _setting_location_gl_sensor_text_get;
- ugd->itc_sensor->func.content_get = _setting_location_gl_sensor_check_get;
+ ugd->itc_sensor->func.content_get =
+ _setting_location_gl_sensor_check_get;
ugd->itc_sensor->func.state_get = NULL;
ugd->itc_sensor->func.del = NULL;
- ugd->gi_sensor = elm_genlist_item_append(genlist, ugd->itc_sensor, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, setting_location_gl_sensor_sel, ugd);
+ ugd->gi_sensor =
+ elm_genlist_item_append(genlist, ugd->itc_sensor, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ setting_location_gl_sensor_sel, ugd);
ugd->itc_mypos = elm_genlist_item_class_new();
ugd->itc_mypos->item_style = "dialogue/1text.1icon";
@@ -453,10 +507,16 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_mypos->func.state_get = NULL;
ugd->itc_mypos->func.del = NULL;
- ugd->gi_mypos = elm_genlist_item_append(genlist, ugd->itc_mypos, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, setting_location_mypos_sel, ugd);
+ ugd->gi_mypos =
+ elm_genlist_item_append(genlist, ugd->itc_mypos, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ setting_location_mypos_sel, ugd);
- item = elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ item =
+ elm_genlist_item_append(genlist, ugd->itc_sep, NULL, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ elm_genlist_item_select_mode_set(item,
+ ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
ugd->itc_help = elm_genlist_item_class_new();
ugd->itc_help->item_style = "dialogue/1text.1icon";
@@ -465,14 +525,18 @@ Evas_Object *setting_location_create_gl(Evas_Object * parent, void *data)
ugd->itc_help->func.state_get = NULL;
ugd->itc_help->func.del = NULL;
- ugd->gi_help = elm_genlist_item_append(genlist, ugd->itc_help, (void *)ugd, NULL, ELM_GENLIST_ITEM_NONE, setting_location_help_sel, ugd);
+ ugd->gi_help =
+ elm_genlist_item_append(genlist, ugd->itc_help, (void *)ugd, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ setting_location_help_sel, ugd);
evas_object_show(genlist);
return genlist;
}
-static Evas_Object *setting_location_create_view(Evas_Object * parent, struct ug_data *ugd)
+static Evas_Object *setting_location_create_view(Evas_Object * parent,
+ struct ug_data *ugd)
{
Evas_Object *layout_main;
Evas_Object *l_button;
@@ -482,11 +546,13 @@ static Evas_Object *setting_location_create_view(Evas_Object * parent, struct ug
ugd->naviframe = setting_location_create_navibar(layout_main);
l_button = elm_button_add(ugd->naviframe);
- evas_object_smart_callback_add(l_button, "clicked", setting_location_back_cb, ugd);
+ evas_object_smart_callback_add(l_button, "clicked",
+ setting_location_back_cb, ugd);
ugd->genlist = setting_location_create_gl(ugd->naviframe, ugd);
- elm_naviframe_item_push(ugd->naviframe, _("IDS_ST_BODY_LOCATION"), l_button, NULL, ugd->genlist, NULL);
+ elm_naviframe_item_push(ugd->naviframe, _("IDS_ST_BODY_LOCATION"),
+ l_button, NULL, ugd->genlist, NULL);
elm_object_style_set(l_button, "naviframe/back_btn/default");
@@ -510,7 +576,9 @@ int setting_location_init(struct ug_data *ugd)
ret &= vconf_get_int(AGPS_ENABLED, &ugd->is_agps);
ret &= vconf_get_int(NETWORK_ENABLED, &ugd->is_net);
ret &= vconf_get_int(SENSOR_ENABLED, &ugd->is_sensor);
- ret &= vconf_notify_key_changed(LOCATION_ENABLED, location_enabled_cb, (void *)ugd);
+ ret &=
+ vconf_notify_key_changed(LOCATION_ENABLED, location_enabled_cb,
+ (void *)ugd);
setting_location_check_di(ugd);
@@ -522,7 +590,8 @@ void policy_receiver_cb(int policy_status, void *data)
struct ug_data *ugd = (struct ug_data *)data;
LOC_LOG("policy_receiver_cb() is called [0x%0x]", policy_status);
- ecore_main_loop_thread_safe_call_async(setting_location_check_di, (void *)ugd);
+ ecore_main_loop_thread_safe_call_async(setting_location_check_di,
+ (void *)ugd);
}
int setting_location_deinit(struct ug_data *ugd)
@@ -534,7 +603,7 @@ int setting_location_deinit(struct ug_data *ugd)
return ret;
}
-UG_MODULE_API int setting_plugin_reset(bundle *data, void *priv)
+UG_MODULE_API int setting_plugin_reset(bundle * data, void *priv)
{
if (vconf_set_int(LOCATION_ENABLED, KEY_ENABLED) != 0) {
return -1;
@@ -552,7 +621,8 @@ UG_MODULE_API int setting_plugin_reset(bundle *data, void *priv)
return 0;
}
-static void *on_create(struct ui_gadget *ug, enum ug_mode mode, bundle * data, void *priv)
+static void *on_create(struct ui_gadget *ug, enum ug_mode mode, bundle * data,
+ void *priv)
{
Evas_Object *parent;
struct ug_data *ugd;
@@ -611,11 +681,13 @@ static void on_destroy(struct ui_gadget *ug, bundle * data, void *priv)
ugd->base = NULL;
}
-static void on_message(struct ui_gadget *ug, bundle * msg, bundle * data, void *priv)
+static void on_message(struct ui_gadget *ug, bundle * msg, bundle * data,
+ void *priv)
{
}
-static void on_event(struct ui_gadget *ug, enum ug_event event, bundle * data, void *priv)
+static void on_event(struct ui_gadget *ug, enum ug_event event, bundle * data,
+ void *priv)
{
switch (event) {
case UG_EVENT_LOW_MEMORY:
@@ -637,7 +709,8 @@ static void on_event(struct ui_gadget *ug, enum ug_event event, bundle * data, v
}
}
-static void on_key_event(struct ui_gadget *ug, enum ug_key_event event, bundle * data, void *priv)
+static void on_key_event(struct ui_gadget *ug, enum ug_key_event event,
+ bundle * data, void *priv)
{
if (!ug) {
return;
diff --git a/libug-setting-location-efl.h b/libug-setting-location-efl.h
index 8ced646..bcbe0f9 100644
--- a/libug-setting-location-efl.h
+++ b/libug-setting-location-efl.h
@@ -1,24 +1,17 @@
/*
- * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright 2012 Samsung Electronics Co., Ltd
*
- * This file is part of UG setting location
- * Written by Youngae Kang <youngae.kang@samsung.com>
- * Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
+ * 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
*
- * PROPRIETARY/CONFIDENTIAL
+ * http://www.tizenopensource.org/license
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS.
- * SAMSUNG make no representations or warranties about the suitability
- * of the software, either express or implied, including but not limited
- * to the implied warranties of merchantability, fitness for a particular
- * purpose, or non-infringement. SAMSUNG shall not be liable for any
- * damages suffered by licensee as a result of using, modifying or
- * istributing this software or its derivatives.
+ * 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 __libug_setting_location_efl_H__
@@ -66,7 +59,8 @@ struct ug_data {
Elm_Object_Item *gi_mypos, *gi_help;
Elm_Object_Item *gi_lat, *gi_long, *gi_alt, *gi_speed;
Evas_Object *tg_gps, *tg_net, *tg_agps, *tg_sensor;
- Elm_Genlist_Item_Class *itc_gps, *itc_agps, *itc_net, *itc_sensor, *itc_mypos, *itc_help;
+ Elm_Genlist_Item_Class *itc_gps, *itc_agps, *itc_net, *itc_sensor,
+ *itc_mypos, *itc_help;
Elm_Genlist_Item_Class *itc_sep, *itc_msg, *itc_help_msg;
Elm_Genlist_Item_Class *itc_lat, *itc_long, *itc_alt, *itc_speed;
int is_location, is_net, is_agps, is_sensor;