[Code Cleanup] Removed MP_CREATE_FAKE_IMAGE and unused files 33/101533/3
authorbhutani.92 <bhutani.92@samsung.com>
Thu, 1 Dec 2016 10:40:48 +0000 (16:10 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Thu, 1 Dec 2016 10:52:03 +0000 (16:22 +0530)
Change-Id: I2fc9f5c4c833001e2df2f1b0b5b9936ea877aff7
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
18 files changed:
.cproject
src/common/include/mp-albumart.h [deleted file]
src/common/include/mp-recommend.h [deleted file]
src/common/mp-common.c
src/core/include/mp-context.h [deleted file]
src/core/include/mp-music-view-mgr.h [deleted file]
src/core/include/mp-wifidirect-mgr.h [deleted file]
src/core/mp-player-control.c
src/view/include/mp-album-booklet-view.h [deleted file]
src/view/include/mp-artist-booklet-view.h [deleted file]
src/view/include/mp-main-view.h [deleted file]
src/view/include/mp-make-offline-view.h [deleted file]
src/view/mp-album-booklet-view.c [deleted file]
src/view/mp-all-view.c
src/view/mp-artist-booklet-view.c [deleted file]
src/view/mp-main-view.c [deleted file]
src/view/mp-view.c
src/widget/mp-all-list.c

index ca3f923..6b1208c 100644 (file)
--- a/.cproject
+++ b/.cproject
                                                                <option id="gnu.cpp.compiler.option.optimization.level.115468609" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
                                                                <option defaultValue="gnu.cpp.compiler.debugging.level.max" id="sbi.gnu.cpp.compiler.option.debugging.level.core.1128700032" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core" valueType="enumerated"/>
                                                                <option id="sbi.gnu.cpp.compiler.option.743568072" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
-                                                                       <listOptionValue builtIn="false" value="mobile-3.0-device.core_llvm36.armel.core.app"/>
+                                                                       <listOptionValue builtIn="false" value="mobile-3.0-emulator.core.private_llvm37.i386.core.app"/>
                                                                </option>
                                                                <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.1943136503" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/EGL&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES3&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/KHR&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore-agent&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appfw&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/attach-panel&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/aul/&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/auth-fw&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/badge&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/base&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/cairo&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/calendar-service2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/call-manager&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/cbhm&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/chromium-ewk&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ckm&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/contacts-svc&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/content&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/context-service&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/csr&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/dali&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/dali-toolkit&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/dbus-1.0&quot;"/>
@@ -75,6 +87,7 @@
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/eio-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/eldbus-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/elementary-1&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/email-service&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/embryo-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/emile-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/eo-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/metadata-editor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/minicontrol&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/minizip&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/msg-service&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/network&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/notification&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/nsd/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/phonenumber-utils&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/rua/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/sensor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/service-adaptor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/shortcut&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/storage&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/system&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/telephony&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/telephony-client&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/tzsh&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ug-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ui&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ui-viewmgr&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/vconf&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/vulkan&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/web&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/widget_service&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/widget_viewer_dali&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/widget_viewer_evas&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/wifi-direct&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/yaca&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/dbus-1.0/include&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/glib-2.0/include&quot;"/>
                                                                </option>
                                                                        <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
                                                                        <listOptionValue builtIn="false" value=" -fPIE"/>
                                                                        <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="-mthumb"/>
                                                                </option>
                                                                <option id="gnu.cpp.compiler.option.include.paths.728547428" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="/home/bhutani.92/Tizen/tizen-sdk/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/libxml2"/>
                                                                <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.1826572207" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
                                                                <option defaultValue="gnu.c.debugging.level.max" id="sbi.gnu.c.compiler.option.debugging.level.core.570789286" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core" valueType="enumerated"/>
                                                                <option id="sbi.gnu.c.compiler.option.714440530" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
-                                                                       <listOptionValue builtIn="false" value="mobile-3.0-device.core_llvm36.armel.core.app"/>
+                                                                       <listOptionValue builtIn="false" value="mobile-3.0-emulator.core.private_llvm37.i386.core.app"/>
                                                                </option>
                                                                <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.1795885786" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/EGL&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES3&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/KHR&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore-agent&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appfw&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/attach-panel&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/aul/&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/auth-fw&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/badge&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/base&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/cairo&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/calendar-service2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/call-manager&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/cbhm&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/chromium-ewk&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ckm&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/contacts-svc&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/content&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/context-service&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/csr&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/dali&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/dali-toolkit&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/dbus-1.0&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/eio-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/eldbus-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/elementary-1&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/email-service&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/embryo-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/emile-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/eo-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/metadata-editor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/minicontrol&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/minizip&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/msg-service&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/network&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/notification&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/nsd/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/phonenumber-utils&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/rua/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/sensor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/service-adaptor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/shortcut&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/storage&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/system&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/telephony&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/telephony-client&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/tzsh&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ug-1&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ui&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ui-viewmgr&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/vconf&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/vulkan&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/web&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/widget_service&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/widget_viewer_dali&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/widget_viewer_evas&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/wifi-direct&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/yaca&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/dbus-1.0/include&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/glib-2.0/include&quot;"/>
                                                                </option>
                                                                        <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
                                                                        <listOptionValue builtIn="false" value=" -fPIE"/>
                                                                        <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="-mthumb"/>
                                                                </option>
                                                                <option id="gnu.c.compiler.option.include.paths.225786244" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="/home/bhutani.92/Tizen/tizen-sdk/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/libxml2"/>
                                                                        <listOptionValue builtIn="false" value="${TC_LINKER_MISC}"/>
                                                                        <listOptionValue builtIn="false" value="${RS_LINKER_MISC}"/>
                                                                        <listOptionValue builtIn="false" value="-pie -lpthread "/>
-                                                                       <listOptionValue builtIn="false" value="-Xlinker -rpath=&quot;/home/developer/sdk_tools/lib&quot;"/>
                                                                        <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
                                                                        <listOptionValue builtIn="false" value="-Xlinker --version-script=&quot;${PROJ_PATH}/.exportMap&quot;"/>
                                                                        <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib&quot;"/>
                                                                        <additionalInput kind="additionalinput" paths="$(LIBS)"/>
                                                                </inputType>
                                                        </tool>
-                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1489466124" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                       <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1489466124" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
                                                                <option id="gnu.both.asm.option.include.paths.730706479" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="/home/bhutani.92/Tizen/tizen-sdk/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/libxml2"/>
                                                                        <listOptionValue builtIn="false" value="/home/bhutani.92/Tizen/tizen-sdk/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include"/>
                                                <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="lib"/>
                                                <entry excluding="edje/mp-label.edc|edje/mp-progressbar.edc|edje/mp-set-as.edc|edje/mp-player-view-landscape.edc|edje/genlist/genlist.edc|edje/mp-gengrid-style.edc|edje/mp-layout-misc.edc|edje/genlist/genlist_textblock_style.edc|edje/mp-square-view.edc|edje/mp-list.edc|edje/mp-volume-widget.edc|edje/mp-check.edc|edje/mp-player-progressbar.edc|edje/mp-rich-info.edc|edje/mp-view.edc|edje/genlist/genlist_macro.edc|edje/mp-motion-popup.edc|edje/mp-slider.edc|edje/mp-naviframe.edc|edje/mp-nocontents.edc|edje/mp-play-menu.edc|edje/mp-toolbar.edc|edje/mp-now-playing.edc|edje/mp_genlist_define.edc|edje/mp-button.edc|edje/mp-editfield.edc|edje/mp-edit-navi.edc|edje/mp-no-contents.edc|edje/mp-play-info.edc|edje/search_bar.edc|edje/mp-info-view.edc|edje/mp-3d-view.edc|edje/mp-play-control.edc|edje/mp-play-mini-app.edc|edje/entry.edc|edje/mp-genlist-theme.edc|edje/tizen-hd-inc.edc|edje/mp-play-progress.edc|edje/mp-play-view.edc|edje/mp-lrc.edc|edje/mp_genlist_macro.edc|edje/mp-defines.h|edje/mp-list-view.edc|edje/mp-play-vew-landscape.edc|edje/mp-player-view.edc|edje/genlist/genlist_normal.edc|edje/mp-all-view.edc|edje/mp-play-option.edc" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
                                                <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="shared"/>
-                                               <entry excluding="core/include/mp-cloud.h|view/mp-artist-booklet-view.c|core/include/mp-voice-control-mgr.h|core/include/mp-music-view-mgr.h|view/mp-album-booklet-view.c|view/mp-make-offline-view.c|core/include/mp-context.h|view/include/mp-album-booklet-view.h|view/include/mp-make-offline-view.h|view/include/mp-main-view.h|common/include/mp-recommend.h|core/include/mp-floating-widget-mgr.h|core/mp-music-view-mgr.c|common/include/mp-albumart.h|view/include/mp-artist-booklet-view.h|core/include/mp-wifidirect-mgr.h|view/mp-main-view.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+                                               <entry excluding="core/include/mp-floating-widget-mgr.h" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="src"/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
diff --git a/src/common/include/mp-albumart.h b/src/common/include/mp-albumart.h
deleted file mode 100644 (file)
index c8ca925..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_ALBUMART_H__
-#define __MP_ALBUMART_H__
-
-void mp_albumart_update(const char *uri, const char *media_id);
-char *mp_albumart_path_get(const char *media_id);
-
-#endif
-
diff --git a/src/common/include/mp-recommend.h b/src/common/include/mp-recommend.h
deleted file mode 100644 (file)
index 91ad9ce..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_MUSIC_RECOMMEND_H__
-#define __MP_MUSIC_RECOMMEND_H__
-
-typedef struct _MpRcmd MpRcmd;
-
-typedef void(*MpRcmdCb)(int position, void *userdata);
-
-MpRcmd *
-mp_recommend_create(const char *path);
-
-int
-mp_recommend_extractable(MpRcmd *rcmd);
-
-void
-mp_recommend_extract(MpRcmd *rcmd, MpRcmdCb cb, void *user_data);
-
-void
-mp_recommend_destory(MpRcmd *rcmd);
-
-
-#endif
-
index 86bf77a..98994bf 100644 (file)
@@ -45,7 +45,6 @@
 #include "mp-all-view.h"
 #include "mp-set-as-view.h"
 #include "mp-playlist-list.h"
-#include "mp-make-offline-view.h"
 #include "mp-setting-ctrl.h"
 #include "mp-ug-launch.h"
 #include "mp-edit-playlist.h"
@@ -1881,11 +1880,9 @@ _mp_common_create_all_view(MpViewMgr_t *view_manager)
                //mp_all_view_select_tab((MpView_t*)view, tab);
                PROFILE_OUT("mp_view_update");
 
-#ifndef MP_CREATE_FAKE_IMAGE
                PROFILE_IN("mp_view_mgr_push_view");
                mp_view_mgr_push_view(view_manager, (MpView_t *)view, NULL);
                PROFILE_OUT("mp_view_mgr_push_view");
-#endif
 
                PROFILE_IN("mp_view_update_options");
                mp_view_update_options((MpView_t *)view);
diff --git a/src/core/include/mp-context.h b/src/core/include/mp-context.h
deleted file mode 100644 (file)
index 65c9bc5..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_CONTEXT_H__
-#define __MP_CONTEXT_H__
-
-#include "music.h"
-#include <stdbool.h>
-
-int mp_context_log_connect(void);
-int mp_context_log_disconnect(void);
-int mp_context_log_insert(struct appdata *ad, bool start);
-void mp_context_notify_playback(bool start, const char *uri);
-
-
-#endif
diff --git a/src/core/include/mp-music-view-mgr.h b/src/core/include/mp-music-view-mgr.h
deleted file mode 100644 (file)
index abef2b5..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_MUSIC_VIEW_MGR_H_
-#define __MP_MUSIC_VIEW_MGR_H_
-
-
-int mp_music_view_mgr_init(void);
-int mp_music_view_mgr_release(void);
-char * mp_music_view_mgr_exe(char *filename, int *length);
-#endif
diff --git a/src/core/include/mp-wifidirect-mgr.h b/src/core/include/mp-wifidirect-mgr.h
deleted file mode 100644 (file)
index 6842d50..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (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.
- */
-
-
-#pragma once
-
-
-#include <stdbool.h>
-#include <glib.h>
-
-
-typedef        void *mp_wifidirect_mgr_h;
-
-typedef enum {
-       MP_WIFI_DIRECT_DEVICE_TV = 0x00,
-       MP_WIFI_DIRECT_DEVICE_BD,
-       MP_WIFI_DIRECT_DEVICE_LFD,
-       MP_WIFI_DIRECT_DEVICE_STB,
-       MP_WIFI_DIRECT_DEVICE_MOBILE,
-       MP_WIFI_DIRECT_DEVICE_TABLET,
-       MP_WIFI_DIRECT_DEVICE_DONGLE,
-       MP_WIFI_DIRECT_DEVICE_CAMERA,
-       MP_WIFI_DIRECT_DEVICE_CAMCORDER,
-       MP_WIFI_DIRECT_DEVICE_REF,
-       MP_WIFI_DIRECT_DEVICE_AC_WALL,
-       MP_WIFI_DIRECT_DEVICE_WM,
-       MP_WIFI_DIRECT_DEVICE_ROBOT_TV,
-       MP_WIFI_DIRECT_DEVICE_PC,
-       MP_WIFI_DIRECT_DEVICE_DMR,
-       MP_WIFI_DIRECT_DEVICE_HOME_THEATER,
-       MP_WIFI_DIRECT_DEVICE_UNKNOWN,
-}mp_wifidirect_mgr_device_type_t;
-
-
-typedef enum{
-       MP_WIFI_DIRECT_DISCOVERY_STATE_NONE = 0x00,
-       MP_WIFI_DIRECT_DISCOVERY_STATE_STARTED,
-       MP_WIFI_DIRECT_DISCOVERY_STATE_FOUND,
-       MP_WIFI_DIRECT_DISCOVERY_STATE_FINISHED,
-}mp_wifidirect_mgr_discovery_status_t;
-
-typedef enum{
-       MP_WIFI_DIRECT_DISCOVERY_STATE_ACTIVE = 0x00,
-       MP_WIFI_DIRECT_DISCOVERY_STATE_DEACTIVE,
-}mp_wifidirect_mgr_active_status_t;
-
-
-
-typedef void (*mp_wifi_discovery_cb)(mp_wifidirect_mgr_device_type_t nDeviceType, char *szDeviceName, void *pDeviceInfo, bool bIsConnect, void *pUserData);
-typedef void (*mp_wifi_state_change_cb)(mp_wifidirect_mgr_active_status_t nStatus, void *pUserData);
-
-
-
-bool mp_wifidirect_mgr_app_control_init();
-bool mp_wifidirect_mgr_app_control_deinit();
-
-mp_wifidirect_mgr_h mp_wifidirect_mgr_create(mp_wifi_discovery_cb pDiscoveryCb, mp_wifi_state_change_cb pActiveCb);
-void mp_wifidirect_mgr_destroy(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_set_user_data(mp_wifidirect_mgr_h pWifiDirectHandle, void *pUserData);
-bool mp_wifidirect_mgr_realize(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_unrealize(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_init_miracast(bool enable);
-bool mp_wifidirect_mgr_start_scan(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_stop_scan(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_connected_device_scan(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_activate(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_connect(mp_wifidirect_mgr_h pWifiDirectHandle, char *szMacAddr);
-bool mp_wifidirect_mgr_disconnect(mp_wifidirect_mgr_h pWifiDirectHandle);
-bool mp_wifidirect_mgr_launch_allshare_cast(Evas_Object *pWin, const char *szMacAddr, void *pUserData);
-bool mp_wifidirect_mgr_deactivate(mp_wifidirect_mgr_h pWifiDirectHandle);
-
index 5b5754f..cb76363 100644 (file)
 #include "mp-streaming-mgr.h"
 #include "mp-ug-launch.h"
 
+#ifndef MP_SOUND_PLAYER
 #include "mp-common.h"
+#endif
+
 #include "mp-view-mgr.h"
 
 #include "mp-player-view.h"
diff --git a/src/view/include/mp-album-booklet-view.h b/src/view/include/mp-album-booklet-view.h
deleted file mode 100644 (file)
index 854523e..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_ALBUM_BOOKLETVIEW_H__
-#define __MP_ALBUM_BOOKLETVIEW_H__
-
-
-#include "music.h"
-#include "mp-info-data.h"
-enum{
-       ALBUM_BOOKLET_VIEW_TRACK_LIST=0,
-       ALBUM_BOOKLET_VIEW_SIMILAR_ALBUM,
-       ALBUM_BOOKLET_VIEW_REVIEW,
-       ALBUM_BOOKLET_VIEW_MAX,
-};
-typedef struct
-{
-       INHERIT_MP_VIEW;
-
-       int page_index[ALBUM_BOOKLET_VIEW_MAX];
-       int page_count;
-
-       Evas_Object *title_layout;
-
-       Evas_Object *title_index;
-       Evas_Object *content;
-       Evas_Object *current_song_title;
-       Evas_Object *current_page;
-       Evas_Object *current_page_content;
-       Evas_Object *next_page_content;
-
-       /*page 1*/
-       Evas_Object *album_index;
-       Evas_Object *track_genlist;
-       Elm_Genlist_Item_Class *track_itc;
-       Elm_Genlist_Item_Class *info_itc;
-       Elm_Genlist_Item_Class *title_itc;
-    bool page1_enabled; //flag of page exists or not
-       /*page 2*/
-       Evas_Object *album_gengrid;
-       Elm_Gengrid_Item_Class *album_itc;
-    bool page2_enabled; //flag of page exists or not
-       /*page 3*/
-       Evas_Object *text;
-    bool page3_enabled; //flag of page exists or not
-       /* external objects*/
-       mp_info_data_t *info_data;
-       char *name;
-       char *artist;
-       char *thumbnail;
-
-       bool transition_state;
-       int page_num;
-       /* extention functions */
-}MpAlbumBookletView_t;
-
-MpAlbumBookletView_t *mp_album_booklet_view_create(Evas_Object *parent, mp_info_data_t *info_data, char *album, char *artist, char *thumbnail);
-#endif
diff --git a/src/view/include/mp-artist-booklet-view.h b/src/view/include/mp-artist-booklet-view.h
deleted file mode 100644 (file)
index d1ccfd7..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_ARTIST_BOOKLETVIEW_H__
-#define __MP_ARTIST_BOOKLETVIEW_H__
-
-
-#include "music.h"
-#include "mp-info-data.h"
-enum{
-       ARTIST_BOOKLET_VIEW_DISCOGRAPHY=0,
-       ARTIST_BOOKLET_VIEW_BIOGRAPHY,
-       ARTIST_BOOKLET_VIEW_SIMILAR_ARTIST,
-       ARTIST_BOOKLET_VIEW_MAX,
-};
-typedef struct
-{
-       INHERIT_MP_VIEW;
-
-       int page_index[ARTIST_BOOKLET_VIEW_MAX];
-       int page_count;
-
-       Evas_Object *title_layout;
-
-
-       Evas_Object *title_index;
-       Evas_Object *current_song_title;
-       Evas_Object *current_page;
-       Evas_Object *current_page_content;
-       Evas_Object *next_page_content;
-
-       Evas_Object *genlist[ARTIST_BOOKLET_VIEW_MAX];
-       Elm_Genlist_Item_Class *info_itc;
-       Elm_Genlist_Item_Class *title_itc;
-       Elm_Genlist_Item_Class *content_itc;
-
-       /*page 1*/
-       Evas_Object *artist_index;
-       Evas_Object *disco_gengrid;
-       Elm_Gengrid_Item_Class *disco_itc;
-    bool page1_enabled; //flag of page exists or not
-       /*page 2*/
-       Evas_Object *image;
-       Evas_Object *text;
-    bool page2_enabled; //flag of page exists or not
-       /*page 3*/
-       Evas_Object *artist_genlist;
-       Elm_Genlist_Item_Class *artist_itc;
-    bool page3_enabled; //flag of page exists or not
-       /* external objects*/
-       mp_info_data_t *info_data;
-       char *name;
-       char *artist;
-       char *thumbnail;
-
-       bool transition_state;
-       int page_num;
-
-       Elm_Object_Item *gengrid_item;
-}MpArtistBookletView_t;
-
-MpArtistBookletView_t *mp_artist_booklet_view_create(Evas_Object *parent, mp_info_data_t *info_data, char *album, char *artist, char *thumbnail);
-#endif
diff --git a/src/view/include/mp-main-view.h b/src/view/include/mp-main-view.h
deleted file mode 100644 (file)
index 26ee0db..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_MAIN_VIEW_H__
-#define __MP_MAIN_VIEW_H__
-
-#include "mp-list-view.h"
-#include "mp-all-view.h"
-#include "mp-track-list.h"
-#include "mp-playlist-list.h"
-#include "mp-album-list.h"
-#include "mp-artist-list.h"
-#include "mp-search-view.h"
-#include "mp-edit-callback.h"
-#include "mp-scroll-page.h"
-
-#include "music.h"
-
-typedef struct
-{
-       INHERIT_MP_LIST_VIEW;
-
-       Evas_Object *scroll_page;
-#ifdef MP_FEATURE_BOTTOM_PAGE_CONTROL
-       Evas_Object *indicator;
-#endif
-
-       MpView_t *sub_views[MH_SCROLL_MAX];
-
-       bool store_initialized;
-       bool radio_initialized;
-
-       Ecore_Timer *load_timer;
-       Ecore_Timer *rotate_timer;
-
-       /* extention functions */
-}MpMainView_t;
-
-MpMainView_t *mp_main_view_create(Evas_Object *parent, MpTab_e inint_tab);
-int mp_main_view_select_tab(MpMainView_t *view, MpTab_e tab);
-
-#endif
-
-
-
-
diff --git a/src/view/include/mp-make-offline-view.h b/src/view/include/mp-make-offline-view.h
deleted file mode 100644 (file)
index 1f900df..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __MP_MAKE_AVAILABLE_OFFLINE_VIEW_H__
-#define __MP_MAKE_AVAILABLE_OFFLINE_VIEW_H__
-
-#include "mp-list-view.h"
-#include "music.h"
-
-typedef struct
-{
-       INHERIT_MP_LIST_VIEW;
-       /* extention functions */
-}MpMakeOfflineView_t;
-
-MpMakeOfflineView_t *mp_make_offline_view_create(Evas_Object *parent);
-
-#endif
-
-
-
diff --git a/src/view/mp-album-booklet-view.c b/src/view/mp-album-booklet-view.c
deleted file mode 100644 (file)
index 420fe44..0000000
+++ /dev/null
@@ -1,633 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "mp-album-booklet-view.h"
-#include "mp-widget.h"
-#include "mp-common.h"
-#include "mp-util.h"
-#include "mp-smart-event-box.h"
-#include "mp-scroll-page.h"
-
-#define MP_MAX_TEXT_PRE_FORMAT_LEN 256
-#define MP_MAX_ARTIST_NAME_WIDTH 320
-#define MP_LABEL_SLIDE_DURATION 5
-#define MP_ALBUM_INDEX_ICON_SIZE (202 * elm_config_scale_get())
-#define MP_ALBUM_BOOKLET_THUMB_ICON_SIZE 312
-#define HD_SCREEN_WIDTH 720.0
-#define HD_INFO_RIGHT_WIDTH 880.0
-
-
-typedef struct {
-       char *header;
-       char *detail;
-} mp_media_info_t;
-
-typedef struct {
-       char *name;
-       char *year;
-       char *thumb;
-} mp_album_info_t;
-
-static void
-_mp_album_booklet_view_destory_cb(void *thiz)
-{
-       eventfunc;
-       MpAlbumBookletView_t *view = thiz;
-       MP_CHECK(view);
-       mp_view_fini((MpView_t *)view);
-
-       /* TODO: release resource..*/
-       IF_G_FREE(view->name);
-       IF_G_FREE(view->artist);
-       IF_G_FREE(view->thumbnail);
-
-       mp_evas_object_del(view->more_btn_ctxpopup);
-       mp_evas_object_del(view->track_genlist);
-       mp_elm_genlist_item_class_free(view->info_itc);
-       mp_elm_genlist_item_class_free(view->title_itc);
-       mp_elm_genlist_item_class_free(view->track_itc);
-
-       free(view);
-}
-
-int _mp_album_booklet_view_update(void *thiz)
-{
-       startfunc;
-       MpAlbumBookletView_t *view = thiz;
-       MP_CHECK_VAL(view, -1);
-
-       mp_view_update_options((MpView_t *)view);
-       return 0;
-}
-
-static void _mp_album_booklet_view_search_cb(void *data, Evas_Object * obj, void *event_info)
-{
-       eventfunc;
-       MpAlbumBookletView_t *view =  data;
-       MP_CHECK(view);
-       mp_evas_object_del(view->more_btn_ctxpopup);
-       mp_common_search_by(view->name);
-}
-
-static void _mp_album_booklet_view_normal_more_btn_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       eventfunc;
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)data;
-       MP_CHECK(view);
-
-       mp_evas_object_del(view->more_btn_ctxpopup);
-
-       view->more_btn_ctxpopup = mp_common_create_more_ctxpopup(view);
-       MP_CHECK(view->more_btn_ctxpopup);
-
-       /* Todo: supports multi-language */
-
-       /*Search */
-       mp_util_ctxpopup_item_append(view->more_btn_ctxpopup,
-                                    STR_MP_SEARCH, MP_PLAYER_MORE_BTN_SEARCH, _mp_album_booklet_view_search_cb, view);
-
-       mp_util_ctxpopup_item_append(view->more_btn_ctxpopup,
-                                    STR_MP_SETTINGS, MP_PLAYER_MORE_BTN_SETTING, mp_common_ctxpopup_setting_cb, view);
-#ifndef MP_FEATURE_NO_END
-       mp_util_ctxpopup_item_append(view->more_btn_ctxpopup,
-                                    STR_MP_END, MP_PLAYER_MORE_BTN_VIEW_END, mp_common_ctxpopup_end_cb, view);
-#endif
-       mp_util_more_btn_move_ctxpopup(view->more_btn_ctxpopup, obj);
-
-       evas_object_show(view->more_btn_ctxpopup);
-}
-
-
-/***************       functions for track list update         *******************/
-Eina_Bool _mp_album_booklet_view_tracklist_back_cb(void *data, Elm_Object_Item *it)
-{
-       eventfunc;
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *) data;
-       MP_CHECK_VAL(view, EINA_TRUE);
-
-       DEBUG_TRACE("");
-       MpViewMgr_t *view_mgr = mp_view_mgr_get_view_manager();
-       mp_view_mgr_pop_view(view_mgr, false);
-
-       return EINA_TRUE;
-}
-
-static int _mp_album_booklet_view_update_options(void *thiz)
-{
-       startfunc;
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)thiz;
-       MP_CHECK_VAL(view, -1);
-
-       mp_view_clear_options((MpView_t *)view);
-       Evas_Object *btn = NULL;
-
-       btn = mp_widget_create_toolbar_btn(view->layout, MP_TOOLBAR_BTN_MORE, NULL, _mp_album_booklet_view_normal_more_btn_cb, view);
-       elm_object_item_part_content_set(view->navi_it, "toolbar_more_btn", btn);
-       /*view->toolbar_options[MP_OPTION_MORE] = btn;*/
-       elm_naviframe_item_title_enabled_set(view->navi_it, EINA_FALSE, EINA_FALSE);
-
-       elm_naviframe_item_pop_cb_set(view->navi_it, _mp_album_booklet_view_tracklist_back_cb, view);
-
-       endfunc;
-       return 0;
-}
-
-/***page 1***/
-static char *_mp_album_booklet_view_get_year(void *thiz)
-{
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)thiz;
-       MP_CHECK_NULL(view);
-
-       int ret = 0;
-
-       mp_media_list_h svc_handle = NULL;
-       ret = mp_media_info_list_create(&svc_handle, MP_TRACK_BY_ALBUM, view->name, NULL, NULL, -1, 0, 1);
-       MP_CHECK_NULL(ret == 0);
-
-       mp_media_info_h item = NULL;
-       char *year = NULL;
-       char *get_year = NULL;
-       item = mp_media_info_list_nth_item(svc_handle, 0);
-       if (item) {
-               ret = mp_media_info_get_year(item, &year);
-       }
-       DEBUG_TRACE("year=%s", year);
-       get_year = year ? g_strdup(year) : g_strdup("");
-
-       mp_media_info_list_destroy(svc_handle);
-
-       return get_year;
-}
-
-static char*
-_mp_album_booklet_view_album_index_text_get(void *data, Evas_Object * obj, const char *part)
-{
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       char *text = NULL;
-       if (!g_strcmp0(part, "elm.text.1")) {
-               if (view->info_data) {
-                       text = view->info_data->album_title;
-               }
-       } else if (!g_strcmp0(part, "elm.text.2")) {
-               return _mp_album_booklet_view_get_year(view);
-       } else if (!g_strcmp0(part, "elm.text.3")) {
-               text = view->artist;
-       }
-
-       return g_strdup(text);
-}
-
-static Evas_Object *
-_mp_album_booklet_view_album_index_content_get(void *data, Evas_Object *obj, const char *part)
-{
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       Evas_Object *icon = mp_util_create_thumb_icon(obj, view->thumbnail, MP_ALBUM_INDEX_ICON_SIZE, MP_ALBUM_INDEX_ICON_SIZE);
-
-       return icon;
-}
-
-static char*
-_mp_album_booklet_view_title_text_get(void *data, Evas_Object * obj, const char *part)
-{
-       int type = (int)data;
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       const char *title = NULL;
-       if (type == ALBUM_BOOKLET_VIEW_TRACK_LIST) {
-               title = STR_MP_TRACK_LIST;
-       } else if (type == ALBUM_BOOKLET_VIEW_REVIEW) {
-               title = STR_MP_REVIEW;
-       }
-
-       char *text = GET_STR(title);
-       return g_strdup(text);
-}
-
-static Evas_Object *
-_mp_album_booklet_view_title_content_get(void *data, Evas_Object *obj, const char *part)
-{
-       int type = (int)data;
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       Evas_Object *icon = mp_scroll_page_index_icon_add(obj, view->page_count, view->page_index[type]);
-       return icon;
-}
-
-static char*
-_mp_album_booklet_view_track_gl_text_get(void *data, Evas_Object * obj, const char *part)
-{
-       mp_media_info_t *info = data;
-       MP_CHECK_NULL(info);
-
-       if (!g_strcmp0(part, "elm.text.2")) {
-               return g_strdup(info->header);
-       } else if (!g_strcmp0(part, "elm.text.1")) {
-               return g_strdup(info->detail);
-       }
-       return NULL;
-}
-
-static void
-_mp_album_booklet_vew_list_item_del(void *data, Evas_Object *obj)
-{
-       mp_media_info_t *info = data;
-       MP_CHECK(info);
-
-       IF_FREE(info->header);
-       IF_FREE(info->detail);
-       free(info);
-}
-
-static void
-_mp_album_booklet_view_append_track_item(Evas_Object *genlist, char *header, char *detail)
-{
-       /*startfunc;*/
-       MpAlbumBookletView_t *view = NULL;
-       mp_media_info_t *info = NULL;
-
-       MP_CHECK(genlist);
-
-       view = (MpAlbumBookletView_t *)evas_object_data_get(genlist, "view");
-       MP_CHECK(view);
-       info = calloc(1, sizeof(mp_media_info_t));
-       MP_CHECK(info);
-       info->header = g_strdup(header);
-       info->detail = g_strdup(detail);
-
-       Elm_Object_Item *item;
-
-       item = elm_genlist_item_append(view->track_genlist, view->track_itc,
-                                      info,
-                                      NULL,
-                                      ELM_GENLIST_ITEM_NONE,
-                                      NULL, NULL);
-       if (item) {
-               elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-       }
-}
-
-static Evas_Object *
-_mp_album_booklet_view_create_genlist(Evas_Object *parent)
-{
-       startfunc;
-       Evas_Object *genlist = NULL;
-       genlist = mp_widget_genlist_create(parent);
-       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_genlist_homogeneous_set(genlist, EINA_FALSE);
-
-       endfunc;
-       return genlist;
-}
-
-static Evas_Object *
-_mp_album_booklet_view_create_track_list(Evas_Object *parent, MpAlbumBookletView_t *view)
-{
-       startfunc;
-       MP_CHECK_NULL(view);
-
-       Evas_Object *genlist = NULL;
-       genlist = _mp_album_booklet_view_create_genlist(parent);
-       MP_CHECK_NULL(genlist);
-       view->track_genlist = genlist;
-       /*elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);*/
-       evas_object_data_set(genlist, "view", view);
-
-       /* album info(index) */
-       Elm_Object_Item *item = elm_genlist_item_append(genlist, view->info_itc, (void *)ALBUM_BOOKLET_VIEW_TRACK_LIST, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
-       elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-
-       /* title */
-       item = elm_genlist_item_append(genlist, view->title_itc, (void *)ALBUM_BOOKLET_VIEW_TRACK_LIST, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
-       elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-
-       /*data part*/
-       mp_info_data_t *info_data = view->info_data;
-       int i = 0;
-       for (i = 0; i < info_data->track_list_count; i++) {
-               if (info_data->track_list[i].track_title) {
-                       char duration_format[10] = { 0, };
-                       int dur_sec = info_data->track_list[i].duration;
-                       int sec = dur_sec % 60;
-                       int min = dur_sec / 60;
-                       snprintf(duration_format, sizeof(duration_format), "%02u:%02u", min, sec);
-                       _mp_album_booklet_view_append_track_item(genlist, duration_format, info_data->track_list[i].track_title);
-               } else {
-                       DEBUG_TRACE("credits have error");
-               }
-       }
-
-       return genlist;
-}
-/***page 2***/
-
-static char *
-_mp_album_booklet_album_label_get(void *data, Evas_Object * obj, const char *part)
-{
-       mp_album_info_t *item = (mp_album_info_t *) data;
-       MP_CHECK_NULL(item);
-
-       if (!strcmp(part, "elm.text")) {
-
-               return g_strdup(item->name);
-
-       } else if (!strcmp(part, "elm.text.2")) {
-               return g_strdup(item->year);
-       }
-
-       DEBUG_TRACE("Unusing part: %s", part);
-       return NULL;
-}
-
-
-
-Evas_Object *
-_mp_album_booklet_album_icon_get(void *data, Evas_Object * obj, const char *part)
-{
-       Evas_Object *icon = NULL;
-
-       mp_album_info_t *item = (mp_album_info_t *) data;
-       MP_CHECK_NULL(item);
-
-       if (!strcmp(part, "elm.icon") || !strcmp(part, "elm.swallow.icon")) {
-
-               icon = mp_util_create_thumb_icon(obj, item->thumb, MP_ALBUM_BOOKLET_THUMB_ICON_SIZE, MP_ALBUM_BOOKLET_THUMB_ICON_SIZE);
-       }
-       return icon;
-}
-
-static void
-_mp_album_booklet_album_item_del_cb(void *data, Evas_Object *obj)
-{
-       mp_album_info_t *info = data;
-       MP_CHECK(info);
-
-       IF_FREE(info->name);
-       IF_FREE(info->thumb);
-       IF_FREE(info->year);
-       free(info);
-}
-
-static void _mp_album_booklet_append_album_item(Evas_Object *gengrid, char *name, char *year, char *thumb)
-{
-       /*startfunc;*/
-       MpAlbumBookletView_t *view = NULL;
-       mp_album_info_t *info = NULL;
-
-       MP_CHECK(gengrid);
-
-       view = (MpAlbumBookletView_t *)evas_object_data_get(gengrid, "view");
-       MP_CHECK(view);
-       info = calloc(1, sizeof(mp_album_info_t));
-       MP_CHECK(info);
-       info->name = g_strdup(name);
-       info->year = g_strdup(year);
-       info->thumb = g_strdup(thumb);
-
-       elm_gengrid_item_append(view->album_gengrid, view->album_itc,
-                               info,
-                               NULL,
-                               NULL);
-}
-
-
-static Evas_Object *
-_mp_album_booklet_view_gengrid_create(Evas_Object *parent, MpAlbumBookletView_t *view)
-{
-       startfunc;
-       MP_CHECK_NULL(view);
-       /*create new gengrid*/
-       mp_evas_object_del(view->album_gengrid);
-       view->album_gengrid = NULL;
-
-       mp_info_data_t *info_data = view->info_data;
-       if (info_data->discography_count > 0) {
-               view->album_gengrid = elm_gengrid_add(parent);
-               evas_object_data_set(view->album_gengrid, "view", view);
-               evas_object_size_hint_weight_set(view->album_gengrid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(view->album_gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               evas_object_freeze_events_set(view->album_gengrid, EINA_TRUE);
-               evas_object_show(view->album_gengrid);
-
-               if (!view->album_itc) {
-                       view->album_itc = elm_gengrid_item_class_new();
-                       MP_CHECK_NULL(view->album_itc);
-                       view->album_itc->item_style = "music/album_grid";
-                       view->album_itc->func.text_get = _mp_album_booklet_album_label_get;
-                       view->album_itc->func.content_get = _mp_album_booklet_album_icon_get;
-                       view->album_itc->func.del = _mp_album_booklet_album_item_del_cb;
-               }
-
-               double scale = elm_config_scale_get();
-               int w = (int)((MP_ALBUM_BOOKLET_THUMB_ICON_SIZE + 33) * scale);
-               int h = (int)((MP_ALBUM_BOOKLET_THUMB_ICON_SIZE + 97) * scale);
-               elm_gengrid_item_size_set(view->album_gengrid, w, h);
-               elm_gengrid_align_set(view->album_gengrid, 0.5, 0.0);
-
-               int i = 0;
-               for (i = 0; i < info_data->discography_count; i++) {
-                       if (info_data->discography[i].album_title && info_data->discography[i].thumbpath) {
-                               _mp_album_booklet_append_album_item(view->album_gengrid, info_data->discography[i].album_title,
-                                                                   info_data->discography[i].year, info_data->discography[i].thumbpath);
-                       } else {
-                               DEBUG_TRACE("credits have error");
-                       }
-               }
-       } else {
-               view->album_gengrid = mp_widget_create_no_contents(view->current_page, MP_NOCONTENT_NORMAL, NULL, NULL);
-       }
-
-       endfunc;
-       return view->album_gengrid;
-}
-
-static Evas_Object *
-_mp_album_booklet_view_add_review(Evas_Object *parent, MpAlbumBookletView_t *view)
-{
-       startfunc;
-       MP_CHECK_NULL(parent);
-       MP_CHECK_NULL(view);
-
-       Evas_Object *scroller = elm_scroller_add(parent);
-       elm_scroller_bounce_set(scroller, EINA_FALSE, EINA_TRUE);
-       elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
-
-       Evas_Object *box = elm_box_add(scroller);
-       evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_object_content_set(scroller, box);
-
-       /* title */
-       Evas_Object *title = mp_common_load_edj(box, THEME_NAME, "elm/genlist/item/music_player/rich_info/page_title/default");
-       evas_object_size_hint_weight_set(title, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(title, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_data_set(title, "view", view);
-
-       char *text = _mp_album_booklet_view_title_text_get((void *)ALBUM_BOOKLET_VIEW_REVIEW, title, "elm.text");
-       elm_object_part_text_set(title, "elm.text", text);
-       IF_FREE(text);
-       Evas_Object *index = _mp_album_booklet_view_title_content_get((void *)ALBUM_BOOKLET_VIEW_REVIEW, title, "elm.icon");
-       elm_object_part_content_set(title, "elm.icon", index);
-       elm_box_pack_end(box, title);
-
-       /* review */
-       Evas_Object *review = mp_widget_rich_info_text_add(box, view->info_data->review);
-       evas_object_size_hint_weight_set(review, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(review, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_box_pack_end(box, review);
-
-       return scroller;
-}
-
-static Evas_Object *
-_mp_similar_album_create(Evas_Object *parent, MpAlbumBookletView_t *view)
-{
-       return _mp_album_booklet_view_gengrid_create(parent, view);
-}
-
-static Evas_Object *
-_mp_review_create(Evas_Object *parent, MpAlbumBookletView_t *view)
-{
-       return _mp_album_booklet_view_add_review(parent, view);
-}
-
-static void _mp_album_booklet_view_content_load(void *thiz)
-{
-       startfunc;
-       MpAlbumBookletView_t *view = (MpAlbumBookletView_t *)thiz;
-       MP_CHECK(view);
-
-       /*set itc*/
-       if (!view->info_itc) {
-               view->info_itc = elm_genlist_item_class_new();
-               view->info_itc->item_style = "music_player/album_index";
-               view->info_itc->func.text_get = _mp_album_booklet_view_album_index_text_get;
-               view->info_itc->func.content_get = _mp_album_booklet_view_album_index_content_get;
-               view->info_itc->func.del = NULL;
-       }
-
-       if (!view->title_itc) {
-               view->title_itc = elm_genlist_item_class_new();
-               view->title_itc->item_style = "music_player/rich_info/page_title";
-               view->title_itc->func.text_get = _mp_album_booklet_view_title_text_get;
-               view->title_itc->func.content_get = _mp_album_booklet_view_title_content_get;
-               view->title_itc->func.del = NULL;
-       }
-
-       if (!view->track_itc) {
-               view->track_itc = elm_genlist_item_class_new();
-               view->track_itc->item_style = "2text";
-               view->track_itc->func.text_get = _mp_album_booklet_view_track_gl_text_get;
-               view->track_itc->func.content_get = NULL;
-               view->track_itc->func.del = _mp_album_booklet_vew_list_item_del;
-       }
-
-       /*scroll page*/
-       Evas_Object *scroll_page = mp_scroll_page_add(view->layout);
-       mp_scroll_page_hide_scroll_bar(scroll_page);
-
-       /* calc page total becasue of title index */
-       if (view->info_data->track_list_count > 0) {
-               ++view->page_count;
-       }
-       if (view->info_data->review) {
-               ++view->page_count;
-       }
-
-       Evas_Object *page = NULL;
-       int page_count = 0;
-
-       if (view->info_data->track_list_count > 0) {
-               view->page_index[ALBUM_BOOKLET_VIEW_TRACK_LIST] = page_count;
-               page = _mp_album_booklet_view_create_track_list(scroll_page, view);
-               evas_object_show(page);
-               mp_scroll_page_content_append(scroll_page, page);
-               page_count++;
-       }
-
-       if (0) {
-               view->page_index[ALBUM_BOOKLET_VIEW_SIMILAR_ALBUM] = page_count;
-               page = _mp_similar_album_create(scroll_page, view);
-               evas_object_show(page);
-               mp_scroll_page_content_append(scroll_page, page);
-               page_count++;
-       }
-
-       if (view->info_data->review) {
-               view->page_index[ALBUM_BOOKLET_VIEW_REVIEW] = page_count;
-               page = _mp_review_create(scroll_page, view);
-               evas_object_show(page);
-               mp_scroll_page_content_append(scroll_page, page);
-               page_count++;
-       }
-
-       elm_object_part_content_set(view->layout, "list_content", scroll_page);
-
-}
-
-static int
-_mp_album_booklet_view_init(Evas_Object *parent, MpAlbumBookletView_t *view)
-{
-       startfunc;
-       int ret = 0;
-       ret =  mp_view_init(parent, (MpView_t *)view, MP_VIEW_ALBUM_BOOKLET);
-       MP_CHECK_VAL(ret == 0, -1);
-
-       view->disable_title_icon = true;
-
-       view->update = _mp_album_booklet_view_update;
-       view->update_options = _mp_album_booklet_view_update_options;
-       view->update_options_edit = NULL;
-       view->view_destroy_cb = _mp_album_booklet_view_destory_cb;
-
-       return ret;
-}
-
-MpAlbumBookletView_t *mp_album_booklet_view_create(Evas_Object *parent, mp_info_data_t *info_data, char *album, char *artist, char *thumbnail)
-{
-       startfunc;
-       int ret;
-       MP_CHECK_NULL(parent);
-
-       MpAlbumBookletView_t *view = calloc(1, sizeof(MpAlbumBookletView_t));
-       MP_CHECK_NULL(view);
-
-       ret = _mp_album_booklet_view_init(parent, view);
-       if (ret) {
-               goto Error;
-       }
-
-       view->info_data = info_data;
-       view->name = g_strdup(album);
-       view->artist = g_strdup(artist);
-       view->thumbnail = g_strdup(thumbnail);
-
-       _mp_album_booklet_view_content_load(view);
-       return view;
-
-Error:
-       ERROR_TRACE("Error: mp_album_booklet_view_create()");
-       IF_FREE(view);
-       return NULL;
-}
-
-
index b3005ab..56c07f2 100644 (file)
@@ -297,9 +297,6 @@ static void _mp_all_view_playlist_list_create_playlist_cb(void *data, Evas_Objec
 int _mp_all_view_update_options(void *thiz)
 {
        startfunc;
-#ifdef MP_CREATE_FAKE_IMAGE
-       return 0;
-#endif
        MpAllView_t *view = (MpAllView_t *)thiz;
        MP_CHECK_VAL(view->navi_it, -1);
 
diff --git a/src/view/mp-artist-booklet-view.c b/src/view/mp-artist-booklet-view.c
deleted file mode 100644 (file)
index 270970a..0000000
+++ /dev/null
@@ -1,609 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "mp-artist-booklet-view.h"
-#include "mp-widget.h"
-#include "mp-common.h"
-#include "mp-util.h"
-#include "mp-smart-event-box.h"
-
-#define MP_MAX_TEXT_PRE_FORMAT_LEN 256
-#define MP_MAX_ARTIST_NAME_WIDTH 320
-#define MP_LABEL_SLIDE_DURATION 5
-#define MP_ALBUM_INDEX_ICON_SIZE (202 * elm_config_scale_get())
-#define MP_ARTIST_BOOKLET_THUMB_ICON_SIZE 312
-#define HD_SCREEN_WIDTH 720.0
-#define HD_INFO_RIGHT_WIDTH 880.0
-
-typedef struct {
-       char *header;
-       char *detail;
-} mp_media_info_t;
-
-typedef struct {
-       char *name;
-       char *year;
-       char *thumb;
-} mp_album_info_t;
-
-static void
-_mp_artist_booklet_view_destory_cb(void *thiz)
-{
-       eventfunc;
-       MpArtistBookletView_t *view = thiz;
-       MP_CHECK(view);
-       mp_view_fini((MpView_t *)view);
-
-       /* TODO: release resource.. */
-       IF_G_FREE(view->name);
-       IF_G_FREE(view->artist);
-       IF_G_FREE(view->thumbnail);
-
-       mp_evas_object_del(view->more_btn_ctxpopup);
-       mp_elm_genlist_item_class_free(view->info_itc);
-       mp_elm_genlist_item_class_free(view->title_itc);
-       mp_elm_genlist_item_class_free(view->content_itc);
-
-       free(view);
-}
-
-int _mp_artist_booklet_view_update(void *thiz)
-{
-       startfunc;
-       MpArtistBookletView_t *view = thiz;
-       MP_CHECK_VAL(view, -1);
-
-       return 0;
-}
-
-static void _mp_artist_booklet_view_search_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       eventfunc;
-       MpArtistBookletView_t *view =  data;
-       MP_CHECK(view);
-       mp_evas_object_del(view->more_btn_ctxpopup);
-       mp_common_search_by(view->artist);
-}
-
-static void _mp_artist_booklet_view_normal_more_btn_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       eventfunc;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)data;
-       MP_CHECK(view);
-
-       mp_evas_object_del(view->more_btn_ctxpopup);
-       view->more_btn_ctxpopup = mp_common_create_more_ctxpopup(view);
-       MP_CHECK(view->more_btn_ctxpopup);
-
-       /* Todo: supports multi-language */
-
-       /*Search */
-       mp_util_ctxpopup_item_append(view->more_btn_ctxpopup,
-                                    STR_MP_SEARCH, MP_PLAYER_MORE_BTN_SEARCH, _mp_artist_booklet_view_search_cb, view);
-
-       mp_util_ctxpopup_item_append(view->more_btn_ctxpopup,
-                                    STR_MP_SETTINGS, MP_PLAYER_MORE_BTN_SETTING, mp_common_ctxpopup_setting_cb, view);
-#ifndef MP_FEATURE_NO_END
-       mp_util_ctxpopup_item_append(view->more_btn_ctxpopup,
-                                    STR_MP_END, MP_PLAYER_MORE_BTN_VIEW_END, mp_common_ctxpopup_end_cb, view);
-#endif
-       mp_util_more_btn_move_ctxpopup(view->more_btn_ctxpopup, obj);
-
-       evas_object_show(view->more_btn_ctxpopup);
-}
-
-
-/***************       functions for track list update         *******************/
-static Eina_Bool _mp_artist_booklet_view_back_cb(void *data, Elm_Object_Item *it)
-{
-       eventfunc;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *) data;
-       MP_CHECK_VAL(view, EINA_TRUE);
-
-       DEBUG_TRACE("");
-       MpViewMgr_t *view_mgr = mp_view_mgr_get_view_manager();
-       mp_view_mgr_pop_view(view_mgr, false);
-       return EINA_TRUE;
-}
-
-static int _mp_artist_booklet_view_update_options(void *thiz)
-{
-       startfunc;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)thiz;
-       MP_CHECK_VAL(view, -1);
-
-       mp_view_clear_options((MpView_t *)view);
-       Evas_Object *btn = NULL;
-
-       btn = mp_widget_create_toolbar_btn(view->layout, MP_TOOLBAR_BTN_MORE, NULL, _mp_artist_booklet_view_normal_more_btn_cb, view);
-       elm_object_item_part_content_set(view->navi_it, "toolbar_more_btn", btn);
-       /* view->toolbar_options[MP_OPTION_MORE] = btn; */
-
-       elm_naviframe_item_title_enabled_set(view->navi_it, EINA_FALSE, EINA_FALSE);
-       elm_naviframe_item_pop_cb_set(view->navi_it, _mp_artist_booklet_view_back_cb, view);
-
-       endfunc;
-       return 0;
-}
-
-
-/***page 2***/
-
-static char*
-_mp_artist_booklet_view_artist_index_text_get(void *data, Evas_Object *obj, const char *part)
-{
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       char *text = NULL;
-       if (!g_strcmp0(part, "elm.text.1")) {
-               if (view->info_data) {
-                       text = view->artist;
-               }
-       } else if (!g_strcmp0(part, "elm.text.2")) {
-               text = g_strdup_printf("%d %s", view->info_data->discography_count, GET_STR(STR_MP_ALBUMS));
-               return text;
-       }
-
-       return g_strdup(text);
-}
-
-static Evas_Object *
-_mp_artist_booklet_view_artist_index_content_get(void *data, Evas_Object *obj, const char *part)
-{
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       Evas_Object *icon = mp_util_create_thumb_icon(obj, view->thumbnail, MP_ALBUM_INDEX_ICON_SIZE, MP_ALBUM_INDEX_ICON_SIZE);
-
-       return icon;
-}
-
-static char*
-_mp_artist_booklet_view_title_text_get(void *data, Evas_Object *obj, const char *part)
-{
-       int type = (int)data;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       const char *title = NULL;
-       if (type == ARTIST_BOOKLET_VIEW_DISCOGRAPHY) {
-               title = STR_MP_DISCOGRAPHY;
-       } else if (type == ARTIST_BOOKLET_VIEW_BIOGRAPHY) {
-               title = STR_MP_BIOGRAPHY;
-       }
-
-       char *text = GET_STR(title);
-       return g_strdup(text);
-}
-
-static Evas_Object *
-_mp_artist_booklet_view_title_content_get(void *data, Evas_Object *obj, const char *part)
-{
-       int type = (int)data;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       Evas_Object *icon = mp_scroll_page_index_icon_add(obj, view->page_count, view->page_index[type]);
-       return icon;
-}
-
-static char *
-_mp_artist_booklet_album_label_get(void *data, Evas_Object * obj, const char *part)
-{
-       mp_album_info_t *item = (mp_album_info_t *) data;
-       MP_CHECK_NULL(item);
-
-       if (!strcmp(part, "elm.text")) {
-
-               return g_strdup(item->name);
-
-       } else if (!strcmp(part, "elm.text.2")) {
-               return g_strdup(item->year);
-       }
-
-       DEBUG_TRACE("Unusing part: %s", part);
-       return NULL;
-}
-
-
-
-Evas_Object *
-_mp_artist_booklet_album_icon_get(void *data, Evas_Object * obj, const char *part)
-{
-       Evas_Object *icon = NULL;
-
-       mp_album_info_t *item = (mp_album_info_t *) data;
-       MP_CHECK_NULL(item);
-
-       if (!strcmp(part, "elm.icon") || !strcmp(part, "elm.swallow.icon")) {
-               icon = mp_util_create_thumb_icon(obj, item->thumb, MP_ALBUM_THUMB_ICON_SIZE, MP_ALBUM_THUMB_ICON_SIZE);
-       }
-       return icon;
-}
-
-static void
-_mp_artist_booklet_album_item_del_cb(void *data, Evas_Object *obj)
-{
-       mp_album_info_t *info = data;
-       MP_CHECK(info);
-
-       IF_FREE(info->name);
-       IF_FREE(info->thumb);
-       IF_FREE(info->year);
-       free(info);
-}
-
-static void _mp_artist_booklet_append_album_item(Evas_Object *gengrid, char *name, char *year, char *thumb, Elm_Gengrid_Item_Class *disco_itc)
-{
-       /* startfunc; */
-       mp_album_info_t *info = NULL;
-       MP_CHECK(gengrid);
-
-       info = calloc(1, sizeof(mp_album_info_t));
-       MP_CHECK(info);
-       info->name = g_strdup(name);
-       info->year = g_strdup(year);
-       info->thumb = g_strdup(thumb);
-
-       elm_gengrid_item_append(gengrid, disco_itc,
-                               info,
-                               NULL,
-                               NULL);
-}
-
-static void
-_mp_aritst_booklet_view_gengrid_resize(MpArtistBookletView_t *view, Evas_Object *gengrid)
-{
-       MP_CHECK(view);
-       MP_CHECK(view->layout);
-       MP_CHECK(gengrid);
-
-       int layout_w = 0;
-       evas_object_geometry_get(view->layout, NULL, NULL, &layout_w, NULL);
-       if (layout_w) {
-               int item_count = elm_gengrid_items_count(gengrid);
-               int w = 0;
-               int h = 0;
-               elm_gengrid_item_size_get(gengrid, &w, &h);
-               MP_CHECK(w && h);
-
-               int item_per_line = layout_w / w;
-               int line = item_count / item_per_line;
-               if (item_count % item_per_line) {
-                       ++line;
-               }
-
-               int gengrid_h = line * h;
-               evas_object_size_hint_min_set(gengrid, layout_w, gengrid_h);
-       }
-}
-
-static void
-_mp_artist_booklet_view_gengrid_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
-{
-       MpArtistBookletView_t *view = data;
-       MP_CHECK(view);
-       view->disco_gengrid = NULL;
-}
-
-static Evas_Object *
-_mp_artist_booklet_view_gengrid_create(Evas_Object *parent, MpArtistBookletView_t *view)
-{
-       startfunc;
-       MP_CHECK_NULL(view);
-       Evas_Object *gengrid;
-
-       /*create new gengrid*/
-       mp_info_data_t *info_data = view->info_data;
-       if (info_data->discography_count > 0) {
-               gengrid = elm_gengrid_add(parent);
-               evas_object_data_set(gengrid, "view", view);
-               evas_object_size_hint_weight_set(gengrid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               evas_object_freeze_events_set(gengrid, EINA_TRUE);
-               evas_object_show(gengrid);
-
-               evas_object_event_callback_add(gengrid, EVAS_CALLBACK_DEL, _mp_artist_booklet_view_gengrid_del_cb, view);
-
-               if (!view->disco_itc) {
-                       view->disco_itc = elm_gengrid_item_class_new();
-                       MP_CHECK_NULL(view->disco_itc);
-                       view->disco_itc->item_style = "music/album_grid";
-                       view->disco_itc->func.text_get = _mp_artist_booklet_album_label_get;
-                       view->disco_itc->func.content_get = _mp_artist_booklet_album_icon_get;
-                       view->disco_itc->func.del = _mp_artist_booklet_album_item_del_cb;
-               }
-
-               double scale = elm_config_scale_get();
-               int w = (int)((MP_ALBUM_THUMB_ICON_SIZE + 33) * scale);
-               int h = (int)((MP_ALBUM_THUMB_ICON_SIZE + 97) * scale);
-               elm_gengrid_item_size_set(gengrid, w, h);
-               elm_gengrid_align_set(gengrid, 0.5, 0.0);
-
-               int i = 0;
-               for (i = 0; i < info_data->discography_count; i++) {
-                       SECURE_DEBUG("title = %s", info_data->discography[i].album_title);
-                       SECURE_DEBUG("path = %s", info_data->discography[i].thumbpath);
-                       SECURE_DEBUG("year = %s", info_data->discography[i].year);
-                       if (info_data->discography[i].album_title) {
-                               _mp_artist_booklet_append_album_item(gengrid, info_data->discography[i].album_title,
-                                                                    info_data->discography[i].year, info_data->discography[i].thumbpath, view->disco_itc);
-                       } else {
-                               DEBUG_TRACE("credits have error");
-                       }
-               }
-
-               view->disco_gengrid = gengrid;
-               _mp_aritst_booklet_view_gengrid_resize(view, view->disco_gengrid);
-       } else {
-               gengrid = mp_widget_create_no_contents(parent, MP_NOCONTENT_NORMAL, NULL, NULL);
-       }
-
-       return gengrid;
-}
-
-static Evas_Object *
-_mp_artist_booklet_view_1icon_content_get(void *data, Evas_Object *obj, const char *part)
-{
-       int type = (int)data;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)evas_object_data_get(obj, "view");
-       MP_CHECK_NULL(view);
-
-       Evas_Object *content = NULL;
-       if (type == ARTIST_BOOKLET_VIEW_DISCOGRAPHY) {
-               content = _mp_artist_booklet_view_gengrid_create(obj, view);
-       } else if (type == ARTIST_BOOKLET_VIEW_BIOGRAPHY) {
-               int w = 0;
-               evas_object_geometry_get(view->layout, NULL, NULL, &w, NULL);
-               content = mp_common_load_edj(obj, MP_EDJ_NAME, "biography_layout");
-               evas_object_size_hint_min_set(content, w, 0);
-               evas_object_size_hint_weight_set(content, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(content, EVAS_HINT_FILL, EVAS_HINT_FILL);
-
-               Evas_Object *image = mp_util_create_thumb_icon(content, view->info_data->artist_image, w, SCALED_SIZE(360));
-               elm_object_part_content_set(content, "image", image);
-
-               Evas_Object *label = mp_widget_rich_info_text_add(content, view->info_data->biography);
-               elm_object_part_content_set(content, "introduce", label);
-       }
-
-       return content;
-}
-
-static Evas_Object *
-_mp_artist_booklet_view_create_genlist(Evas_Object *parent)
-{
-       startfunc;
-       Evas_Object *genlist = NULL;
-       genlist = mp_widget_genlist_create(parent);
-       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_genlist_homogeneous_set(genlist, EINA_FALSE);
-
-       endfunc;
-       return genlist;
-}
-
-static void
-_mp_artist_booklet_gl_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
-{
-       MpArtistBookletView_t *view = data;
-       MP_CHECK(view);
-
-       int w, h;
-       evas_object_geometry_get(obj, NULL, NULL, &w, &h);
-       DEBUG_TRACE("genlist size = [%d x %d]", w, h);
-
-       if (view->genlist[ARTIST_BOOKLET_VIEW_DISCOGRAPHY] == obj && view->gengrid_item) {
-               /* gengrid */
-               elm_genlist_item_update(view->gengrid_item);
-       }
-}
-
-static Evas_Object *_mp_artist_booklet_create_content(Evas_Object *parent, MpArtistBookletView_t *view, int type)
-{
-       Evas_Object *genlist = NULL;
-       genlist = _mp_artist_booklet_view_create_genlist(parent);
-       MP_CHECK_NULL(genlist);
-       view->genlist[type] = genlist;
-       evas_object_data_set(genlist, "view", view);
-
-       evas_object_event_callback_add(genlist, EVAS_CALLBACK_RESIZE, _mp_artist_booklet_gl_resize_cb, view);
-
-       /* album info(index) */
-       Elm_Object_Item *item = elm_genlist_item_append(genlist, view->info_itc, (void *)type, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
-       elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-
-       /* title */
-       item = elm_genlist_item_append(genlist, view->title_itc, (void *)type, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
-       elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-
-       /* content */
-       view->gengrid_item = elm_genlist_item_append(genlist, view->content_itc, (void *)type, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
-       return genlist;
-}
-
-static Evas_Object *_mp_aritst_booklet_create_biograpy(Evas_Object *parent, MpArtistBookletView_t *view)
-{
-       MP_CHECK_NULL(parent);
-       MP_CHECK_NULL(view);
-
-       Evas_Object *scroller = elm_scroller_add(parent);
-       elm_scroller_bounce_set(scroller, EINA_FALSE, EINA_TRUE);
-       elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
-
-       Evas_Object *box = elm_box_add(scroller);
-       evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_data_set(box, "view", view);
-       elm_object_content_set(scroller, box);
-
-       char *text = NULL;
-       Evas_Object *icon = NULL;
-       /* index */
-       Evas_Object *info = mp_common_load_edj(box, THEME_NAME, "elm/genlist/item/music_player/artist_index/default");
-       evas_object_size_hint_weight_set(info, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(info, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_data_set(info, "view", view);
-       text = _mp_artist_booklet_view_artist_index_text_get((void *)ARTIST_BOOKLET_VIEW_BIOGRAPHY, info, "elm.text.1");
-       elm_object_part_text_set(info, "elm.text.1", text);
-       IF_FREE(text);
-       text = _mp_artist_booklet_view_artist_index_text_get((void *)ARTIST_BOOKLET_VIEW_BIOGRAPHY, info, "elm.text.2");
-       elm_object_part_text_set(info, "elm.text.2", text);
-       IF_FREE(text);
-       icon = _mp_artist_booklet_view_artist_index_content_get((void *)ARTIST_BOOKLET_VIEW_BIOGRAPHY, info, "elm.icon");
-       elm_object_part_content_set(info, "elm.icon", icon);
-       elm_box_pack_end(box, info);
-
-       /* title */
-       Evas_Object *title = mp_common_load_edj(box, THEME_NAME, "elm/genlist/item/music_player/rich_info/page_title/default");
-       evas_object_size_hint_weight_set(title, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(title, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_data_set(title, "view", view);
-       text = _mp_artist_booklet_view_title_text_get((void *)ARTIST_BOOKLET_VIEW_BIOGRAPHY, title, "elm.text");
-       elm_object_part_text_set(title, "elm.text", text);
-       IF_FREE(text);
-       icon = _mp_artist_booklet_view_title_content_get((void *)ARTIST_BOOKLET_VIEW_BIOGRAPHY, title, "elm.icon");
-       elm_object_part_content_set(title, "elm.icon", icon);
-       elm_box_pack_end(box, title);
-
-       /* content */
-       Evas_Object *biography = _mp_artist_booklet_view_1icon_content_get((void *)ARTIST_BOOKLET_VIEW_BIOGRAPHY, box, "elm.icon");
-       evas_object_size_hint_weight_set(biography, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
-       evas_object_size_hint_align_set(biography, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_box_pack_end(box, biography);
-
-       return scroller;
-}
-
-
-static void _mp_artist_booklet_view_content_load(void *thiz)
-{
-       startfunc;
-       MpArtistBookletView_t *view = (MpArtistBookletView_t *)thiz;
-       MP_CHECK(view);
-
-       /*set itc*/
-       if (!view->info_itc) {
-               view->info_itc = elm_genlist_item_class_new();
-               view->info_itc->item_style = "music_player/artist_index";
-               view->info_itc->func.text_get = _mp_artist_booklet_view_artist_index_text_get;
-               view->info_itc->func.content_get = _mp_artist_booklet_view_artist_index_content_get;
-               view->info_itc->func.del = NULL;
-       }
-
-       if (!view->title_itc) {
-               view->title_itc = elm_genlist_item_class_new();
-               view->title_itc->item_style = "music_player/rich_info/page_title";
-               view->title_itc->func.text_get = _mp_artist_booklet_view_title_text_get;
-               view->title_itc->func.content_get = _mp_artist_booklet_view_title_content_get;
-               view->title_itc->func.del = NULL;
-       }
-
-       if (!view->content_itc) {
-               view->content_itc = elm_genlist_item_class_new();
-               view->content_itc->item_style = "1icon";
-               view->content_itc->func.text_get = NULL;
-               view->content_itc->func.content_get = _mp_artist_booklet_view_1icon_content_get;
-               view->content_itc->func.del = NULL;
-       }
-
-       /*scroll page*/
-       Evas_Object *scroll_page = mp_scroll_page_add(view->layout);
-       mp_scroll_page_hide_scroll_bar(scroll_page);
-
-       /* calc page total becasue of title index */
-       if (view->info_data->discography_count > 0) {
-               ++view->page_count;
-       }
-       if (view->info_data->biography) {
-               ++view->page_count;
-       }
-
-       Evas_Object *page = NULL;
-       int page_count = 0;
-
-       if (view->info_data->discography_count > 0) {
-               view->page_index[ARTIST_BOOKLET_VIEW_DISCOGRAPHY] = page_count;
-               page = _mp_artist_booklet_create_content(scroll_page, view, ARTIST_BOOKLET_VIEW_DISCOGRAPHY);
-               evas_object_show(page);
-               mp_scroll_page_content_append(scroll_page, page);
-               page_count++;
-       }
-
-       if (view->info_data->biography) {
-               view->page_index[ARTIST_BOOKLET_VIEW_BIOGRAPHY] = page_count;
-               page = _mp_aritst_booklet_create_biograpy(scroll_page, view);
-               evas_object_show(page);
-               mp_scroll_page_content_append(scroll_page, page);
-               page_count++;
-       }
-       /*similar artist is not exist*/
-
-       elm_object_part_content_set(view->layout, "list_content", scroll_page);
-
-}
-
-static int
-_mp_artist_booklet_view_init(Evas_Object *parent, MpArtistBookletView_t *view)
-{
-       startfunc;
-       int ret = 0;
-       ret =  mp_view_init(parent, (MpView_t *)view, MP_VIEW_ALBUM_BOOKLET);
-       MP_CHECK_VAL(ret == 0, -1);
-
-       view->update = _mp_artist_booklet_view_update;
-       view->update_options = _mp_artist_booklet_view_update_options;
-       view->update_options_edit = NULL;
-       view->view_destroy_cb = _mp_artist_booklet_view_destory_cb;
-
-       return ret;
-}
-
-MpArtistBookletView_t *mp_artist_booklet_view_create(Evas_Object *parent, mp_info_data_t *info_data, char *album, char *artist, char *thumbnail)
-{
-       eventfunc;
-       int ret;
-       MP_CHECK_NULL(parent);
-
-       MpArtistBookletView_t *view = calloc(1, sizeof(MpArtistBookletView_t));
-       MP_CHECK_NULL(view);
-
-       ret = _mp_artist_booklet_view_init(parent, view);
-       if (ret) {
-               goto Error;
-       }
-
-       IF_G_FREE(view->name);
-       IF_G_FREE(view->artist);
-       IF_G_FREE(view->thumbnail);
-       view->info_data = info_data;
-       view->name = g_strdup(album);
-       view->artist = g_strdup(artist);
-       view->thumbnail = g_strdup(thumbnail);
-
-       _mp_artist_booklet_view_content_load(view);
-       return view;
-
-Error:
-       ERROR_TRACE("Error: mp_artist_booklet_view_create()");
-       IF_FREE(view);
-       return NULL;
-}
-
-
-
diff --git a/src/view/mp-main-view.c b/src/view/mp-main-view.c
deleted file mode 100644 (file)
index 7470594..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "mp-main-view.h"
-#include "mp-player-view.h"
-#include "mp-all-view.h"
-#include "mp-util.h"
-#include "mp-player-control.h"
-#include "mp-widget.h"
-#include "mp-http-mgr.h"
-#include "mp-player-mgr.h"
-#include "music.h"
-#include "mp-common.h"
-
-#define ACTIVE_VIEW mp_common_get_scroll_view(GET_VIEW_MGR)
-
-int _mp_main_view_update_options(void *thiz);
index a4fec3f..ca7120b 100644 (file)
@@ -40,9 +40,6 @@ static void _mp_view_show_now_playing(void *thiz, int show);
 static int _mp_view_set_title(void *thiz, char *text_id)
 {
        startfunc;
-#ifdef MP_CREATE_FAKE_IMAGE
-       return 0;
-#endif
        MpView_t *view = thiz;
        MP_CHECK_VAL(view, -1);
 
index bb2e487..1208f8c 100644 (file)
@@ -2325,9 +2325,6 @@ static void _realized_cb(void *data, Evas_Object *obj, void *event_info)
 
 static void _mp_all_list_create_genlist(Evas_Object *parent, MpAllList_t *list)
 {
-#ifdef MP_CREATE_FAKE_IMAGE
-       return ;
-#endif
        PROFILE_IN("elm_genlist_add");
        list->genlist = mp_widget_genlist_create(list->box);
        elm_scroller_policy_set(list->genlist, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
@@ -2361,9 +2358,6 @@ static void _mp_all_list_create_genlist(Evas_Object *parent, MpAllList_t *list)
 
 static void _append_shortcut(MpAllList_t *list)
 {
-#ifdef MP_CREATE_FAKE_IMAGE
-       return ;
-#endif
        startfunc;
        list->shortcut_it = elm_genlist_item_prepend(list->genlist, list->itc_icon, (void *)MP_ALL_LIST_SHORTCUT, NULL,
                            ELM_GENLIST_ITEM_NONE, NULL, list);
@@ -2372,9 +2366,6 @@ static void _append_shortcut(MpAllList_t *list)
 
 static void _append_tabbar(MpAllList_t *list)
 {
-#ifdef MP_CREATE_FAKE_IMAGE
-       return ;
-#endif
        startfunc;
        list->tabbar_it = elm_genlist_item_append(list->genlist, list->itc_icon, (void *)MP_ALL_LIST_TABBAR, NULL,
                          ELM_GENLIST_ITEM_NONE, NULL, list);