Tizen 2.0 Release tizen_2.0 submit/tizen_2.0/20130215.192319
authorHyungKyu Song <hk76.song@samsung.com>
Fri, 15 Feb 2013 15:57:27 +0000 (00:57 +0900)
committerHyungKyu Song <hk76.song@samsung.com>
Fri, 15 Feb 2013 15:57:27 +0000 (00:57 +0900)
38 files changed:
AUTHORS [new file with mode: 0644]
LICENSE [new file with mode: 0644]
LICENSE.Flora [new file with mode: 0644]
NOTICE.Flora [new file with mode: 0644]
config.xml [new file with mode: 0644]
css/style.css [new file with mode: 0644]
icon.png [new file with mode: 0755]
images/address_minus_btn.png [new file with mode: 0644]
images/address_plus_btn.png [new file with mode: 0644]
images/checkboxChecked.png [new file with mode: 0644]
images/exit.png [new file with mode: 0644]
images/logs_list_block_icon.png [new file with mode: 0644]
images/logs_list_call_icon.png [new file with mode: 0644]
images/logs_list_dialled_icon.png [new file with mode: 0644]
images/logs_list_missed_icon.png [new file with mode: 0644]
images/logs_list_missed_unchecked_icon.png [new file with mode: 0644]
images/logs_list_mms_icon.png [new file with mode: 0644]
images/logs_list_received_icon.png [new file with mode: 0644]
images/logs_list_rejected_icon.png [new file with mode: 0644]
images/logs_list_sms_icon.png [new file with mode: 0644]
images/logs_list_vtcall_icon.png [new file with mode: 0644]
images/no_photo.png [new file with mode: 0644]
images/trash.png [new file with mode: 0644]
index.html [new file with mode: 0644]
js/app.config.js [new file with mode: 0644]
js/app.helpers.js [new file with mode: 0644]
js/app.js [new file with mode: 0644]
js/app.model.js [new file with mode: 0644]
js/app.ui.js [new file with mode: 0644]
js/app.ui.templateManager.js [new file with mode: 0644]
js/main.js [new file with mode: 0644]
signature1.xml [new file with mode: 0644]
templates/callItemRow.tpl [new file with mode: 0644]
templates/callView.tpl [new file with mode: 0644]
templates/callerCallItemRow.tpl [new file with mode: 0644]
templates/callerHistory.tpl [new file with mode: 0644]
templates/dateRow.tpl [new file with mode: 0644]
templates/messageWindow.tpl [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..31f0274
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,6 @@
+Dariusz Paziewski <d.paziewski at samsung dot com>
+Tomasz Lukawski <t.lukawski at samsung dot com>
+Piotr Wronski <p.wronski at samsung dot com>
+Pawel Sierszen <p.sierszen at samsung dot com>
+Artur Kobylinski <a.kobylinski at samsung dot com>
+Tomasz Paciorek <t.paciorek at samsung dot com>
diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..7ccb5b5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,75 @@
+Flora License
+
+Version 1.0, May, 2012
+
+http://www.tizenopensource.org/license
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+"Tizen Certified Platform" shall mean a software platform that complies with the standards set forth in the Compatibility Definition Document and passes the Compatibility Test Suite as defined from time to time by the Tizen Technical Steering Group and certified by the Tizen Association or its designated agent.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work solely as incorporated into a Tizen Certified Platform, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work solely as incorporated into a Tizen Certified Platform to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof pursuant to the copyright license above, in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+  1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+  2. You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+  3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+  4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Flora License to your work
+
+To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Flora License, Version 1.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.tizenopensource.org/license
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/LICENSE.Flora b/LICENSE.Flora
new file mode 100644 (file)
index 0000000..9c95663
--- /dev/null
@@ -0,0 +1,206 @@
+Flora License
+
+Version 1.0, May, 2012
+
+http://floralicense.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://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.
+
diff --git a/NOTICE.Flora b/NOTICE.Flora
new file mode 100644 (file)
index 0000000..fdb699a
--- /dev/null
@@ -0,0 +1,4 @@
+Copyright (c) 2012 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/config.xml b/config.xml
new file mode 100644 (file)
index 0000000..64d84d6
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://sample-web-application.tizen.org/CallLog" version="2.0.0" viewmodes="maximized">
+    <tizen:application id="ao3z9xqamz" required_version="1.0"/>
+    <content src="index.html"/>
+    <tizen:privilege name="http://tizen.org/privilege/application.read"/>
+    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
+    <tizen:privilege name="http://tizen.org/privilege/callhistory.read"/>
+    <tizen:privilege name="http://tizen.org/privilege/callhistory.write"/>
+    <tizen:privilege name="http://tizen.org/privilege/contact.read"/>
+    <tizen:privilege name="http://tizen.org/privilege/tizen"/>
+    <icon src="icon.png"/>
+    <name>CallLog</name>
+    <tizen:setting screen-orientation="portrait" context-menu="enable"/>
+</widget>
diff --git a/css/style.css b/css/style.css
new file mode 100644 (file)
index 0000000..3d338ec
--- /dev/null
@@ -0,0 +1,373 @@
+html,body {
+       margin: 0px 0px;
+       background-color: #000;
+       width: 100%;
+       height: 100%;
+       color: #fff;
+       font-family: Lucida Sans, Arial, Helvetica, sans-serif;
+       overflow: hidden;
+}
+
+ul.calllogList li.date {
+       background-color: #424242;
+       color: #9B9B9B;
+       height: 22px;
+       font-size: 15px;
+       padding-left: 10px;
+       padding-top: 5px;
+}
+
+ul {
+       list-style-type: none;
+       margin: 0;
+       padding: 0;
+       padding-bottom: 60px;
+       width: 100%;
+       /*float: left;*/
+}
+
+
+
+li {
+       border-bottom: 1px solid #5A99BA;
+       padding: 8px 8px 6px 8px;
+       background-color: #FFF;
+       /*float: left;*/
+       width: 100%;
+}
+
+.hidden {
+       display: none;
+}
+
+.call .numberOrName {
+       font-size: 20px;
+}
+
+.date {
+       background-color: #5A99BA;
+       color: #FFF;
+}
+
+.call .callTime {
+       font-size: 14px;
+       color: #646464;
+       margin-left: 20px;
+       /*float: left;*/
+       margin-top: 2px;
+}
+
+.call .callAllTime {
+       font-size: 20px;
+}
+
+.call .callDuration {
+       font-size: 14px;
+       color: #646464;
+       margin-left: 20px;
+       /*float: left;*/
+       margin-top: 2px;
+}
+
+.footer {
+       background-color: #242F36;
+       height: 45px;
+}
+
+.details {
+       background-color: #5A99BA;
+       height: 30px;
+       color: white;
+       text-align: center;
+       padding-top: 10px;
+       margin-top: 0px;
+}
+
+.detailsView {
+       background-color: #0f0f0f;
+}
+
+.contact {
+       border-bottom: 1px solid #5A99BA;
+       background-color: #FFF;
+       height: 110px;
+}
+
+.contact .photo {
+       width: 50px;
+       height: 50px;
+       background-image: url('../images/no_photo.png');
+       background-repeat: no-repeat;
+       margin: 8px;
+       float: left;
+       background-size: 50px;
+}
+
+.contact .name {
+       font-size: 20px;
+       padding-top: 10px;
+       color: #555;
+}
+
+.contact .number {
+       font-size: 20px;
+       color: #948676;
+       clear: right;
+}
+
+.contact .infoContainer {
+       width: 100%;
+       height: 66px;
+}
+
+.contact .options {
+       clear: both;
+       margin: 0px 0px 8px 8px;
+       float: left;
+       width: 100%;
+}
+
+.contact .options p {
+       float: left;
+       margin: 5px 5px 5px 10px;
+       border: 1px solid #2F2F2F;
+       padding: 4px;
+       width: 25%;
+       text-align: center;
+       background-color: black;
+       border-radius: 3px;
+       border-color: #090909 #1F1F1F #1F1F1F #090909;
+       font-size: 28px;
+}
+
+.options .actionButton {
+       width: 43%;
+}
+
+.trash {
+       background-image: url(../images/trash.png);
+       width: 21px;
+       height: 100%;
+       float: left;
+       margin: 15px;
+       background-size: 100%;
+       background-repeat: no-repeat;
+}
+
+#detailsStandardFooter {
+       height: 100%;
+}
+
+#detailsRemoveFooter {
+       height: 80px;
+}
+
+.trashDisabled {
+       background-image: url(../images/trash.png);
+       width: 18px;
+       height: 20px;
+       float: left;
+       margin: 13px;
+       background-size: 18px;
+       opacity: 0.5;
+}
+
+.exit,.back {
+       background-image: url(../images/exit.png);
+       width: 44px;
+       height: 27px;
+       float: right;
+       border: 0;
+       margin-right: 15px;
+       background-repeat: no-repeat;
+       margin-top: 8px;
+       background-size: 44px;
+}
+
+.cancel {
+       width: 64px;
+       height: 27px;
+       float: right;
+       border: 0;
+       margin-right: 15px;
+       margin-top: 8px;
+       background-color: #353535;
+       color: #fff;
+       border-radius: 4px;
+       width: 200px;
+       height: 80px;
+       font-size: 44px;
+       float: right;
+       margin-top: 18px;
+       margin-right: 10px;
+}
+
+.call .iconStatus {
+       width: 14px;
+       height: 14px;
+       float: left;
+       background-size: 14px;
+       margin-top: 2px;
+}
+
+.call.type_tizen-tel .iconStatus {
+       background-image: url('../images/logs_list_call_icon.png');
+}
+
+.call.dir_dialed .iconStatus {
+       background-image: url('../images/logs_list_dialled_icon.png');
+}
+
+.call.dir_missed .iconStatus {
+       background-image: url('../images/logs_list_missed_icon.png');
+}
+
+.call.dir_missed-new .iconStatus {
+       background-image: url('../images/logs_list_missed_unchecked_icon.png');
+}
+
+.call.dir_received .iconStatus {
+       background-image: url('../images/logs_list_received_icon.png');
+}
+
+.call.dir_rejected .iconStatus {
+       background-image: url('../images/logs_list_rejected_icon.png');
+}
+
+.noPhoto {
+       background-image: url('../images/no_photo.png');
+}
+
+.toRemove {
+       float: left;
+       background-size: 100%;
+       border-radius: 4px;
+       margin-right: 5px;
+}
+
+.toRemove input {
+       opacity: 0;
+       width: 20px;
+       height: 20px;
+}
+
+.toRemove .ui-checkbox {
+       position: relative !important;
+       height: auto;
+}
+
+.checked {
+       background-image: url('../images/checkboxChecked.png');
+}
+
+.selectAllBox {
+       background: #5A99BA;
+       float: left;
+       height: 33px;
+       width: 100%;
+       border-bottom: solid 1px white;
+       padding: 5px 0;
+}
+
+.selectAllBox .toRemove {
+       margin-top: 0px;
+       height: 30px;
+       width: 40px;
+       padding-left: 10px;
+}
+/*
+.selectAllBox input {
+       float: left;
+       width: 25px;
+       height: 25px;
+       margin-left: -3px;
+       margin-top: -2px;
+}*/
+
+.selectAllBox p {
+       float: left;
+       margin: 5px 0 0;
+       color: #FFF;
+}
+
+.selectedCount {
+       height: 20px;
+       text-align: center;
+       background-color: #424242;
+       padding: 4px 0;
+}
+
+.calllogList .toRemove {
+       display: none;
+}
+
+.find {
+       height: 40px;
+       text-align: left;
+       background-color: #424242;
+       padding: 4px 0;
+}
+
+.find input {
+       width: 200px;
+       float: left:
+}
+
+.ui-image-search {
+       width: auto;
+       right: 0;
+       left: auto;
+}
+
+.ui-checkbox, .ui-radio {
+       height: 0;
+}
+
+.my-ui-checkbox {
+       position: relative;
+       float: left;
+       margin-top: -1rem;
+       margin-right: 1.5rem;
+       left: 0rem;
+}
+
+.ui-listview {
+       margin: 0px;
+       padding: 0px;
+       border-top-width: 0px;
+}
+
+.input-search-bar {
+       margin: 0px;
+}
+
+.ui-content.ui-scrollview-clip > div.ui-scrollview-view {
+       margin: 0px;
+       padding: 0px;
+}
+
+.ui-content .ui-listview {
+       margin: 0px;
+       padding: 0px;
+}
+
+#delete {
+       width: 70px;
+}
+
+#delete-toolbar {
+       width: 70px;
+}
+
+.ui-controlbar-s, .ui-controlbar-left, .ui-controlbar-right {
+       border: 0px;
+}
+
+#header.ui-bar-s .ui-btn {
+       /*width: 100px; // this property changed back button width*/
+}
+
+.ui-popupwindow .center_basic_1btn .popup-button-bg .ui-btn {
+       width: 7rem;
+       margin: 0px 10px;
+}
\ No newline at end of file
diff --git a/icon.png b/icon.png
new file mode 100755 (executable)
index 0000000..983c883
Binary files /dev/null and b/icon.png differ
diff --git a/images/address_minus_btn.png b/images/address_minus_btn.png
new file mode 100644 (file)
index 0000000..96f514b
Binary files /dev/null and b/images/address_minus_btn.png differ
diff --git a/images/address_plus_btn.png b/images/address_plus_btn.png
new file mode 100644 (file)
index 0000000..e23e6ff
Binary files /dev/null and b/images/address_plus_btn.png differ
diff --git a/images/checkboxChecked.png b/images/checkboxChecked.png
new file mode 100644 (file)
index 0000000..3482362
Binary files /dev/null and b/images/checkboxChecked.png differ
diff --git a/images/exit.png b/images/exit.png
new file mode 100644 (file)
index 0000000..5e5b54e
Binary files /dev/null and b/images/exit.png differ
diff --git a/images/logs_list_block_icon.png b/images/logs_list_block_icon.png
new file mode 100644 (file)
index 0000000..cb718a9
Binary files /dev/null and b/images/logs_list_block_icon.png differ
diff --git a/images/logs_list_call_icon.png b/images/logs_list_call_icon.png
new file mode 100644 (file)
index 0000000..0e2444a
Binary files /dev/null and b/images/logs_list_call_icon.png differ
diff --git a/images/logs_list_dialled_icon.png b/images/logs_list_dialled_icon.png
new file mode 100644 (file)
index 0000000..828fc96
Binary files /dev/null and b/images/logs_list_dialled_icon.png differ
diff --git a/images/logs_list_missed_icon.png b/images/logs_list_missed_icon.png
new file mode 100644 (file)
index 0000000..8ee1df3
Binary files /dev/null and b/images/logs_list_missed_icon.png differ
diff --git a/images/logs_list_missed_unchecked_icon.png b/images/logs_list_missed_unchecked_icon.png
new file mode 100644 (file)
index 0000000..43f4314
Binary files /dev/null and b/images/logs_list_missed_unchecked_icon.png differ
diff --git a/images/logs_list_mms_icon.png b/images/logs_list_mms_icon.png
new file mode 100644 (file)
index 0000000..86f594c
Binary files /dev/null and b/images/logs_list_mms_icon.png differ
diff --git a/images/logs_list_received_icon.png b/images/logs_list_received_icon.png
new file mode 100644 (file)
index 0000000..30e397a
Binary files /dev/null and b/images/logs_list_received_icon.png differ
diff --git a/images/logs_list_rejected_icon.png b/images/logs_list_rejected_icon.png
new file mode 100644 (file)
index 0000000..af1f97a
Binary files /dev/null and b/images/logs_list_rejected_icon.png differ
diff --git a/images/logs_list_sms_icon.png b/images/logs_list_sms_icon.png
new file mode 100644 (file)
index 0000000..cb58c22
Binary files /dev/null and b/images/logs_list_sms_icon.png differ
diff --git a/images/logs_list_vtcall_icon.png b/images/logs_list_vtcall_icon.png
new file mode 100644 (file)
index 0000000..dcd0664
Binary files /dev/null and b/images/logs_list_vtcall_icon.png differ
diff --git a/images/no_photo.png b/images/no_photo.png
new file mode 100644 (file)
index 0000000..10a4d5b
Binary files /dev/null and b/images/no_photo.png differ
diff --git a/images/trash.png b/images/trash.png
new file mode 100644 (file)
index 0000000..d85e734
Binary files /dev/null and b/images/trash.png differ
diff --git a/index.html b/index.html
new file mode 100644 (file)
index 0000000..c7d0684
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+<meta charset="utf-8" />
+<meta name="description" content="CallLog Web Sample App" />
+<title>CallLog</title>
+<script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+<script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
+<script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js" data-framework-theme="tizen-white" data-framework-viewport-scale="false"></script>
+<script type="text/javascript" src="./js/main.js"></script>
+<link rel="stylesheet" type="text/css" href="./css/style.css" />
+</head>
+
+<body>
+       <div data-role="page" data-footer-Exist="false" id="callView" data-add-back-btn="header"></div>
+</body>
+</html>
\ No newline at end of file
diff --git a/js/app.config.js b/js/app.config.js
new file mode 100644 (file)
index 0000000..d981544
--- /dev/null
@@ -0,0 +1,31 @@
+/*jslint devel: true*/
+/*global tizen  */
+
+/**
+ * @class Config
+ */
+function Config() {
+       'use strict';
+}
+
+(function () { // strict mode wrapper
+       'use strict';
+       Config.prototype = {
+
+               properties: {
+                       'templateDir': 'templates',
+                       'templateExtension': '.tpl'
+               },
+
+               /**
+                * Returns config value
+                */
+               get: function (value, defaultValue) {
+
+                       if (this.properties.hasOwnProperty(value)) {
+                               return this.properties[value];
+                       }
+                       return defaultValue;
+               }
+       };
+}());
diff --git a/js/app.helpers.js b/js/app.helpers.js
new file mode 100644 (file)
index 0000000..f5d7494
--- /dev/null
@@ -0,0 +1,55 @@
+/*jslint devel: true */
+/*global $ */
+
+/**
+ * @class Helpers
+ */
+function Helpers() {
+       'use strict';
+}
+
+(function () { // strict mode wrapper
+       'use strict';
+       Helpers.prototype = {
+
+               /**
+                * Returns date in format YYYY/MM/DD
+                * @param dateObj
+                * @returns {String} formatted
+                */
+               getShortDate: function Helpers_getShortDate(dateObj) {
+                       console.log('getShortDate', dateObj);
+                       var dd, mm, yyyy;
+
+                       try {
+                               yyyy = dateObj.getFullYear().toString();
+                               mm = (dateObj.getMonth() + 1).toString(); // getMonth() is zero-based
+                               dd  = dateObj.getDate().toString();
+                       } catch (e) {
+                               console.error('error', e);
+                       }
+
+                       return yyyy + '/' + (mm[1] ? mm : '0' + mm[0]) + '/' + (dd[1] ? dd : '0' + dd[0]);
+               },
+
+               /**
+                * Seconds to hours converter
+                *
+                * @param seconds
+                * @returns {string}
+                */
+               secondsToHours: function Helpers_secondsToHours(seconds) {
+                       console.log('secondsToHours', seconds);
+                       var str = '';
+                       str = ((seconds % 60 < 10) ? '0' : '') + (seconds % 60);
+                       seconds = parseInt(seconds / 60, 10);
+                       str = ':' + str;
+                       str = ((seconds % 60 < 10) ? '0' : '') + (seconds % 60) + str;
+                       seconds = parseInt(seconds / 60, 10);
+                       str = ':' + str;
+                       str = ((seconds % 24 < 10) ? '0' : '') + (seconds % 24) + str;
+                       seconds = parseInt(seconds / 24, 10);
+                       return str;
+               }
+       };
+}());
diff --git a/js/app.js b/js/app.js
new file mode 100644 (file)
index 0000000..1b59cf1
--- /dev/null
+++ b/js/app.js
@@ -0,0 +1,178 @@
+/*jslint devel: true*/
+/*global Config, Model, Ui, tizen, setTimeout, navigator */
+
+var App = null;
+
+(function () { // strict mode wrapper
+       'use strict';
+
+       /**
+        * Creates a new application object
+        *
+        * @class Application
+        */
+       App = function App() {
+               this.configData = {};
+       };
+
+       App.prototype = {
+               /**
+                * @type Array
+                */
+               requires: ['js/app.config.js', 'js/app.model.js', 'js/app.ui.js', 'js/app.ui.templateManager.js', 'js/app.helpers.js'],
+
+               /**
+                * @type Model
+                */
+               model: null,
+
+               /**
+                * @type Ui
+                */
+               ui: null,
+
+               /**
+                * @type Config
+                */
+               config: null,
+
+               /**
+                * @type {number}
+                */
+               lastViewedCaller: 0,
+
+               /**
+                * Initialisation function
+                */
+               init: function App_init() {
+                       console.log('App_init');
+                       // instantiate the libs
+                       this.config = new Config();
+                       this.model = new Model();
+                       this.model.registerChangeListener(this.updateCallLists.bind(this));
+
+                       this.ui = new Ui();
+
+                       return this;
+               },
+
+               /**
+                * Updates call history and caller detailed history lists
+                */
+               updateCallLists: function App_updateCallLists() {
+                       console.log('App_updateCallLists', this);
+                       setTimeout(this.showHistoryForCaller(this.lastViewedCaller), 500);
+                       this.showCallHistory();
+               },
+
+               /**
+                * Renders call history view
+                */
+               showCallHistory: function App_showCallHistory() {
+                       console.log('App_showCallHistory');
+                       this.model.getCallHistory(this.ui.showCallHistory.bind(this.ui));
+               },
+
+               /**
+                * Renders history for caller view
+                * @param {string} phoneNumber
+                */
+               showHistoryForCaller: function App_showHistoryForCaller(phoneNumber) {
+                       console.log('App_showHistoryForCaller', phoneNumber);
+                       this.lastViewedCaller = phoneNumber;
+                       this.model.getCallHistoryForCaller(phoneNumber, this.ui.showHistoryForCaller.bind(this.ui, phoneNumber));
+               },
+
+               /**
+                * @param {number} addressBookId
+                * @param {number} contactId
+                * @returns {string} photoURI Photo URI for specified contact
+                */
+               getPhotoURIForContact: function App_getPhotoURIForContact(addressBookId, contactId) {
+                       console.log('App_getPhotoURIForContact', addressBookId, contactId);
+                       return this.model.getPhotoURIForContact(addressBookId, contactId);
+               },
+
+               /**
+                * Launch extension call service
+                * @param {string} phoneNumber
+                */
+               makeCall: function App_makeCall(phoneNumber) {
+                       console.log('App_call', phoneNumber);
+                       var appControl = new tizen.ApplicationControl(
+                                       'http://tizen.org/appcontrol/operation/dial',
+                                       'tel:' + phoneNumber
+                               );
+
+                       tizen.application.launchAppControl(
+                               appControl,
+                               null,
+                               function () {
+                                       console.log('launch app service ...');
+                               },
+                               function (e) {
+                                       console.error('App_makeCall: CALL service failure', e);
+                                       alert('Call service is unavailable');
+                               },
+                               {
+                                       onsuccess: function () {
+                                               console.log('CALL to ' + phoneNumber + ' successfull');
+                                       },
+                                       onfailure: function (er) {
+                                               console.error('Error during call to ' + phoneNumber, er);
+                                               alert('Call service is unavailable');
+                                       }
+                               }
+                       );
+               },
+
+               /**
+                * Launch extension sms service
+                * @param {string} phoneNumber
+                */
+               sendSms: function App_sendSms(phoneNumber) {
+                       console.log('App_sendSms', phoneNumber);
+
+                       var appControl = new tizen.ApplicationControl(
+                                       'http://tizen.org/appcontrol/operation/send_text',
+                                       'sms:' + phoneNumber
+                               );
+
+                       tizen.application.launchAppControl(
+                               appControl,
+                               null,
+                               function () {
+                                       console.log('launch app service ...');
+                               },
+                               function (e) {
+                                       console.error('Message launch error: ', e);
+                                       alert('Message service is unavailable');
+                               },
+                               {
+                                       onsuccess: function () {
+                                               console.log('Message service launch success');
+                                       },
+                                       onfailure: function (er) {
+                                               console.error('Message service launch error: ', er);
+                                               alert('Message service is unavailable');
+                                       }
+                               }
+                       );
+               },
+
+               /**
+                * Deletes specified log entry
+                * @param {CallHistoryEntry} entry
+                */
+               deleteLog: function App_deleteLogs(entry) {
+                       this.model.deleteLog(entry);
+               },
+
+               /**
+                * App exit
+                */
+               exit: function App_exit() {
+                       tizen.application.getCurrentApplication().exit();
+               }
+       };
+}());
diff --git a/js/app.model.js b/js/app.model.js
new file mode 100644 (file)
index 0000000..3afcc50
--- /dev/null
@@ -0,0 +1,101 @@
+/*jslint devel: true*/
+/*global tizen, $, app, localStorage */
+
+/**
+ * @class Model
+ */
+function Model() {
+       'use strict';
+
+       this.init();
+}
+
+(function () { // strict mode wrapper
+       'use strict';
+       Model.prototype = {
+
+               /**
+                * API module initialisation
+                */
+               init: function Model_init() {
+
+               },
+
+               /**
+                * Registers listener for call history change
+                * @param {onSuccessCallback} function
+                */
+               registerChangeListener: function Model_registerChangeListener(onSuccessCallback) {
+                       console.log('Model_registerChangeListener');
+
+                       var callHistoryListener = {
+                               onadded: onSuccessCallback,
+                               onchanged: onSuccessCallback
+                       };
+
+                       tizen.callhistory.addChangeListener(callHistoryListener);
+               },
+
+               /**
+                * @param {function} onSuccess callback
+                * @param {function} onError callback
+                */
+               getCallHistory: function Model_getCallHistory(onSuccess, onError) {
+                       console.log('Model_getCallHistory');
+                       if (typeof onError !== 'function') {
+                               onError = function (e) {
+                                       console.error('Model_getCallHistory error', e);
+                               };
+                       }
+
+                       tizen.callhistory.find(onSuccess, onError, null, new tizen.SortMode('startTime', 'DESC'));
+               },
+
+               /**
+                * @param {number} phoneNumber
+                * @param {function} onSuccess Callback
+                */
+               getCallHistoryForCaller: function Model_getCallHistoryForCaller(phoneNumber, onSuccess) {
+                       console.log('Model_getCallHistoryForCaller', phoneNumber);
+
+                       tizen.callhistory.find(onSuccess, undefined, // error is ignored
+                               new tizen.AttributeFilter('remoteParties.remoteParty', 'EXACTLY', phoneNumber),
+                               new tizen.SortMode('startTime', 'DESC')
+                               );
+               },
+
+               /**
+                * Deletes specified log entry
+                * @param {CallHistoryEntry} entry
+                */
+               deleteLog: function Model_deleteLog(entry) {
+                       console.log('deleteLog', entry);
+                       try {
+                               tizen.callhistory.remove(entry);
+                       } catch (e) {
+                               console.error('error', e);
+                               console.log('Error occurred on entry delete.');
+                       }
+               },
+
+               /**
+                * @param {number} addressBookId
+                * @param {number} contactId
+                * @returns {string} photoURI
+                */
+               getPhotoURIForContact: function Model_getPhotoURIForContact(addressBookId, contactId) {
+                       try {
+                               var addressBook = tizen.contact.getAddressBook(addressBookId),
+                                       contact;
+
+                               if (addressBook) {
+                                       contact = addressBook.get(contactId);
+                                       return contact.photoURI || false;
+                               }
+                       } catch (e) {
+                               console.error('updatePhotoByContactId error:', e.message);
+                       }
+               }
+
+       };
+}());
diff --git a/js/app.ui.js b/js/app.ui.js
new file mode 100644 (file)
index 0000000..011db17
--- /dev/null
@@ -0,0 +1,543 @@
+/*jslint devel: true*/
+/*global tizen, document, $, app, UiPanel, UiContact, TemplateManager, window, Helpers */
+
+/**
+ * @class Ui
+ */
+
+function Ui(contacts) {
+       'use strict';
+       this.init();
+}
+
+(function () { // strict mode wrapper
+       'use strict';
+       Ui.prototype = {
+               /**
+                * UI remove mode
+                * @type {boolean}
+                */
+               removeMode: false,
+
+               /**
+                * @type {TemplateManager}
+                */
+               templateManager: null,
+
+               /**
+                * UI Initializer
+                */
+               init: function Ui_init() {
+                       console.log('Ui_init');
+                       this.templateManager = new TemplateManager();
+                       this.helpers = new Helpers();
+                       $(document).ready(this.domInit.bind(this));
+               },
+
+               /**
+                * When DOM is ready, initialise it (bind events)
+                */
+               domInit: function Ui_domInit() {
+                       console.log('Ui_domInit');
+                       this.templateManager.loadToCache(['callView', 'callerHistory', 'callItemRow', 'callerCallItemRow', 'messageWindow', 'dateRow'], this.initPages.bind(this));
+               },
+
+               /**
+                * UI pages initializer
+                */
+               initPages: function Ui_initPages() {
+                       console.log('Ui_initPages');
+                       var pages = [];
+
+                       $('#callView').append($(this.templateManager.get('callView')).children()).trigger('pagecreate');
+
+                       pages.push(this.templateManager.get('callerHistory'));
+                       $('body').append(pages.join(''));
+                       this.removeSearchBarToHeader();
+
+                       this.addEvents();
+                       app.showCallHistory();
+               },
+
+               /**
+                * Add UI events
+                */
+               addEvents: function Ui_addEvents() {
+                       console.log('Ui_addEvents');
+                       var self = this;
+
+                       $('#callView .ui-btn-back').on('tap', app.exit.bind(app));
+
+                       $('#callView').on('pagebeforeshow', function () {
+                               app.showCallHistory();
+                       });
+
+                       $('#historyForCallerView').on('pagebeforeshow', function () {
+                               self.hideCheckboxes();
+                               $('#historyForCallerView .ui-content')
+                                       .scrollview('scrollTo', 0, 0);
+                               $('#historyForCallerView .ui-content .ui-scrollview-view')
+                                       .css('-webkit-transform', 'translate3d(0px, 0px, 0px)');
+                               $('#selectAllDetails').on('change', function () {
+                                       self.selectAllDetails();
+                               });
+                       });
+
+                       $('#historyForCallerView').on('pageshow', function () {
+                               console.log('(event) #historyForCallerView:pageshow');
+                               $('#content').css('top', '160px');
+                               $('#header').css('height', '160px');
+                               $('#delete-toolbar').css('width', '70px');
+                       });
+
+                       $(window).on('resize', function () {
+                               $('#delete-toolbar').css('width', '70px');
+                       });
+
+                       $('.selectAllBox').on('tap', function () {
+                               self.selectAll();
+                               self.selectAllDetailsEach();
+                       });
+
+                       $('#calllogList').on('tap', '.date', function (event) {
+                               event.stopPropagation();
+                       });
+
+                       $('#calllogList').on('click', '.call', function onCalllogEntryClick(event) {
+                               console.log('onclick', $(this).data('entries'));
+                               app.showHistoryForCaller($(this).data('entries')[0].remoteParties[0].remoteParty);
+                               $.mobile.changePage('#historyForCallerView');
+                       });
+
+                       $('#smsActionBtn').on('tap', function () {
+                               self.hideCheckboxes();
+                               app.sendSms($('#forCallerList').data('remoteParty'));
+                       });
+
+                       $('#callActionBtn').on('tap', function () {
+                               self.hideCheckboxes();
+                               app.makeCall($('#forCallerList').data('remoteParty'));
+                       });
+
+                       $('#deleteActionBtn').on('tap', function () {
+                               self.changeDetailsToRemoveState();
+                       });
+
+                       $('#forCallerList').on('tap', 'li', function () {
+                               console.log('handle click', this.removeMode);
+                               var checkbox = $(this).find(':checkbox');
+                               if (self.removeMode === true) {
+                                       if (checkbox.attr('checked')) {
+                                               checkbox.attr('checked', false)
+                                                       .data('checkboxradio')
+                                                       .refresh();
+                                       } else {
+                                               checkbox.attr('checked', true)
+                                                       .data('checkboxradio')
+                                                       .refresh();
+                                       }
+                                       self.setSelectAllDetails();
+                               }
+                       });
+               },
+
+               addEventsForCallerListCheckboxes: function Ui_addEventsForCallerListCheckboxes() {
+                       console.log('Ui_addEventsForCallerListCheckboxes');
+                       var self = this;
+                       $('#forCallerList :checkbox').on('change', function (event) {
+                               if ($(this).attr('checked')) {
+                                       $(this).attr('checked', true);
+                               } else {
+                                       $(this).attr('checked', false);
+                               }
+                               console.log('#forCallerList :checkbox', 'onchange');
+                               self.setSelectAllDetails();
+                       });
+               },
+
+               selectAll: function Ui_selectAll() {
+                       console.log('Ui_selectAll');
+                       if ($('#selectAllDetails').attr('checked')) {
+                               $('#selectAllDetails')
+                                       .attr('checked', false)
+                                       .data('checkboxradio')
+                                       .refresh();
+                       } else {
+                               $('#selectAllDetails')
+                                       .attr('checked', true)
+                                       .data('checkboxradio')
+                                       .refresh();
+                       }
+               },
+
+               selectAllDetails: function Ui_selectAllDetails() {
+                       console.log('Ui_selectAllDetails');
+                       if ($('#selectAllDetails').attr('checked')) {
+                               $('#selectAllDetails').attr('checked', true);
+                       } else {
+                               $('#selectAllDetails').attr('checked', false);
+                       }
+                       this.selectAllDetailsEach();
+               },
+
+               /**
+                * Returns number of selected call logs
+                * @return {number} length
+                */
+               getCountSelectedLogEntries: function Ui_getCountSelectedLogEntries() {
+                       console.log('Ui_getCountSelectedLogEntries');
+                       return $('#forCallerList li .toRemove label.ui-checkbox-on').length;
+               },
+
+               selectAllDetailsEach: function Ui_selectAllDetailsEach() {
+                       $('#forCallerList').find('input').each(function () {
+                               if ($('#selectAllDetails').attr('checked')) {
+                                       $(this).attr('checked', true)
+                                               .data('checkboxradio')
+                                               .refresh();
+                               } else {
+                                       $(this).attr('checked', false)
+                                               .data('checkboxradio')
+                                               .refresh();
+                               }
+                       });
+               },
+
+               /**
+                * Hides checkboxes
+                */
+               hideCheckboxes: function Ui_hideCheckboxes() {
+                       console.log('Ui_hideCheckboxes');
+                       $('#selectAllDetails')
+                               .attr('checked', false)
+                               .data('checkboxradio')
+                               .refresh();
+
+                       $('#forCallerList').find('input').each(function () {
+                               $(this).attr('checked', false)
+                                       .data('checkboxradio')
+                                       .refresh();
+                       });
+                       this.changeDetailsToRemoveState('hide');
+               },
+
+               /**
+                * Returns css classes for specified entry
+                *
+                * @param {CallHistoryEntry} entry
+                * @returns {string}
+                */
+               cssClassesForEntry: function Ui_cssClassesForEntry(entry) {
+                       console.log('Ui_cssClassesForEntry', entry);
+                       return 'call dir_' + entry.direction.toLowerCase() + ' type_' + entry.type.replace('.', '-').toLowerCase();
+               },
+
+               setSelectAllDetails: function Ui_setSelectAllDetails() {
+                       console.log('Ui_setSelectAllDetails');
+                       if ($('#forCallerList input[type="checkbox"]').length === $('#forCallerList input[checked="checked"]').length) {
+                               $('#selectAllDetails')
+                                       .attr('checked', true)
+                                       .data('checkboxradio')
+                                       .refresh();
+                       } else {
+                               $('#selectAllDetails')
+                                       .attr('checked', false)
+                                       .data('checkboxradio')
+                                       .refresh();
+                       }
+               },
+
+               /**
+                * Shows popup with specified message
+                * @param {string} message
+                */
+               showPopup: function Ui_showPopup(message) {
+                       console.log('Ui_showPopup', message);
+                       $('body')
+                               .append(this.templateManager.get('messageWindow'))
+                               .trigger('create');
+                       $('#popupMessage').html(message);
+
+                       $('#popup')
+                               .on('tap', '#popupCancelActionBtn', this.closePopup.bind(this))
+                               .on('tap', '#popupSubmitActionBtn', this.deleteCheckedLogs.bind(this));
+
+                       $('#popup').popupwindow('open');
+               },
+
+               /**
+                * Hides popup
+                */
+               closePopup: function Ui_closePopup() {
+                       console.log('Ui_closePopup');
+                       $('#popup')
+                               .popupwindow('close')
+                               .remove();
+               },
+
+               /**
+                * Deletes checked log entries
+                */
+               deleteCheckedLogs: function Ui_deleteCheckedLogs() {
+                       console.log('Ui_deleteCheckedLogs');
+
+                       this.closePopup();
+
+                       $('#selectAllDetails')
+                               .attr('checked', false)
+                               .data('checkboxradio')
+                               .refresh();
+
+                       $('#forCallerList li.call').each(function () {
+                               if ($(this).find('form label').hasClass('ui-checkbox-on')) {
+                                       app.deleteLog($(this).data('entries')[0]);
+                                       $(this).remove();
+                               }
+                       });
+
+                       if ($('#forCallerList li.call').length > 0) {
+                               $('.number').html('(' + $('#forCallerList li').length + ')');
+                       } else {
+                               $.mobile.changePage('#callView');
+                       }
+               },
+
+               changeDetailsToRemoveState: function changeDetailsToRemoveState(set) {
+                       console.log('changeDetailsToRemoveState', set);
+                       var counter = this.getCountSelectedLogEntries();
+
+                       if (set !== undefined) {
+                               this.removeMode = false;
+                       } else if (counter === 0) {
+                               this.removeMode = !this.removeMode;
+                       }
+
+                       if (counter === 0) {
+                               if (this.removeMode) {
+                                       $('#historyForCallerView .toRemove').removeClass('hidden');
+                                       $('#historyForCallerView .selectAllBox').removeClass('hidden');
+                               } else {
+                                       $('#historyForCallerView .toRemove').addClass('hidden');
+                                       $('#historyForCallerView .selectAllBox').addClass('hidden');
+                               }
+                       } else if (counter > 1) {
+                               this.showPopup('Are you sure you want to delete selected logs?');
+                       } else {
+                               this.showPopup('Are you sure you want to delete selected log?');
+                       }
+                       this.refreshScrollView();
+               },
+
+               /**
+                * Renders call history list
+                *
+                * @param {CallHistoryEntry[]} callEntries
+                */
+               showCallHistory: function Ui_showCallHistory(callEntries) {
+                       console.log('Ui_showCallHistory', callEntries);
+                       var counter = 0, //
+                               pdate = '', // previous date
+                               date = '',
+                               elements = [], // list elements
+                               len = callEntries.length, // entries length
+                               i, // loop counter
+                               current, // current entry object
+                               next, // next entry object
+                               today = this.helpers.getShortDate(new Date()), // today short date
+                               entryShortDate;
+
+                       $('.selectedCount').hide();
+
+                       for (i = 0; i < len; i = i + 1) {
+                               counter += 1;
+                               current = callEntries[i];
+                               date = current.startTime.toLocaleDateString();
+                               entryShortDate = this.helpers.getShortDate(callEntries[i].startTime);
+                               next = callEntries[i + 1];
+
+                               // if date is changed render new header
+                               if (date !== pdate) {
+                                       elements.push($(this.templateManager.get('dateRow', {
+                                               'date': today === entryShortDate ? 'Today' : date
+                                       })).get(0));
+                               }
+
+                               if (date !== pdate || next === undefined
+                                               || current.remoteParties[0].remoteParty !== next.remoteParties[0].remoteParty) {
+                                       elements.push(this.getCallItemRow(current, counter));
+                                       counter = 0; // reset counter after render
+                               }
+
+                               if (date !== pdate) {
+                                       pdate = date;
+                               }
+                       }
+
+                       $('#calllogList')
+                               .empty()
+                               .append(elements);
+               },
+
+               /**
+                * Returns HTML for single log entry
+                *
+                * @param {CallHistoryEntry} entry
+                * @param {number} counter
+                * @returns {HTMLPartial}
+                */
+               getCallItemRow: function Ui_getCallItemRow(entry, counter) {
+                       console.log('Ui_getCallItemRow', entry, counter);
+                       var party = entry.remoteParties[0],
+                               name = party.displayName || party.remoteParty,
+                               tpl;
+
+                       if (counter > 1) {
+                               name += ' (' + counter + ')';
+                       }
+
+                       tpl = this.templateManager.get('callItemRow', {
+                               'name': name,
+                               'callTime': entry.startTime.toLocaleTimeString(),
+                               'cssClasses': this.cssClassesForEntry(entry)
+                       });
+
+                       return $(tpl)
+                               .data('remoteParty', entry.remoteParties[0].remoteParty)
+                               .data('entries', [entry])
+                               .get(0); // return clean DOM element so array of those could be appended at once*/
+               },
+
+               /**
+                * Returns HTML for single caller log entry
+                *
+                * @param {CallHistoryEntry} entry
+                * @returns
+                */
+               getCallerCallLogRow: function Ui_getCallerCallLogRow(entry) {
+                       console.log('Ui_getCallerCallLogRow', entry);
+
+                       return $(this.templateManager.get('callerCallItemRow', {
+                               'cssClass': this.cssClassesForEntry(entry),
+                               'callTime': entry.startTime.toLocaleTimeString(),
+                               'callDuration': this.helpers.secondsToHours(entry.duration)
+                       })).data('entries', [entry]).get(0);
+               },
+
+               /**
+                * Renders call log list for specified caller
+                *
+                * @param {string} remoteParty
+                * @param {CallHistoryEntry[]} entries
+                */
+               showHistoryForCaller: function Ui_showHistoryForCaller(remoteParty, entries) {
+                       console.log('Ui_showHistoryForCaller', entries);
+                       var pdate = '',
+                               date = '',
+                               elements = [],
+                               len = entries.length,
+                               i;
+
+                       if (len) {
+                               this.updateCallerHeader(entries[0], entries.length);
+                       }
+
+                       $('#forCallerList')
+                               .data('remoteParty', remoteParty)
+                               .data('modified', false)
+                               .empty();
+
+                       // group caller log entries by date
+                       for (i = 0; i < len; i = i + 1) {
+                               date = entries[i].startTime.toLocaleDateString();
+
+                               // if date is changed render new header
+                               if (date !== pdate) {
+                                       elements.push($(this.templateManager.get('dateRow', {'date': date})).get(0));
+                                       pdate = date;
+                               }
+                               elements.push(this.getCallerCallLogRow(entries[i]));
+                       }
+
+                       $('#forCallerList')
+                               .empty()
+                               .append(elements);
+
+                       if (elements.length > 0) {
+                               $('li#delete > a').addClass('ui-btn-active');
+                       } else {
+                               $('li#delete > a').removeClass('ui-btn-active');
+                       }
+
+                       $('#forCallerList').trigger('create');
+
+                       this.addEventsForCallerListCheckboxes();
+               },
+
+               /**
+                * Updates caller main info
+                * @param {CallHistoryEntry} entry
+                * @param {number} numberOfEntries
+                */
+               updateCallerHeader: function Ui_updateCallerHeader(entry, numberOfEntries) {
+                       console.log('Ui_updateCallerHeader', entry, numberOfEntries);
+                       var name = '',
+                               num = '',
+                               photoURIdefault = '../images/no_photo.png',
+                               party,
+                               imgPath;
+
+                       $('.contact > .infoContainer > .photo').css('background-image', photoURIdefault);
+
+                       if (entry.remoteParties !== null) {
+                               party = entry.remoteParties[0];
+                               name = party.displayName || party.remoteParty;
+                               if (party.displayName) {
+                                       num = party.remoteParty + ' (' + numberOfEntries + ')';
+                               } else {
+                                       num = ' (' + numberOfEntries + ')';
+                               }
+
+                               if (party.contactRef) {
+                                       imgPath = app.getPhotoURIForContact(party.contactRef.addressBookId, party.contactRef.contactId);
+                                       if (imgPath !== false) {
+                                               $('.contact > .infoContainer > .photo').css('background-image', imgPath);
+                                       }
+                               }
+                       } else if (entry.contactId !== null) {
+                               name = entry.accountId;
+                               num = entry.accountId + ' (' + numberOfEntries + ')';
+                       } else {
+                               name = entry.accountId;
+                               num = ' (' + numberOfEntries + ')';
+                       }
+                       $('.contact > .infoContainer > .name').html(name);
+                       $('.contact > .infoContainer > .number').html(num);
+               },
+
+               /**
+                * Remove search filter from content and appends it to header
+                */
+               removeSearchBarToHeader: function () {
+                       $('#page-content').css('top', '102px');
+                       $('#page-header')
+                               .css('height', '102px')
+                               .append($('#callView .ui-listview-filter'));
+                       $.mobile.activePage.page('refresh');
+                       $('.ui-input-cancel').remove(); // patch for WebUI bug;
+               },
+
+               /**
+                * WORKAROUND;
+                * Patch for UI, bad refresh scrollView
+                */
+               refreshScrollView: function () {
+                       var scrollView = $('.ui-scrollview-view'),
+                               show = function () {
+                                       scrollView.show();
+                               };
+                       scrollView.hide();
+                       setTimeout(show, 0);
+               }
+       };
+
+}());
diff --git a/js/app.ui.templateManager.js b/js/app.ui.templateManager.js
new file mode 100644 (file)
index 0000000..62892cb
--- /dev/null
@@ -0,0 +1,108 @@
+/*jslint devel: true*/
+/*jslint forin: true*/ /* temporary - from Tizen SDK */
+/*global tizen, $, app */
+/**
+ * @class TemplateManager
+ */
+function TemplateManager() {
+       'use strict';
+       this.init();
+}
+
+(function () { // strict mode wrapper
+       'use strict';
+       TemplateManager.prototype = {
+
+               /**
+                * Template cache
+                */
+               cache: {},
+
+               /**
+                * UI module initialisation
+                */
+               init: function init() {
+
+               },
+
+               /**
+                * Returns template html (from cache)
+                */
+               get: function TemplateManager_get(tplName, tplParams) {
+                       console.log('TemplateManager_get:' + tplName);
+                       if (this.cache[tplName] !== undefined) {
+                               return this.getCompleted(this.cache[tplName], tplParams);
+                       }
+                       return '';
+               },
+
+               /**
+                * Load templates to cache
+                */
+               loadToCache: function TemplateManager_loadToCache(tplNames, onSuccess) {
+                       var self = this,
+                               cachedTemplates = 0,
+                               tplName,
+                               tplPath;
+
+                       if ($.isArray(tplNames)) {
+
+                               // for each template
+                               $.each(tplNames, function (index, fileName) {
+
+                                       // cache template html
+                                       if (self.cache[fileName] === undefined) {
+                                               tplName = [fileName, app.config.get('templateExtension')].join('');
+                                               tplPath = [app.config.get('templateDir'), tplName].join('/');
+
+                                               $.ajax({
+                                                       url: tplPath,
+                                                       cache: true,
+                                                       dataType: 'html',
+                                                       async: true,
+                                                       success: function (data) {
+                                                               // increase counter
+                                                               cachedTemplates += 1;
+
+                                                               // save to cache
+                                                               self.cache[fileName] = data;
+                                                               console.log('Cached template: ' + fileName);
+
+                                                               // if all templates are cached launch callback
+                                                               if (cachedTemplates >= tplNames.length && typeof onSuccess === 'function') {
+                                                                       onSuccess();
+                                                               }
+                                                       },
+                                                       error: function (jqXHR, textStatus, errorThrown) {
+                                                               alert('templateManagerError: ' + errorThrown);
+                                                       }
+                                               });
+                                       } else {
+                                               // template is already cached
+                                               cachedTemplates += 1;
+                                               // if all templates are cached launch callback
+                                               if (cachedTemplates >= tplNames.length && typeof onSuccess === 'function') {
+                                                       onSuccess();
+                                               }
+                                       }
+                               });
+
+                       }
+               },
+
+               /**
+                * Returns template completed by specified params
+                */
+               getCompleted: function TemplateManager_getCompleted(tplHtml, tplParams) {
+                       var tplParam, replaceRegExp;
+
+                       for (tplParam in tplParams) {
+                               replaceRegExp = new RegExp(['%', tplParam, '%'].join(''), 'g');
+                               tplHtml = tplHtml.replace(replaceRegExp, tplParams[tplParam]);
+                       }
+
+                       return tplHtml;
+               }
+       };
+
+}());
\ No newline at end of file
diff --git a/js/main.js b/js/main.js
new file mode 100644 (file)
index 0000000..e3440f4
--- /dev/null
@@ -0,0 +1,80 @@
+/*
+ *      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.
+ */
+
+/*jslint devel: true */
+/*global $, tizen, App  */
+
+/**
+ * This file acts as a loader for the application and its dependencies
+ *
+ * First, the 'app.js' script is loaded .
+ * Then, scripts defined in 'app.requires' are loaded.
+ * Finally, the app is initialised - the app is instantiated ('app = new App()')
+ * and 'app.init()' is called.
+ */
+
+
+var app = null;
+
+(function () { // strict mode wrapper
+       'use strict';
+
+       ({
+               /**
+                * Loader init - load the App constructor
+                */
+               init: function init() {
+                       var self = this;
+                       $.getScript('js/app.js')
+                               .done(function () {
+                                       console.log('Loaded app.js');
+                                       // once the app is loaded, create the app object
+                                       // and load the libraries
+                                       app = new App();
+                                       self.loadLibs();
+                               })
+                               .fail(this.onGetScriptError);
+               },
+
+               /**
+                * Load dependencies
+                */
+               loadLibs: function loadLibs() {
+                       var loadedLibs = 0;
+                       if ($.isArray(app.requires)) {
+                               $.each(app.requires, function (index, filename) {
+                                       $.getScript(filename)
+                                               .done(function () {
+                                                       loadedLibs += 1;
+                                                       console.log('Loaded subscript: ' + filename + ' : ' + loadedLibs);
+                                                       if (loadedLibs >= app.requires.length) {
+                                                               // All dependencies are loaded - initialise the app
+                                                               app.init();
+                                                       }
+                                               })
+                                               .fail(this.onGetScriptError);
+                               });
+                       }
+               },
+
+               /**
+                * Handle ajax errors
+                */
+               onGetScriptError: function onGetScriptError(e, jqxhr, setting, exception) {
+                       alert('An error occurred: ' + e.message);
+               }
+       }).init(); // run the loader
+}());
\ No newline at end of file
diff --git a/signature1.xml b/signature1.xml
new file mode 100644 (file)
index 0000000..33e746f
--- /dev/null
@@ -0,0 +1,196 @@
+<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="DistributorSignature">
+<SignedInfo>
+<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
+<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
+<Reference URI="templates/callItemRow.tpl">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>4sxCwRJLileR/FWCD8cpqBMQMskSBl0jWHVgERwV/uk=</DigestValue>
+</Reference>
+<Reference URI="templates/callView.tpl">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>zAh+lshQHpkcSKDtupbVE5ph9s6YS2EwJZM5iARb9b0=</DigestValue>
+</Reference>
+<Reference URI="templates/messageWindow.tpl">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>qjpQCV04PM/E2Ux9B9yg+e01/WMIrvzbSjSV8n2E2n8=</DigestValue>
+</Reference>
+<Reference URI="templates/callerCallItemRow.tpl">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>QOmskNN08pvlFgiaVKgKY/piq6QkZrlk7T91+KhqCuA=</DigestValue>
+</Reference>
+<Reference URI="templates/callerHistory.tpl">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>jrY3MtLfRuWWLrbvw9wZIBjm23ugG4OnLwwiY9t1DAk=</DigestValue>
+</Reference>
+<Reference URI="templates/dateRow.tpl">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>/Dl9pD0XveYoXERZZB5zNk1bxigvqzS8unKTcrO7sQs=</DigestValue>
+</Reference>
+<Reference URI="AUTHORS">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>P+o5R7dM42USyEsXC/oKONcRkqdggWrHgFiTdiZtqdk=</DigestValue>
+</Reference>
+<Reference URI="images/address_plus_btn.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>bnuIxB6oDpdndSqeHCvTxfVGc2eR0EY1DP6N2mJDbco=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_received_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>iOoKv4ErjtU+0R9T8SiAL4NSEykaGJNeEKeBudfbD+M=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_call_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>81lV8Oez3j3l6hxj92EiASTxuy1UF6gmoj0Oil5S6OU=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_sms_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>jIuKTyBnNwGkaJTT52wctwmBeXGg0m0Dv4XVl42hS9I=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_mms_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>UxOHSiYuvHtx46hsPYFX6DsPhFs5QOv659m2+uGWf2U=</DigestValue>
+</Reference>
+<Reference URI="images/exit.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>/7sie9pvGi2wl5CraPnzfcVu4mOuOTeCR8YdxK5Y25w=</DigestValue>
+</Reference>
+<Reference URI="images/trash.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>uBX82SVXiezz5mEInzis/mt17+WVcVCM6ilHz0/YlV0=</DigestValue>
+</Reference>
+<Reference URI="images/checkboxChecked.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>YdnzStTho+LV5YvBvsZtf4Xm9GcornMYu1azgPXyQCA=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_block_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>IfLZ4tpj3FgKl6dcaLPMvvPRYsuClEleFFwAg6CIZjU=</DigestValue>
+</Reference>
+<Reference URI="images/no_photo.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>66GD2h7OrzSUM/5yClF0fIoEKUD4WS71QUrxw6uXOvU=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_rejected_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>skPgoCWaGTdvyZLCxeqpx3iOxs9H8bx8143Rg4DHI2s=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_missed_unchecked_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>u8Wj1LjdpqYdMjhKzFP5eITopA7+EmULjzf3lsRDcHk=</DigestValue>
+</Reference>
+<Reference URI="images/address_minus_btn.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>nhJbLLGnUsuliJJWI4BJkl9ycJBGexZ6JHwOu+G59Xg=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_missed_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>kFTDAqiU47mvboCGg7ujMElH+Xf0uRsctTu3ozC9Sao=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_vtcall_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>28+JIc60cZ6MdF3dT1CH5y7QUi5K9aoMCtwdYY71Bs4=</DigestValue>
+</Reference>
+<Reference URI="images/logs_list_dialled_icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>02/A6q6anjAnlv8+mKDhOZj2zkKjV45IjoCQ5OARt60=</DigestValue>
+</Reference>
+<Reference URI="LICENSE.Flora">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>fskt8W7B8EMb3DQsvwT98x4fPKKIjY9sS5E0eSGenFA=</DigestValue>
+</Reference>
+<Reference URI="js/app.ui.templateManager.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>1wi+FYCd2XtxgtfDgKXqMrJ/TNEjiWZaN19Hmi9Ad8k=</DigestValue>
+</Reference>
+<Reference URI="js/app.ui.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>u0yo0HRLp8FaYm0N4LU6TvByAT/yfrx3HU03KgZ+p20=</DigestValue>
+</Reference>
+<Reference URI="js/app.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>0TFqKbHeIqh0CHUAqosklwAx+QfWXwvxWpoSd/gdrUo=</DigestValue>
+</Reference>
+<Reference URI="js/main.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>Z9FQh/1ZsneoCws9gBJVOaySYoBYkSAqi24KyH6jp+o=</DigestValue>
+</Reference>
+<Reference URI="js/app.model.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>63yCNuxtuS4jhue54daCfmLky8ZfQSrn51tKuONfhys=</DigestValue>
+</Reference>
+<Reference URI="js/app.helpers.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>Oe5RarrmNZ93kH0d7N80aq3gUvHjKydoqYneoo08pN4=</DigestValue>
+</Reference>
+<Reference URI="js/app.config.js">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>pZo4kGFmUCAFslvEb4ja2ZdUzhpyQgjyETJhKTpB3Vo=</DigestValue>
+</Reference>
+<Reference URI="config.xml">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>8tekKmLgvmwWvRY6IAiZ6LjvPONg40+tHrNEYgvrsEI=</DigestValue>
+</Reference>
+<Reference URI="icon.png">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>Nz+SecsjmNuidhKNvmQ5+3nasrw8vI4q/bjPgbfx5fI=</DigestValue>
+</Reference>
+<Reference URI="index.html">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>+ubnTnacbhBe4IImLMcYOSf8EvLo1Ic2+Ef4ubWSI/U=</DigestValue>
+</Reference>
+<Reference URI="css/style.css">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>P0lJVcH4Yt/OEUIU5MSpNzxEhZ0iX4DHnNoN2PzMI18=</DigestValue>
+</Reference>
+<Reference URI="NOTICE.Flora">
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>M7oEsiEdLNeaSAYdtR7uR5WGeAELG/V70u7Huzl42Xs=</DigestValue>
+</Reference>
+<Reference URI="#prop">
+<Transforms>
+<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
+</Transforms>
+<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
+<DigestValue>u/jU3U4Zm5ihTMSjKGlGYbWzDfRkGphPPHx3gJIYEJ4=</DigestValue>
+</Reference>
+</SignedInfo>
+<SignatureValue>
+d7fqK6/nufdPwwlZiSt1xVz/gd5U7fT/JH9+ZhGgR7JsIzizYN/fHWQgN6RRqM8Qs4hc7vWUNYS5
+AEYgGgphpROkmaMNVhBxfuXHNqi0AbDC8MmIjTMlQusVWGWZ5eNVhipSSgx66bnBcxEztpGdlIRc
+RgwSomoSsVle7Cyw63c=
+</SignatureValue>
+<KeyInfo>
+<X509Data>
+<X509Certificate>
+MIICmzCCAgQCCQDXI7WLdVZwiTANBgkqhkiG9w0BAQUFADCBjzELMAkGA1UEBhMCS1IxDjAMBgNV
+BAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4gVGVzdCBDQTEiMCAGA1UE
+CwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwbVGl6ZW4gUHVibGljIERpc3Ry
+aWJ1dG9yIENBMB4XDTEyMTAyOTEzMDMwNFoXDTIyMTAyNzEzMDMwNFowgZMxCzAJBgNVBAYTAktS
+MQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVuIFRlc3QgQ0Ex
+IjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9yIFRlc3QgQ0ExKDAmBgNVBAMMH1RpemVuIFB1Ymxp
+YyBEaXN0cmlidXRvciBTaWduZXIwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALtMvlc5hENK
+90ZdA+y66+Sy0enD1gpZDBh5T9RP0oRsptJv5jjNTseQbQi0SZOdOXb6J7iQdlBCtR343RpIEz8H
+mrBy7mSY7mgwoU4EPpp4CTSUeAuKcmvrNOngTp5Hv7Ngf02TTHOLK3hZLpGayaDviyNZB5PdqQdB
+hokKjzAzAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAvGp1gxxAIlFfhJH1efjb9BJK/rtRkbYn9+Ez
+GEbEULg1svsgnyWisFimI3uFvgI/swzr1eKVY3Sc8MQ3+Fdy3EkbDZ2+WAubhcEkorTWjzWz2fL1
+vKaYjeIsuEX6TVRUugHWudPzcEuQRLQf8ibZWjbQdBmpeQYBMg5x+xKLCJc=
+</X509Certificate>
+<X509Certificate>
+MIICtDCCAh2gAwIBAgIJAMDbehElPNKvMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYDVQQGEwJLUjEO
+MAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQKDA1UaXplbiBUZXN0IENBMSMw
+IQYDVQQLDBpUVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEpMCcGA1UEAwwgVGl6ZW4gUHVibGlj
+IERpc3RyaWJ1dG9yIFJvb3QgQ0EwHhcNMTIxMDI5MTMwMjUwWhcNMjIxMDI3MTMwMjUwWjCBjzEL
+MAkGA1UEBhMCS1IxDjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6
+ZW4gVGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwb
+VGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDe
+OTS/3nXvkDEmsFCJIvRlQ3RKDcxdWJJp625pFqHdmoJBdV+x6jl1raGK2Y1sp2Gdvpjc/z92yzAp
+bE/UVLPh/tRNZPeGhzU4ejDDm7kzdr2f7Ia0U98K+OoY12ucwg7TYNItj9is7Cj4blGfuMDzd2ah
+2AgnCGlwNwV/pv+uVQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBACqJ
+KO33YdoGudwanZIxMdXuxnnD9R6u72ltKk1S4zPfMJJv482CRGCI4FK6djhlsI4i0Lt1SVIJEed+
+yc3qckGm19dW+4xdlkekon7pViEBWuyHw8OWv3RXtTum1+PGHjBJ2eYY4ZKIpz73U/1NC16sTB/0
+VhfnkHwPltmrpYVe
+</X509Certificate>
+</X509Data>
+</KeyInfo>
+<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#DistributorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#DistributorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-distributor"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#DistributorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
+</Signature>
\ No newline at end of file
diff --git a/templates/callItemRow.tpl b/templates/callItemRow.tpl
new file mode 100644 (file)
index 0000000..99406c2
--- /dev/null
@@ -0,0 +1,6 @@
+<li class="%cssClasses%">
+       <div class="toRemove hidden"><input type="checkbox" /></div>
+       <div class="numberOrName">%name%</div>
+       <div class="iconStatus"></div>
+       <div class="callTime">%callTime%</div>
+</li>
\ No newline at end of file
diff --git a/templates/callView.tpl b/templates/callView.tpl
new file mode 100644 (file)
index 0000000..e0aaec5
--- /dev/null
@@ -0,0 +1,11 @@
+       <div data-role="page" id="callView" data-add-back-btn="header">
+               <div data-role="header" id="page-header" data-position="fixed">
+                       <h1>CallLog</h1>
+               </div>
+               <div data-role="content">
+                       <div id="page-content">
+                               <ul data-role="listview" id="calllogList" data-filter="true" data-position="fixed"></ul>
+                       </div>
+               </div>
+               <div data-role="footer" data-position="fixed"></div>
+       </div>
\ No newline at end of file
diff --git a/templates/callerCallItemRow.tpl b/templates/callerCallItemRow.tpl
new file mode 100644 (file)
index 0000000..6e3dc59
--- /dev/null
@@ -0,0 +1,6 @@
+<li class="ui-li-has-multiline call %cssClass%">
+       <div class="toRemove hidden"><form><input type="checkbox" /></form></div>
+       <div class="callAllTime">%callTime%</div>
+       <div class="iconStatus"></div>
+       <div class="callDuration">%callDuration%</div>
+</li>
\ No newline at end of file
diff --git a/templates/callerHistory.tpl b/templates/callerHistory.tpl
new file mode 100644 (file)
index 0000000..bf6cc6c
--- /dev/null
@@ -0,0 +1,32 @@
+       <div data-role="page" id="historyForCallerView"  data-add-back-btn="header">
+               <div data-role="header" data-position="fixed" id="header">
+                       <h1>History For Caller</h1>
+                       <div class="contact">
+                               <div class="infoContainer">
+                                       <div class="photo"></div>
+                                       <div class="name"></div>
+                                       <div class="number"></div>
+                               </div>
+                       </div>
+               </div>
+               <div data-role="content">
+                       <div class="selectAllBox">
+                               <div class="toRemove">
+                                       <input type="checkbox" id="selectAllDetails"/>
+                               </div>
+                               <p id="selectAllText">Select all</p>
+                       </div>
+                       <div id="content">
+                               <ul data-role="listview" id="forCallerList"></ul>
+                       </div>
+               </div>
+               <div data-role="footer" data-position="fixed">
+                       <div data-role="tabbar" data-style="toolbar" id="delete-toolbar">
+                               <ul>
+                                       <li id="delete">
+                                               <a id="deleteActionBtn" data-icon="ctrlbar-delete">delete</a>
+                                       </li>
+                               </ul>
+                       </div>
+               </div>
+       </div>
\ No newline at end of file
diff --git a/templates/dateRow.tpl b/templates/dateRow.tpl
new file mode 100644 (file)
index 0000000..9e6caa9
--- /dev/null
@@ -0,0 +1 @@
+<li class="date">%date%</li>
\ No newline at end of file
diff --git a/templates/messageWindow.tpl b/templates/messageWindow.tpl
new file mode 100644 (file)
index 0000000..fe719ef
--- /dev/null
@@ -0,0 +1,7 @@
+<div id="popup" data-role="popupwindow" data-style="center_basic_1btn">
+       <p data-role="text" id="popupMessage"></p>
+       <div data-role="button-bg">
+               <a href="#" data-role="button" data-inline="true" id="popupSubmitActionBtn">Yes</a>
+               <a href="#" data-role="button" data-inline="true" id="popupCancelActionBtn">No</a>
+       </div>
+</div>
\ No newline at end of file