Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bada/Maps
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2010-12-05 19:24:16 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-22 22:33:57 +0300
commitd6e12b7ce4bcbf0ccd1c07eb25de143422913c34 (patch)
treea7e910c330ce4da9b4f2d8be76067adece2561c4 /bada/Maps
One Month In Minsk. Made in Belarus.
Diffstat (limited to 'bada/Maps')
-rw-r--r--bada/Maps/.badaprj17
-rw-r--r--bada/Maps/.cproject1313
-rw-r--r--bada/Maps/.project83
-rw-r--r--bada/Maps/Icons/maps_menu.pngbin0 -> 15301 bytes
-rw-r--r--bada/Maps/Inc/download_form.h58
-rw-r--r--bada/Maps/Inc/maps_control.h51
-rw-r--r--bada/Maps/Inc/maps_form.h88
-rw-r--r--bada/Maps/Inc/maps_gl.h53
-rw-r--r--bada/Maps/Inc/render_context.hpp38
-rw-r--r--bada/Maps/Inc/window_handle.hpp16
-rw-r--r--bada/Maps/Src/bada_platform.cpp107
-rw-r--r--bada/Maps/Src/download_form.cpp329
-rw-r--r--bada/Maps/Src/maps_control.cpp132
-rw-r--r--bada/Maps/Src/maps_entry.cpp43
-rw-r--r--bada/Maps/Src/maps_form.cpp298
-rw-r--r--bada/Maps/Src/maps_gl.cpp54
-rw-r--r--bada/Maps/Src/render_context.cpp175
-rw-r--r--bada/Maps/Src/window_handle.cpp21
-rw-r--r--bada/Maps/application.xml19
-rw-r--r--bada/Maps/manifest.xml32
20 files changed, 2927 insertions, 0 deletions
diff --git a/bada/Maps/.badaprj b/bada/Maps/.badaprj
new file mode 100644
index 0000000000..3bd279f54c
--- /dev/null
+++ b/bada/Maps/.badaprj
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<bada>
+ <type>0</type>
+ <sdk>C:\bada\1.0.0</sdk>
+ <model>Wave_LP1</model>
+ <properties>
+ <data0 key="PT CmdArgs Target-Release" value=""/>
+ <data1 key="PT CertFile Simulator-Debug" value="${project_loc}\.Simulator-Debug\cert.cer"/>
+ <data2 key="PT Output Simulator-Debug" value="${project_loc}\.Simulator-Debug"/>
+ <data3 key="PT CertFile Target-Release" value="${project_loc}\.Target-Release\cert.cer"/>
+ <data4 key="PT CertFile Target-Debug" value="${project_loc}\.Target-Debug\cert.cer"/>
+ <data5 key="PT CmdArgs Target-Debug" value=""/>
+ <data6 key="PT CmdArgs Simulator-Debug" value=""/>
+ <data7 key="PT Output Target-Release" value="${project_loc}\.Target-Release"/>
+ <data8 key="PT Output Target-Debug" value="${project_loc}\.Target-Debug"/>
+ </properties>
+</bada>
diff --git a/bada/Maps/.cproject b/bada/Maps/.cproject
new file mode 100644
index 0000000000..a48ff88d88
--- /dev/null
+++ b/bada/Maps/.cproject
@@ -0,0 +1,1313 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+<storageModule moduleId="org.eclipse.cdt.core.settings">
+<cconfiguration id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215">
+<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
+<externalSettings>
+<externalSetting>
+<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Maps"/>
+<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Maps/.Simulator-Debug"/>
+</externalSetting>
+</externalSettings>
+<extensions>
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.Cygwin_PE" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+</extensions>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<configuration artifactExtension="exe" artifactName="MapsWithMe" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215" name="Simulator-Debug" parent="cdt.managedbuild.config.osp.gnu.arm.exe.simul">
+<folderInfo id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215." name="/" resourcePath="">
+<toolChain id="cdt.managedbuild.toolchain.osp.gnu.arm.exe.simul.447090744" name="bada GCC ToolChain" superClass="cdt.managedbuild.toolchain.osp.gnu.arm.exe.simul">
+<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.Cygwin_PE;org.eclipse.cdt.core.GNU_ELF;org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.osp.gnu.simul.platform.exe.simul.1606387809" name="Debug Platform" osList="osp" superClass="cdt.managedbuild.target.osp.gnu.simul.platform.exe.simul"/>
+<builder buildPath="${workspace_loc:/Maps/.Simulator-Debug}" command="cs-make" id="cdt.managedbuild.target.osp.gnu.simul.builder.exe.simul.134158093" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="bada Builder" superClass="cdt.managedbuild.target.osp.gnu.simul.builder.exe.simul"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.arm.archiver.base.1467408333" name="bada Archiver" superClass="cdt.managedbuild.tool.osp.gnu.arm.archiver.base"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul.575258473" name="bada C++ Compiler" superClass="cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul">
+<option id="osp.gnu.cpp.compiler.simual.exe.option.include.paths.381031984" name="Include paths (-I)" superClass="osp.gnu.cpp.compiler.simual.exe.option.include.paths" valueType="includePath">
+<listOptionValue builtIn="false" value="&quot;${SDKROOT}/include&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/../../3party/boost&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/inc&quot;"/>
+</option>
+<option id="osp.gnu.cpp.compiler.simual.exe.option.preprocessor.def.800143645" name="Defined symbols (-D)" superClass="osp.gnu.cpp.compiler.simual.exe.option.preprocessor.def" valueType="definedSymbols">
+<listOptionValue builtIn="false" value="_BADA_SIMULATOR"/>
+<listOptionValue builtIn="false" value="_DEBUG"/>
+<listOptionValue builtIn="false" value="SHP"/>
+<listOptionValue builtIn="false" value="BUILD_DLL"/>
+</option>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.232688132" superClass="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul.489471817" name="bada C Compiler" superClass="cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul">
+<inputType id="cdt.managedbuild.tool.osp.gnu.c.compiler.input.1197615431" superClass="cdt.managedbuild.tool.osp.gnu.c.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.c.linker.exe.simul.932792079" name="bada C Linker" superClass="cdt.managedbuild.tool.osp.gnu.simul.c.linker.exe.simul"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.cpp.linker.exe.simul.1680764699" name="bada C++ Linker" superClass="cdt.managedbuild.tool.osp.gnu.simul.cpp.linker.exe.simul">
+<option id="osp.gnu.cpp.link.simual.debug.option.libs.1483413159" name="Libraries (-l)" superClass="osp.gnu.cpp.link.simual.debug.option.libs" valueType="libs">
+<listOptionValue builtIn="false" value="osp_rt0"/>
+<listOptionValue builtIn="false" value="map"/>
+<listOptionValue builtIn="false" value="networking"/>
+<listOptionValue builtIn="false" value="indexer"/>
+<listOptionValue builtIn="false" value="yg"/>
+<listOptionValue builtIn="false" value="geometry"/>
+<listOptionValue builtIn="false" value="coding"/>
+<listOptionValue builtIn="false" value="base"/>
+<listOptionValue builtIn="false" value="expat"/>
+<listOptionValue builtIn="false" value="libc-newlib"/>
+<listOptionValue builtIn="false" value="FGraphicsOpengl"/>
+<listOptionValue builtIn="false" value="FGraphicsEgl"/>
+<listOptionValue builtIn="false" value="FOsp"/>
+</option>
+<option id="osp.gnu.cpp.link.simual.debug.option.libs.paths.200494359" name="Library search path (-L)" superClass="osp.gnu.cpp.link.simual.debug.option.libs.paths" valueType="libPaths">
+<listOptionValue builtIn="false" value="&quot;${SIMULATOR_LIB_PATH}&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${SDKROOT}/Lib&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/lib&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/../../../omim-build-bada-simulator/out/debug&quot;"/>
+</option>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.linker.input.183016734" superClass="cdt.managedbuild.tool.osp.gnu.cpp.linker.input">
+<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+<additionalInput kind="additionalinput" paths="$(LIBS)"/>
+</inputType>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.assembler.exe.simul.907703134" name="bada Assembler" superClass="cdt.managedbuild.tool.osp.gnu.simul.assembler.exe.simul">
+<inputType id="cdt.managedbuild.tool.osp.gnu.assembler.input.1842235904" superClass="cdt.managedbuild.tool.osp.gnu.assembler.input"/>
+</tool>
+</toolChain>
+</folderInfo>
+<sourceEntries>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc"/>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src"/>
+</sourceEntries>
+</configuration>
+</storageModule>
+<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+<storageModule moduleId="scannerConfiguration">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul.575258473;cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.232688132">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul.489471817;cdt.managedbuild.tool.osp.gnu.c.compiler.input.1197615431">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+</storageModule>
+</cconfiguration>
+<cconfiguration id="cdt.managedbuild.config.osp.gnu.target.exe.debug.670374015">
+<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.osp.gnu.target.exe.debug.670374015" moduleId="org.eclipse.cdt.core.settings" name="Target-Debug">
+<externalSettings>
+<externalSetting>
+<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Maps"/>
+<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Maps/.Target-Debug"/>
+</externalSetting>
+</externalSettings>
+<extensions>
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.Cygwin_PE" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+</extensions>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<configuration artifactExtension="exe" artifactName="MapsWithMe" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.osp.gnu.target.exe.debug.670374015" name="Target-Debug" parent="cdt.managedbuild.config.osp.gnu.target.exe.debug">
+<folderInfo id="cdt.managedbuild.config.osp.gnu.target.exe.debug.670374015." name="/" resourcePath="">
+<toolChain id="cdt.managedbuild.toolchain.osp.gnu.target.exe.debug.1863124778" name="bada GCC ToolChain" superClass="cdt.managedbuild.toolchain.osp.gnu.target.exe.debug">
+<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.Cygwin_PE;org.eclipse.cdt.core.GNU_ELF;org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.osp.gnu.target.platform.exe.debug.658099688" name="Debug Platform" osList="osp" superClass="cdt.managedbuild.target.osp.gnu.target.platform.exe.debug"/>
+<builder buildPath="${workspace_loc:/Maps/.Target-Debug}" command="cs-make" id="cdt.managedbuild.target.osp.gnu.target.builder.exe.debug.2044976135" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="bada Builder" superClass="cdt.managedbuild.target.osp.gnu.target.builder.exe.debug"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.arm.archiver.base.390674254" name="bada Archiver" superClass="cdt.managedbuild.tool.osp.gnu.arm.archiver.base"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.cpp.compiler.exe.debug.1356019888" name="bada C++ Compiler" superClass="cdt.managedbuild.tool.osp.gnu.target.cpp.compiler.exe.debug">
+<option id="osp.gnu.target.cpp.compiler.debug.exe.option.include.paths.392056399" name="Include paths (-I)" superClass="osp.gnu.target.cpp.compiler.debug.exe.option.include.paths" valueType="includePath">
+<listOptionValue builtIn="false" value="&quot;${SDKROOT}/include&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/inc&quot;"/>
+</option>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.451030396" superClass="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.c.compiler.exe.debug.1740665724" name="bada C Compiler" superClass="cdt.managedbuild.tool.osp.gnu.target.c.compiler.exe.debug">
+<inputType id="cdt.managedbuild.tool.osp.gnu.c.compiler.input.1147088778" superClass="cdt.managedbuild.tool.osp.gnu.c.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.c.linker.exe.debug.1661709673" name="bada C Linker" superClass="cdt.managedbuild.tool.osp.gnu.target.c.linker.exe.debug"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.cpp.linker.exe.debug.1525821609" name="bada C++ Linker" superClass="cdt.managedbuild.tool.osp.gnu.target.cpp.linker.exe.debug">
+<option id="osp.gnu.target.cpp.link.debug.exe.option.userobjs.1439223875" name="Other objects" superClass="osp.gnu.target.cpp.link.debug.exe.option.userobjs" valueType="userObjs">
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/osp_rt0.a&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/libc-newlib.so&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/libm-newlib.so&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/FOsp.so&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/StubDynCast.so&quot;"/>
+</option>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.linker.input.1781121050" superClass="cdt.managedbuild.tool.osp.gnu.cpp.linker.input">
+<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+<additionalInput kind="additionalinput" paths="$(LIBS)"/>
+</inputType>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.assembler.exe.debug.389945288" name="bada Assembler" superClass="cdt.managedbuild.tool.osp.gnu.target.assembler.exe.debug">
+<inputType id="cdt.managedbuild.tool.osp.gnu.assembler.input.1097310864" superClass="cdt.managedbuild.tool.osp.gnu.assembler.input"/>
+</tool>
+</toolChain>
+</folderInfo>
+<sourceEntries>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc"/>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src"/>
+</sourceEntries>
+</configuration>
+</storageModule>
+<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+<storageModule moduleId="scannerConfiguration">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul.575258473;cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.232688132">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul.489471817;cdt.managedbuild.tool.osp.gnu.c.compiler.input.1197615431">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+</storageModule>
+</cconfiguration>
+<cconfiguration id="cdt.managedbuild.config.osp.gnu.target.exe.release.1061380904">
+<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.osp.gnu.target.exe.release.1061380904" moduleId="org.eclipse.cdt.core.settings" name="Target-Release">
+<externalSettings>
+<externalSetting>
+<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Maps"/>
+<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Maps/.Target-Release"/>
+</externalSetting>
+</externalSettings>
+<extensions>
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.Cygwin_PE" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+</extensions>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<configuration artifactExtension="exe" artifactName="MapsWithMe" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.osp.gnu.target.exe.release.1061380904" name="Target-Release" parent="cdt.managedbuild.config.osp.gnu.target.exe.release">
+<folderInfo id="cdt.managedbuild.config.osp.gnu.target.exe.release.1061380904." name="/" resourcePath="">
+<toolChain id="cdt.managedbuild.toolchain.osp.gnu.target.target.exe.release.342988038" name="bada GCC ToolChain" superClass="cdt.managedbuild.toolchain.osp.gnu.target.target.exe.release">
+<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.Cygwin_PE;org.eclipse.cdt.core.GNU_ELF;org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.osp.gnu.target.platform.exe.release.1796526571" name="Release Platform" osList="osp" superClass="cdt.managedbuild.target.osp.gnu.target.platform.exe.release"/>
+<builder buildPath="${workspace_loc:/Maps/.Target-Release}" command="cs-make" id="cdt.managedbuild.target.osp.gnu.target.builder.exe.release.135605909" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="bada Builder" superClass="cdt.managedbuild.target.osp.gnu.target.builder.exe.release"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.arm.archiver.base.20499066" name="bada Archiver" superClass="cdt.managedbuild.tool.osp.gnu.arm.archiver.base"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.cpp.compiler.exe.release.1686426671" name="bada C++ Compiler" superClass="cdt.managedbuild.tool.osp.gnu.target.cpp.compiler.exe.release">
+<option id="osp.gnu.target.cpp.compiler.release.exe.option.include.paths.1256973758" name="Include paths (-I)" superClass="osp.gnu.target.cpp.compiler.release.exe.option.include.paths" valueType="includePath">
+<listOptionValue builtIn="false" value="&quot;${SDKROOT}/include&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/inc&quot;"/>
+</option>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.1972320929" superClass="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.c.compiler.exe.release.316948178" name="bada C Compiler" superClass="cdt.managedbuild.tool.osp.gnu.target.c.compiler.exe.release">
+<inputType id="cdt.managedbuild.tool.osp.gnu.c.compiler.input.95329493" superClass="cdt.managedbuild.tool.osp.gnu.c.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.c.linker.exe.release.39377438" name="bada C Linker" superClass="cdt.managedbuild.tool.osp.gnu.target.c.linker.exe.release"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.cpp.linker.exe.release.1789863131" name="bada C++ Linker" superClass="cdt.managedbuild.tool.osp.gnu.target.cpp.linker.exe.release">
+<option id="osp.gnu.target.cpp.link.release.exe.option.userobjs.1953277524" name="Other objects" superClass="osp.gnu.target.cpp.link.release.exe.option.userobjs" valueType="userObjs">
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/osp_rt0.a&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/libc-newlib.so&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/libm-newlib.so&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/FOsp.so&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${TARGET_LIB_PATH}/StubDynCast.so&quot;"/>
+</option>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.linker.input.161117028" superClass="cdt.managedbuild.tool.osp.gnu.cpp.linker.input">
+<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+<additionalInput kind="additionalinput" paths="$(LIBS)"/>
+</inputType>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.target.assembler.exe.release.1715856055" name="bada Assembler" superClass="cdt.managedbuild.tool.osp.gnu.target.assembler.exe.release">
+<inputType id="cdt.managedbuild.tool.osp.gnu.assembler.input.669232172" superClass="cdt.managedbuild.tool.osp.gnu.assembler.input"/>
+</tool>
+</toolChain>
+</folderInfo>
+<sourceEntries>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc"/>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src"/>
+</sourceEntries>
+</configuration>
+</storageModule>
+<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+<storageModule moduleId="scannerConfiguration">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul.575258473;cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.232688132">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul.489471817;cdt.managedbuild.tool.osp.gnu.c.compiler.input.1197615431">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+</storageModule>
+</cconfiguration>
+<cconfiguration id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.689764240">
+<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.689764240" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Release">
+<externalSettings>
+<externalSetting>
+<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Maps"/>
+<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Maps/.Simulator-Release"/>
+</externalSetting>
+</externalSettings>
+<extensions>
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.Cygwin_PE" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+</extensions>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<configuration artifactExtension="exe" artifactName="MapsWithMe" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.689764240" name="Simulator-Release" parent="cdt.managedbuild.config.osp.gnu.arm.exe.simul">
+<folderInfo id="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.689764240." name="/" resourcePath="">
+<toolChain id="cdt.managedbuild.toolchain.osp.gnu.arm.exe.simul.738521772" name="bada GCC ToolChain" superClass="cdt.managedbuild.toolchain.osp.gnu.arm.exe.simul">
+<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.Cygwin_PE;org.eclipse.cdt.core.GNU_ELF;org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.osp.gnu.simul.platform.exe.simul.1749053699" name="Debug Platform" osList="osp" superClass="cdt.managedbuild.target.osp.gnu.simul.platform.exe.simul"/>
+<builder buildPath="${workspace_loc:/Maps/.Simulator-Debug}" command="cs-make" id="cdt.managedbuild.target.osp.gnu.simul.builder.exe.simul.1118454649" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="bada Builder" superClass="cdt.managedbuild.target.osp.gnu.simul.builder.exe.simul"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.arm.archiver.base.1143728594" name="bada Archiver" superClass="cdt.managedbuild.tool.osp.gnu.arm.archiver.base"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul.252334398" name="bada C++ Compiler" superClass="cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul">
+<option id="osp.gnu.cpp.compiler.simual.exe.option.include.paths.175104631" name="Include paths (-I)" superClass="osp.gnu.cpp.compiler.simual.exe.option.include.paths" valueType="includePath">
+<listOptionValue builtIn="false" value="&quot;${SDKROOT}/include&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/../../3party/boost&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/inc&quot;"/>
+</option>
+<option id="osp.gnu.cpp.compiler.simual.exe.option.preprocessor.def.533787088" name="Defined symbols (-D)" superClass="osp.gnu.cpp.compiler.simual.exe.option.preprocessor.def" valueType="definedSymbols">
+<listOptionValue builtIn="false" value="_BADA_SIMULATOR"/>
+<listOptionValue builtIn="false" value="_RELEASE"/>
+<listOptionValue builtIn="false" value="SHP"/>
+<listOptionValue builtIn="false" value="BUILD_DLL"/>
+</option>
+<option id="osp.gnu.simul.cpp.compiler.exe.simul.option.debugging.level.815665420" name="Debug Level" superClass="osp.gnu.simul.cpp.compiler.exe.simul.option.debugging.level" value="osp.gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.237919577" superClass="cdt.managedbuild.tool.osp.gnu.cpp.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul.1103898379" name="bada C Compiler" superClass="cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul">
+<option id="osp.gnu.c.compiler.simual.exe.option.preprocessor.def.1778233322" name="Defined symbols (-D)" superClass="osp.gnu.c.compiler.simual.exe.option.preprocessor.def" valueType="definedSymbols">
+<listOptionValue builtIn="false" value="_BADA_SIMULATOR"/>
+<listOptionValue builtIn="false" value="_RELEASE"/>
+<listOptionValue builtIn="false" value="SHP"/>
+<listOptionValue builtIn="false" value="BUILD_DLL"/>
+</option>
+<option id="osp.gnu.simul.c.compiler.exe.simul.option.debugging.level.627884136" name="Debug Level" superClass="osp.gnu.simul.c.compiler.exe.simul.option.debugging.level" value="osp.gnu.c.debugging.level.none" valueType="enumerated"/>
+<inputType id="cdt.managedbuild.tool.osp.gnu.c.compiler.input.831044872" superClass="cdt.managedbuild.tool.osp.gnu.c.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.c.linker.exe.simul.1776617727" name="bada C Linker" superClass="cdt.managedbuild.tool.osp.gnu.simul.c.linker.exe.simul"/>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.cpp.linker.exe.simul.471764796" name="bada C++ Linker" superClass="cdt.managedbuild.tool.osp.gnu.simul.cpp.linker.exe.simul">
+<option id="osp.gnu.cpp.link.simual.debug.option.libs.1217553685" name="Libraries (-l)" superClass="osp.gnu.cpp.link.simual.debug.option.libs" valueType="libs">
+<listOptionValue builtIn="false" value="osp_rt0"/>
+<listOptionValue builtIn="false" value="map"/>
+<listOptionValue builtIn="false" value="networking"/>
+<listOptionValue builtIn="false" value="indexer"/>
+<listOptionValue builtIn="false" value="yg"/>
+<listOptionValue builtIn="false" value="geometry"/>
+<listOptionValue builtIn="false" value="coding"/>
+<listOptionValue builtIn="false" value="base"/>
+<listOptionValue builtIn="false" value="expat"/>
+<listOptionValue builtIn="false" value="libc-newlib"/>
+<listOptionValue builtIn="false" value="FGraphicsOpengl"/>
+<listOptionValue builtIn="false" value="FGraphicsEgl"/>
+<listOptionValue builtIn="false" value="FOsp"/>
+</option>
+<option id="osp.gnu.cpp.link.simual.debug.option.libs.paths.1739214404" name="Library search path (-L)" superClass="osp.gnu.cpp.link.simual.debug.option.libs.paths" valueType="libPaths">
+<listOptionValue builtIn="false" value="&quot;${SIMULATOR_LIB_PATH}&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${SDKROOT}/Lib&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/lib&quot;"/>
+<listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/../../../omim-build-bada-simulator-release/out/release&quot;"/>
+</option>
+<option id="osp.gnu.cpp.link.option.strip.1914300056" name="Omit all symbol information (-s)" superClass="osp.gnu.cpp.link.option.strip" value="true" valueType="boolean"/>
+<inputType id="cdt.managedbuild.tool.osp.gnu.cpp.linker.input.46640186" superClass="cdt.managedbuild.tool.osp.gnu.cpp.linker.input">
+<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+<additionalInput kind="additionalinput" paths="$(LIBS)"/>
+</inputType>
+</tool>
+<tool id="cdt.managedbuild.tool.osp.gnu.simul.assembler.exe.simul.169852046" name="bada Assembler" superClass="cdt.managedbuild.tool.osp.gnu.simul.assembler.exe.simul">
+<inputType id="cdt.managedbuild.tool.osp.gnu.assembler.input.1540753040" superClass="cdt.managedbuild.tool.osp.gnu.assembler.input"/>
+</tool>
+</toolChain>
+</folderInfo>
+<sourceEntries>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc"/>
+<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src"/>
+</sourceEntries>
+</configuration>
+</storageModule>
+<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+<storageModule moduleId="scannerConfiguration">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.cpp.compiler.exe.simul.575258473;cdt.managedbuild.tool.osp.gnu.cpp.compiler.input.232688132">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215;cdt.managedbuild.config.osp.gnu.arm.exe.simul.875981215.;cdt.managedbuild.tool.osp.gnu.simul.c.compiler.exe.simul.489471817;cdt.managedbuild.tool.osp.gnu.c.compiler.input.1197615431">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</scannerConfigBuildInfo>
+</storageModule>
+</cconfiguration>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<project id="Maps.cdt.managedbuild.target.osp.gnu.arm.exe.1764938332" name="Executable" projectType="cdt.managedbuild.target.osp.gnu.arm.exe"/>
+</storageModule>
+</cproject>
diff --git a/bada/Maps/.project b/bada/Maps/.project
new file mode 100644
index 0000000000..79a89d515d
--- /dev/null
+++ b/bada/Maps/.project
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Maps</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.osp.ide.ospmakebuilder</name>
+ <triggers>clean,full,incremental,</triggers>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>cs-make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildLocation</key>
+ <value>${workspace_loc:/Maps/.Simulator-Debug}</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>false</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>false</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ <nature>com.osp.ide.badaNature</nature>
+ </natures>
+</projectDescription>
diff --git a/bada/Maps/Icons/maps_menu.png b/bada/Maps/Icons/maps_menu.png
new file mode 100644
index 0000000000..1e66dd6895
--- /dev/null
+++ b/bada/Maps/Icons/maps_menu.png
Binary files differ
diff --git a/bada/Maps/Inc/download_form.h b/bada/Maps/Inc/download_form.h
new file mode 100644
index 0000000000..93ccbb0434
--- /dev/null
+++ b/bada/Maps/Inc/download_form.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include <FUi.h>
+
+class MapsGl;
+
+class DownloadForm : public Osp::Ui::Controls::Form,
+ public Osp::Ui::IGroupedItemEventListener,
+ public Osp::Ui::IActionEventListener
+// public Osp::Ui::IFastScrollEventListener
+{
+ static const int ID_BACK_SOFTKEY = 100;
+
+ MapsGl & m_mapsGl;
+
+public:
+ static const RequestId REQUEST_MAINFORM = 100;
+
+ DownloadForm(MapsGl & mapsGl);
+ virtual ~DownloadForm(void);
+
+ bool Initialize(void);
+
+protected:
+
+ static const int ID_FORMAT_STRING = 501;
+ static const int ID_CUSTOMLIST_ITEM1 = 503;
+ static const int ID_CUSTOMLIST_ITEM2 = 504;
+ static const int ID_CUSTOMLIST_ITEM3 = 505;
+ static const int ID_CUSTOMLIST_ITEM4 = 506;
+ static const int ID_CUSTOMLIST_ITEM5 = 507;
+
+ result ReFillList(Osp::Ui::Controls::GroupedList & list);
+ result ShowCountryAndClose(int groupIndex, int itemIndex);
+
+ // Osp::Ui::Controls::Label* __pLabelLog;
+ Osp::Ui::Controls::CustomListItemFormat* __pItemFormat;
+ Osp::Ui::Controls::GroupedList* __pGroupedList;
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+
+ virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
+
+ virtual void OnItemStateChanged(const Osp::Ui::Control &source,
+ int groupIndex, int itemIndex, int itemId, int elementId,
+ Osp::Ui::ItemStatus status);
+ virtual void OnItemStateChanged(const Osp::Ui::Control &source,
+ int groupIndex, int itemIndex, int itemId, Osp::Ui::ItemStatus status);
+// virtual void OnMainIndexChanged(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex);
+// virtual void OnSubIndexChanged(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex, Osp::Base::Character &subIndex);
+// virtual void OnMainIndexSelected(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex);
+// virtual void OnSubIndexSelected(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex, Osp::Base::Character &subIndex);
+};
diff --git a/bada/Maps/Inc/maps_control.h b/bada/Maps/Inc/maps_control.h
new file mode 100644
index 0000000000..04c9e56701
--- /dev/null
+++ b/bada/Maps/Inc/maps_control.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FApp.h>
+#include <FUiControls.h>
+#include <FSystem.h>
+
+class MapsGl;
+
+class MapsControl: public Osp::App::Application,
+ public Osp::System::IScreenEventListener
+{
+ MapsGl * __glWrapper;
+
+public:
+ // The application must have a factory method that creates an instance of the application.
+ static Osp::App::Application* CreateInstance(void);
+
+public:
+ MapsControl();
+ ~MapsControl();
+
+public:
+ // This method is called when the application is on initializing.
+ bool OnAppInitializing(Osp::App::AppRegistry& appRegistry);
+
+ // This method is called when the application is on terminating.
+ bool OnAppTerminating(Osp::App::AppRegistry& appRegistry,
+ bool forcedTermination = false);
+
+ // This method is called when the application is brought to the foreground
+ void OnForeground(void);
+
+ // This method is called when the application is sent to the background.
+ void OnBackground(void);
+
+ // This method is called when the application has little available memory.
+ void OnLowMemory(void);
+
+ // This method is called when the device's battery level is changed.
+ void OnBatteryLevelChanged(Osp::System::BatteryLevel batteryLevel);
+
+ // Called when the screen turns on.
+ void OnScreenOn(void);
+
+ // Called when the screen turns off.
+ void OnScreenOff(void);
+
+ void Draw();
+};
diff --git a/bada/Maps/Inc/maps_form.h b/bada/Maps/Inc/maps_form.h
new file mode 100644
index 0000000000..0f1fb984ae
--- /dev/null
+++ b/bada/Maps/Inc/maps_form.h
@@ -0,0 +1,88 @@
+#pragma once
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUiControls.h>
+#include <FApp.h>
+#include <FLocations.h>
+
+class MapsGl;
+class DownloadForm;
+
+class MapsForm: public Osp::Ui::Controls::Form,
+ public Osp::Ui::IActionEventListener,
+ public Osp::Ui::IOrientationEventListener,
+ public Osp::Ui::ITouchEventListener,
+ public Osp::Locations::ILocationListener
+{
+public:
+ MapsForm();
+ ~MapsForm();
+
+private:
+ enum
+ {
+ ACTION_ID_MENU = 10000,
+ ACTION_ID_ZOOM_IN,
+ ACTION_ID_ZOOM_OUT,
+ ACTION_ID_MY_LOCATION,
+ ACTION_ID_DOWNLOAD_MAPS,
+ ACTION_ID_ALL
+ };
+
+ // listener functions
+public:
+ // TODO: temporary, fix later
+ MapsGl * m_mapsGl;
+
+ // control lifetime events
+ virtual result OnInitializing();
+ virtual result OnTerminating();
+
+ // button action event
+ virtual void OnActionPerformed(const Osp::Ui::Control &source, int actionId);
+
+ // screen orientation event
+ virtual void OnOrientationChanged(const Osp::Ui::Control& source,
+ Osp::Ui::OrientationStatus orientationStatus);
+
+ // touch events
+ virtual void OnTouchDoublePressed (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+ virtual void OnTouchFocusIn (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+ virtual void OnTouchFocusOut (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+ virtual void OnTouchLongPressed (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+ virtual void OnTouchMoved (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+ virtual void OnTouchPressed (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+ virtual void OnTouchReleased (const Osp::Ui::Control &source, const Osp::Graphics::Point &currentPosition, const Osp::Ui::TouchEventInfo &touchInfo);
+
+ // location events
+ virtual void OnLocationUpdated(Osp::Locations::Location & location);
+ virtual void OnProviderStateChanged(Osp::Locations::LocProviderState newState);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList* pArgs);
+
+public:
+ result CreateForm(Osp::Ui::Controls::Frame * pFrame);
+
+private:
+ virtual result OnDraw(void);
+ void ShowOptionMenu(void);
+
+private:
+ Osp::Locations::LocationProvider * m_locProvider;
+
+ DownloadForm * m_pDownloadForm;
+
+ Osp::Ui::Controls::Frame * _pFrame;
+ Osp::Ui::Controls::OptionMenu * _pOptionMenu;
+
+ // pop up for remind to set the location service
+ Osp::Ui::Controls::Popup * _pPopup;
+ Osp::Ui::Controls::Button * _pBtn;
+ Osp::Ui::Controls::Label * _pLabel;
+
+ // pop up for setting
+ Osp::Ui::Controls::Popup * _pPopup3;
+ Osp::Ui::Controls::Button * _pBtn3;
+ Osp::Ui::Controls::Label * _pLabel3;
+};
diff --git a/bada/Maps/Inc/maps_gl.h b/bada/Maps/Inc/maps_gl.h
new file mode 100644
index 0000000000..b127e3d96f
--- /dev/null
+++ b/bada/Maps/Inc/maps_gl.h
@@ -0,0 +1,53 @@
+#pragma once
+
+#include "../../../base/SRC_FIRST.hpp"
+
+#include <FGraphicsOpengl.h>
+
+using namespace Osp::Graphics::Opengl;
+
+#include "../../../base/ptr_utils.hpp"
+#include "../../../std/shared_ptr.hpp"
+#include "../../../yg/framebuffer.hpp"
+#include "../../../yg/renderbuffer.hpp"
+#include "../../../map/drawer_yg.hpp"
+#include "../../../map/framework.hpp"
+#include "../../../map/render_queue.hpp"
+#include "../../../map/navigator.hpp"
+#include "../../../map/feature_vec_model.hpp"
+#include "window_handle.hpp"
+
+class MapsControl;
+class MapsForm;
+namespace bada
+{
+ struct RenderContext;
+}
+
+/// OpenGl wrapper for bada
+class MapsGl
+{
+ MapsControl * __pApplication;
+ MapsForm * __pForm;
+
+ typedef RenderQueue<DrawerYG, bada::RenderContext, bada::WindowHandle> render_queue_t;
+ typedef FrameWork<model::FeaturesFetcher, Navigator, bada::WindowHandle, render_queue_t> framework_t;
+
+ shared_ptr<bada::RenderContext> m_primaryContext;
+ shared_ptr<DrawerYG> m_drawer;
+ shared_ptr<yg::gl::FrameBuffer> m_frameBuffer;
+ shared_ptr<yg::gl::RenderBuffer> m_depthBuffer;
+ shared_ptr<bada::WindowHandle> m_windowHandle;
+
+ shared_ptr<framework_t> m_framework;
+
+public:
+ MapsGl(MapsControl * app, MapsForm * form);
+ ~MapsGl();
+
+ void Draw();
+
+ bool Init();
+
+ framework_t * Framework() { return m_framework.get(); }
+};
diff --git a/bada/Maps/Inc/render_context.hpp b/bada/Maps/Inc/render_context.hpp
new file mode 100644
index 0000000000..8715ee00e4
--- /dev/null
+++ b/bada/Maps/Inc/render_context.hpp
@@ -0,0 +1,38 @@
+/*
+ * render_context.hpp
+ *
+ * Created on: 26 Aug 2010
+ * Author: Alex
+ */
+
+#ifndef RENDER_CONTEXT_HPP_
+#define RENDER_CONTEXT_HPP_
+
+#include <FGraphicsOpenGL.h>
+#include "../../../std/shared_ptr.hpp"
+#include "../../../yg/texture.hpp"
+
+class MapsForm;
+
+namespace bada
+{
+ struct RenderContext
+ {
+ Osp::Graphics::Opengl::EGLDisplay m_eglDisplay;
+ Osp::Graphics::Opengl::EGLConfig m_eglConfig;
+ Osp::Graphics::Opengl::EGLSurface m_eglSurface;
+ Osp::Graphics::Opengl::EGLContext m_eglContext;
+
+ RenderContext(shared_ptr<RenderContext> context);
+ RenderContext(MapsForm * form);
+ ~RenderContext();
+
+ void makeCurrent();
+ void releaseTexImage();
+ void bindTexImage(shared_ptr<yg::gl::RGBA8Texture> texture);
+ void bindTexImage(int id);
+ void swapBuffers();
+ };
+}
+
+#endif /* RENDER_CONTEXT_HPP_ */
diff --git a/bada/Maps/Inc/window_handle.hpp b/bada/Maps/Inc/window_handle.hpp
new file mode 100644
index 0000000000..f07cc39bb4
--- /dev/null
+++ b/bada/Maps/Inc/window_handle.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "maps_form.h"
+#include "../../../map/window_handle.hpp"
+#include "render_context.hpp"
+
+namespace bada
+{
+ struct WindowHandle : public ::WindowHandle<RenderContext>
+ {
+ MapsForm * m_form;
+
+ WindowHandle(MapsForm * form);
+ void invalidate();
+ };
+}
diff --git a/bada/Maps/Src/bada_platform.cpp b/bada/Maps/Src/bada_platform.cpp
new file mode 100644
index 0000000000..4f67545c4c
--- /dev/null
+++ b/bada/Maps/Src/bada_platform.cpp
@@ -0,0 +1,107 @@
+#include "../../../platform/platform.hpp"
+#include "../../../coding/strutil.hpp"
+
+#include <FBaseTimeSpan.h>
+#include <FSysSystemTime.h>
+#include <FIoFile.h>
+#include <FIoDirectory.h>
+
+using namespace Osp::Base;
+using namespace Osp::System;
+using namespace Osp::Io;
+
+/// Converts bad(a) strings to good utf8 strings
+std::string BadaStringToStdString(String const & badaStr)
+{
+ mchar wideChar;
+ wstring unicodeString;
+ for (int i = 0; i < badaStr.GetLength(); ++i)
+ {
+ badaStr.GetCharAt(i, wideChar);
+ unicodeString.push_back(wideChar);
+ }
+ return ToUtf8(unicodeString);
+}
+
+class BadaPlatform : public Platform
+{
+ TimeSpan m_startTime;
+
+public:
+ BadaPlatform() : m_startTime(0)
+ {
+ SystemTime::GetUptime(m_startTime);
+ }
+
+ virtual double TimeInSec()
+ {
+ TimeSpan currentTime(0);
+ SystemTime::GetUptime(currentTime);
+ return static_cast<double>((currentTime - m_startTime).GetTicks()) /
+ static_cast<double>(TimeSpan::NUM_OF_TICKS_IN_SECOND);
+ }
+
+ virtual string WorkingDir()
+ {
+ return "/Home/";
+ }
+
+ virtual string ResourcesDir()
+ {
+ return "/Res/";
+ }
+
+ /// @NOTE current implementation doesn't support wildcard in mask, so "*" symbol will be ignored and
+ /// simple substring comparison will be made
+ virtual int GetFilesInDir(string const & directory, string const & mask, FilesList & outFiles)
+ {
+ // open directory
+ Directory dir;
+ if (IsFailed(dir.Construct(directory.c_str())))
+ return 0;
+
+ // read all directory entries
+ DirEnumerator * pDirEnum = dir.ReadN();
+ if (!pDirEnum)
+ return 0;
+
+ // temporary workaround for wildcards
+ string fixedMask(mask);
+ if (fixedMask.size() && fixedMask[0] == '*')
+ fixedMask.erase(0, 1);
+
+ // loop through all directory entries
+ while (pDirEnum->MoveNext() == E_SUCCESS)
+ {
+ DirEntry dirEntry = pDirEnum->GetCurrentDirEntry();
+ String file = dirEntry.GetName();
+ if (file.EndsWith(fixedMask.c_str()))
+ outFiles.push_back(BadaStringToStdString(file));
+ }
+
+ // delete enumerator
+ delete pDirEnum;
+ return outFiles.size();
+ }
+
+ virtual bool GetFileSize(string const & file, uint64_t & size)
+ {
+ FileAttributes attr;
+ result error = File::GetAttributes(file.c_str(), attr);
+ if (IsFailed(error))
+ return false;
+ size = attr.GetFileSize();
+ return true;
+ }
+
+ virtual bool RenameFileX(string const & original, string const & newName)
+ {
+ return File::Move(original.c_str(), newName.c_str()) == E_SUCCESS;
+ }
+};
+
+Platform & GetPlatform()
+{
+ static BadaPlatform pl;
+ return pl;
+}
diff --git a/bada/Maps/Src/download_form.cpp b/bada/Maps/Src/download_form.cpp
new file mode 100644
index 0000000000..20b926b107
--- /dev/null
+++ b/bada/Maps/Src/download_form.cpp
@@ -0,0 +1,329 @@
+#include "download_form.h"
+#include "maps_gl.h"
+
+#include "../../../networking/map_storage.hpp"
+
+#include <FApp.h>
+
+using namespace Osp::Ui;
+using namespace Osp::Ui::Controls;
+using namespace Osp::Graphics;
+using namespace Osp::Base;
+
+DownloadForm::DownloadForm(MapsGl & mapsGl)
+ : m_mapsGl(mapsGl), //__pLabelLog(null),
+ __pItemFormat(null), __pGroupedList(null)
+{
+}
+
+DownloadForm::~DownloadForm()
+{
+ // use OnTerminating() instead
+}
+
+bool DownloadForm::Initialize(void)
+{
+ Construct(FORM_STYLE_NORMAL | FORM_STYLE_TITLE | FORM_STYLE_INDICATOR
+ | FORM_STYLE_SOFTKEY_1);
+ SetTitleText(L"Countries");
+
+ SetSoftkeyText(SOFTKEY_1, L"Back");
+ SetSoftkeyActionId(SOFTKEY_1, ID_BACK_SOFTKEY);
+ AddSoftkeyActionListener(SOFTKEY_1, *this);
+
+ return true;
+}
+
+result DownloadForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Get Bitmap
+// Bitmap *pHome = GetBitmapN(L"home.png");
+// Bitmap *pMsg = GetBitmapN(L"message.png");
+// Bitmap *pAlarm = GetBitmapN(L"alarm.png");
+//
+// Bitmap *pHome_focused = GetBitmapN(L"home_focused.png");
+// Bitmap *pMsg_focused = GetBitmapN(L"message_focused.png");
+// Bitmap *pAlarm_focused = GetBitmapN(L"alarm_focused.png");
+
+ // Create CustomItem and format
+ __pItemFormat = new CustomListItemFormat();
+ __pItemFormat->Construct();
+
+// __pItemFormat->AddElement(ID_FORMAT_STRING, Rectangle(110, 30, 250, 50),38, Color::COLOR_WHITE, Color::COLOR_BLUE);
+// __pItemFormat->AddElement(ID_FORMAT_BITMAP, Rectangle(22, 22, 56, 56));
+ __pItemFormat->AddElement(ID_FORMAT_STRING, Rectangle(25, 35, 480 - 25, 50));
+ __pItemFormat->SetElementEventEnabled(ID_FORMAT_STRING, true);
+// __pItemFormat->SetElementEventEnabled(ID_FORMAT_BITMAP, true);
+
+ // Create GroupedList control
+ __pGroupedList = new GroupedList();
+// __pGroupedList->Construct(Rectangle(0, 200, 480, GetClientAreaBounds().height - 200), CUSTOM_LIST_STYLE_NORMAL, true, true);
+ __pGroupedList->Construct(Rectangle(0, 0, 480, GetClientAreaBounds().height), CUSTOM_LIST_STYLE_NORMAL, true, true);
+ __pGroupedList->AddGroupedItemEventListener(*this);
+
+ ReFillList(*__pGroupedList);
+// __pGroupedList->SetFastScrollMainIndex("AB");
+// __pGroupedList->SetFastScrollSubIndex("123,12", SCROLL_INDEX_DIGIT_NUM_1);
+// __pGroupedList->AddFastScrollEventListener(*this);
+ AddControl(*__pGroupedList);
+
+ // Add Label Control
+// __pLabelLog = new Label();
+// __pLabelLog->Construct(Rectangle(30, 10, 450, 60), L"Log");
+// __pLabelLog->SetTextColor(Color::COLOR_WHITE);
+// __pLabelLog->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+// AddControl(*__pLabelLog);
+
+ // Deallocate bitmaps
+// delete pHome;
+// delete pMsg;
+// delete pAlarm;
+// delete pHome_focused;
+// delete pMsg_focused;
+// delete pAlarm_focused;
+
+ return r;
+}
+
+result DownloadForm::ReFillList(GroupedList & list)
+{
+ list.RemoveAllItems();
+ list.RemoveAllGroups();
+ networking::MapsInformationStorage & storage = networking::MapsInformationStorage::Instance();
+ networking::StringContainer groups;
+ size_t groupsCount = storage.GetGroups(groups);
+ for (size_t i = 0; i < groupsCount; ++i)
+ {
+ list.AddGroup(groups[i].c_str(), null);
+
+ networking::StringContainer countries;
+ size_t countriesCount = storage.GetMapsForGroup(groups[i], countries);
+ for (size_t j = 0; j < countriesCount; ++j)
+ {
+ CustomListItem * pItem = new CustomListItem();
+ pItem->Construct(100);
+ pItem->SetItemFormat(*__pItemFormat);
+ pItem->SetElement(ID_FORMAT_STRING, countries[j].c_str());
+ list.AddItem(i, *pItem);
+ }
+ }
+ return E_SUCCESS;
+}
+
+result DownloadForm::OnTerminating(void)
+{
+ delete __pItemFormat;
+ return E_SUCCESS;
+}
+
+void CloseDownloadForm()
+{
+ Frame * pFrame = Osp::App::Application::GetInstance()->GetAppFrame()->GetFrame();
+ Control * pMapsForm = pFrame->GetControl("MapsForm");
+ if (pMapsForm != null)
+ pMapsForm->SendUserEvent(DownloadForm::REQUEST_MAINFORM, null);
+}
+
+void DownloadForm::OnActionPerformed(const Control& source, int actionId)
+{
+ switch (actionId)
+ {
+ case ID_BACK_SOFTKEY:
+ {
+ CloseDownloadForm();
+ }
+ break;
+ }
+}
+
+result DownloadForm::ShowCountryAndClose(int groupIndex, int itemIndex)
+{
+ networking::MapsInformationStorage & storage = networking::MapsInformationStorage::Instance();
+ networking::StringContainer groups;
+ if (groupIndex < static_cast<int>(storage.GetGroups(groups)))
+ {
+ networking::StringContainer countries;
+ if (itemIndex < static_cast<int>(storage.GetMapsForGroup(groups[groupIndex], countries)))
+ {
+ m_mapsGl.Framework()->SetCountryRect(countries[itemIndex].c_str());
+ CloseDownloadForm();
+ }
+ }
+ return E_SUCCESS;
+}
+
+void DownloadForm::OnItemStateChanged(const Osp::Ui::Control &source,
+ int groupIndex, int itemIndex, int itemId, Osp::Ui::ItemStatus status)
+{
+ // user selected country in the list
+ if (status == ITEM_SELECTED)
+ {
+ ShowCountryAndClose(groupIndex, itemIndex);
+ }
+// String itemText("");
+// switch (itemId)
+// {
+// case ID_CUSTOMLIST_ITEM1:
+// itemText.Format(20, L"Item %d: HOME", itemIndex+1);
+// break;
+// case ID_CUSTOMLIST_ITEM2:
+// itemText.Format(20,L"Item %d: MESSAGE", itemIndex+1);
+// break;
+// case ID_CUSTOMLIST_ITEM3:
+// itemText.Format(20,L"Item %d: ALARM", itemIndex+1);
+// break;
+// case ID_CUSTOMLIST_ITEM4:
+// itemText.Format(20,L"Item %d: HOME", itemIndex+1);
+// break;
+// case ID_CUSTOMLIST_ITEM5:
+// itemText.Format(20,L"Item %d: MESSAGE", itemIndex+1);
+// break;
+// default:
+// break;
+// }
+// __pLabelLog->SetText(itemText);
+// __pLabelLog->Draw();
+// __pLabelLog->Show();
+}
+
+void DownloadForm::OnItemStateChanged(const Osp::Ui::Control &source,
+ int groupIndex, int itemIndex, int itemId, int elementId,
+ Osp::Ui::ItemStatus status)
+{
+ if (status == ITEM_SELECTED)
+ {
+ ShowCountryAndClose(groupIndex, itemIndex);
+ }
+// String itemText("");
+// switch (itemId)
+// {
+// case ID_CUSTOMLIST_ITEM1:
+// switch (elementId)
+// {
+// case ID_FORMAT_STRING:
+// itemText.Format(50, L"Item %d: Text Selected", itemIndex+1);
+// break;
+//
+// case ID_FORMAT_BITMAP:
+// itemText.Format(50, L"Item %d: Bitmap Selected", itemIndex+1);
+// break;
+//
+// default:
+// break;
+// }
+// break;
+// case ID_CUSTOMLIST_ITEM2:
+// switch (elementId)
+// {
+// case ID_FORMAT_STRING:
+// itemText.Format(50, L"Item %d: Text Selected", itemIndex+1);
+// break;
+//
+// case ID_FORMAT_BITMAP:
+// itemText.Format(50, L"Item %d: Bitmap Selected", itemIndex+1);
+// break;
+//
+// default:
+// break;
+// }
+// break;
+// case ID_CUSTOMLIST_ITEM3:
+// switch (elementId)
+// {
+// case ID_FORMAT_STRING:
+// itemText.Format(50, L"Item %d: Text Selected", itemIndex+1);
+// break;
+//
+// case ID_FORMAT_BITMAP:
+// itemText.Format(50, L"Item %d: Bitmap Selected", itemIndex+1);
+// break;
+//
+// default:
+// break;
+// }
+// break;
+// case ID_CUSTOMLIST_ITEM4:
+// switch (elementId)
+// {
+// case ID_FORMAT_STRING:
+// itemText.Format(50, L"Item %d: Text Selected", itemIndex+1);
+// break;
+//
+// case ID_FORMAT_BITMAP:
+// itemText.Format(50, L"Item %d: Bitmap Selected", itemIndex+1);
+// break;
+//
+// default:
+// break;
+// }
+// break;
+// case ID_CUSTOMLIST_ITEM5:
+// switch (elementId)
+// {
+// case ID_FORMAT_STRING:
+// itemText.Format(50, L"Item %d: Text Selected", itemIndex+1);
+// break;
+//
+// case ID_FORMAT_BITMAP:
+// itemText.Format(50, L"Item %d: Bitmap Selected", itemIndex+1);
+// break;
+//
+// default:
+// break;
+// }
+// break;
+// default:
+// break;
+// }
+// __pLabelLog->SetText(itemText);
+//
+// __pLabelLog->Draw();
+// __pLabelLog->Show();
+}
+
+//void DownloadForm::OnMainIndexChanged(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex)
+//{
+// if (!mainIndex.CompareTo(Osp::Base::Character('A')))
+// __pGroupedList->ScrollToTop(0);
+// else if (!mainIndex.CompareTo(Osp::Base::Character('B')))
+// __pGroupedList->ScrollToTop(1);
+//
+// __pGroupedList->Draw();
+// __pGroupedList->Show();
+//}
+//
+//void DownloadForm::OnSubIndexChanged(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex, Osp::Base::Character &subIndex)
+//{
+// if (!mainIndex.CompareTo(Osp::Base::Character('A')))
+// {
+// if (!subIndex.CompareTo(Osp::Base::Character('1')))
+// __pGroupedList->ScrollToTop(0, 0);
+// else if (!subIndex.CompareTo(Osp::Base::Character('2')))
+// __pGroupedList->ScrollToTop(0, 1);
+// else if (!subIndex.CompareTo(Osp::Base::Character('3')))
+// __pGroupedList->ScrollToTop(0, 2);
+// }
+// else if (!mainIndex.CompareTo(Osp::Base::Character('B')))
+// {
+// if (!subIndex.CompareTo(Osp::Base::Character('1')))
+// __pGroupedList->ScrollToTop(1, 0);
+// else if (!subIndex.CompareTo(Osp::Base::Character('2')))
+// __pGroupedList->ScrollToTop(1, 1);
+// }
+// __pGroupedList->Draw();
+// __pGroupedList->Show();
+//}
+//
+//void DownloadForm::OnMainIndexSelected(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex)
+//{
+//}
+//
+//void DownloadForm::OnSubIndexSelected(const Osp::Ui::Control &source,
+// Osp::Base::Character &mainIndex, Osp::Base::Character &subIndex)
+//{
+//}
diff --git a/bada/Maps/Src/maps_control.cpp b/bada/Maps/Src/maps_control.cpp
new file mode 100644
index 0000000000..01d876bf0c
--- /dev/null
+++ b/bada/Maps/Src/maps_control.cpp
@@ -0,0 +1,132 @@
+#include "maps_control.h"
+#include "maps_form.h"
+#include "maps_gl.h"
+
+#include <FUi.h>
+#include <FMedia.h>
+
+using namespace Osp::Base;
+using namespace Osp::Graphics;
+using namespace Osp::Locales;
+using namespace Osp::System;
+using namespace Osp::App;
+using namespace Osp::Ui::Controls;
+
+MapsControl::MapsControl() : __glWrapper(null)
+{
+}
+
+MapsControl::~MapsControl()
+{
+ // cleanup should be implemented inside OnAppTerminating()
+}
+
+Application * MapsControl::CreateInstance(void)
+{
+ // You can create the instance through another constructor.
+ return new MapsControl();
+}
+
+bool MapsControl::OnAppInitializing(AppRegistry& appRegistry)
+{
+ result r = E_SUCCESS;
+
+ IAppFrame* pAppFrame = GetAppFrame();
+ MapsForm* pMapPanel = new MapsForm();
+
+ if (NULL == pAppFrame)
+ {
+ AppLog("GetAppFrame() has failed.");
+ goto CATCH;
+ }
+
+ if (NULL == pMapPanel)
+ {
+ AppLog("Unable to create MapForm");
+ goto CATCH;
+ }
+
+ r = pMapPanel->CreateForm(pAppFrame->GetFrame());
+ if (IsFailed(r))
+ {
+ AppLog("__pMapPanel->CreateForm() has failed.");
+ goto CATCH;
+ }
+
+ // initialize OpenGl
+ __glWrapper = new MapsGl(this, pMapPanel);
+ __glWrapper->Init();
+
+ pMapPanel->m_mapsGl = __glWrapper;
+
+ // Uncomment the following statement to listen to the screen on/off events.
+ //PowerManager::SetScreenEventListener(*this);
+
+
+
+ return true;
+
+ CATCH: if (pMapPanel != null)
+ {
+ delete pMapPanel;
+ pMapPanel = null;
+ }
+
+ return false;
+}
+
+bool MapsControl::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // Deallocate or close any resources still alive.
+ // Save the application's current states, if applicable.
+ // If this method is successful, return true; otherwise, return false.
+
+ if (__glWrapper)
+ {
+ __glWrapper->Framework()->SaveState();
+ delete __glWrapper;
+ __glWrapper = 0;
+ }
+
+ return true;
+}
+
+void MapsControl::OnForeground(void)
+{
+}
+
+void MapsControl::OnBackground(void)
+{
+}
+
+void MapsControl::OnLowMemory(void)
+{
+ // TODO:
+ // Deallocate as many resources as possible.
+}
+
+void MapsControl::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // It is recommended that the application save its data,
+ // and terminate itself if the application consumes much battery.
+}
+
+void MapsControl::OnScreenOn(void)
+{
+ // TODO:
+ // Get the released resources or resume the operations that were paused or stopped in OnScreenOff().
+}
+
+void MapsControl::OnScreenOff(void)
+{
+ // TODO:
+ // Unless there is a strong reason to do otherwise, release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode to save the battery.
+ // Invoking a lengthy asynchronous method within this listener method can be risky, because it is not guaranteed to invoke a callback before the device enters the sleep mode.
+ // Similarly, do not perform lengthy operations in this listener method. Any operation must be a quick one.
+}
+
+void MapsControl::Draw()
+{
+ __glWrapper->Draw();
+}
diff --git a/bada/Maps/Src/maps_entry.cpp b/bada/Maps/Src/maps_entry.cpp
new file mode 100644
index 0000000000..8227ae3108
--- /dev/null
+++ b/bada/Maps/Src/maps_entry.cpp
@@ -0,0 +1,43 @@
+/**
+ * This file contains the bada application entry point.
+ */
+#include "maps_control.h"
+
+using namespace Osp::Base;
+using namespace Osp::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+_EXPORT_ int OspMain(int argc, char *pArgv[]);
+
+/**
+ * The entry function of bada application called by the operating system.
+ */
+int OspMain(int argc, char *pArgv[])
+{
+ result r = E_SUCCESS;
+
+ AppLog("Application started.");
+ ArrayList* pArgs = new ArrayList();
+ pArgs->Construct();
+ for (int i = 0; i < argc; i++)
+ pArgs->Add(*(new String(pArgv[i])));
+
+ r = Osp::App::Application::Execute(MapsControl::CreateInstance, pArgs);
+ if (IsFailed(r))
+ {
+ AppLogException("Application execution failed-[%s].", GetErrorMessage(r));
+ r &= 0x0000FFFF;
+ }
+
+ pArgs->RemoveAll(true);
+ delete pArgs;
+ AppLog("Application finished.");
+
+ return static_cast<int> (r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/bada/Maps/Src/maps_form.cpp b/bada/Maps/Src/maps_form.cpp
new file mode 100644
index 0000000000..164646cf64
--- /dev/null
+++ b/bada/Maps/Src/maps_form.cpp
@@ -0,0 +1,298 @@
+#include "maps_form.h"
+#include "maps_gl.h"
+#include "download_form.h"
+
+#include <FMedia.h>
+
+using namespace Osp::Base;
+using namespace Osp::Base::Collection;
+using namespace Osp::Graphics;
+using namespace Osp::Ui;
+using namespace Osp::Ui::Controls;
+using namespace Osp::App;
+using namespace Osp::Locations;
+
+MapsForm::MapsForm() : m_mapsGl(null), m_locProvider(null), m_pDownloadForm(null),
+ _pFrame(null), _pOptionMenu(null),
+ _pPopup(null), _pBtn(null), _pLabel(null),
+ _pPopup3(null), _pBtn3(null), _pLabel3(null)
+{
+}
+
+MapsForm::~MapsForm()
+{
+ // everything should be in OnTerminating()
+}
+
+result MapsForm::OnInitializing()
+{
+ return E_SUCCESS;
+}
+
+result MapsForm::OnTerminating()
+{
+ if (m_locProvider)
+{
+ m_locProvider->CancelLocationUpdates();
+ delete m_locProvider;
+ }
+ if (m_pDownloadForm)
+ {
+ _pFrame->RemoveControl(*m_pDownloadForm);
+ }
+ delete _pOptionMenu;
+ delete _pPopup;
+ delete _pPopup3;
+
+ return E_SUCCESS;
+}
+
+result MapsForm::CreateForm(Frame* pFrame)
+{
+ result r = E_SUCCESS;
+ Point pt(0, 0);
+ Dimension dim(450, 250);
+ _pFrame = pFrame;
+
+ r = Form::Construct(FORM_STYLE_NORMAL | FORM_STYLE_TITLE
+ | FORM_STYLE_INDICATOR | FORM_STYLE_SOFTKEY_0 | FORM_STYLE_SOFTKEY_1
+ | FORM_STYLE_OPTIONKEY);
+ if (IsFailed(r))
+ {
+ AppLog("Form::Construct() has failed.");
+ return E_FAILURE;
+ }
+ r = SetTitleText(L"MapsWithMe");
+ SetName("MapsForm");
+ r = pFrame->AddControl(*this);
+
+ // modify Softkeys
+ SetSoftkeyText(SOFTKEY_0, L"+");
+ SetSoftkeyActionId(SOFTKEY_0, ACTION_ID_ZOOM_IN);
+ AddSoftkeyActionListener(SOFTKEY_0, *this);
+ SetSoftkeyText(SOFTKEY_1, L"-");
+ SetSoftkeyActionId(SOFTKEY_1, ACTION_ID_ZOOM_OUT);
+ AddSoftkeyActionListener(SOFTKEY_1, *this);
+
+ AddOptionkeyActionListener(*this);
+ SetOptionkeyActionId(ACTION_ID_MENU);
+
+ AddTouchEventListener(*this);
+ Touch touch;
+ touch.SetMultipointEnabled(*this, true);
+
+ AddOrientationEventListener(*this);
+ SetOrientation(ORIENTATION_PORTRAIT/*ORIENTATION_AUTOMATIC_FOUR_DIRECTION*/);
+
+// CreatePopups();
+
+ return E_SUCCESS;
+}
+
+//void MapsForm::CreatePopups()
+//{
+// // 1. popup for notifying drawing error
+// _pPopup = new Popup();
+// _pPopup->Construct(false, Dimension(450, 240));
+//
+// _pLabel = new Label();
+// _pLabel->Construct(Rectangle(0, 0, 450, 110), L"An error occurred\nwhen drawing the map.");
+// _pLabel->SetTextConfig(35, LABEL_TEXT_STYLE_NORMAL);
+//
+// _pBtn = new Button();
+// _pBtn->Construct(Rectangle(450/2-90, 240/2+15, 180, 70),L"Close");
+// _pBtn->SetActionId(ACTION_ID_BUTTON_CLOSE_POPUP);
+// _pBtn->AddActionEventListener(*this);
+//
+// _pPopup->AddControl(*_pLabel);
+// _pPopup->AddControl(*_pBtn);
+//
+// // 2. popup for setting location services
+// _pPopup3 = new Popup();
+// _pPopup3->Construct(false, Dimension(450, 335));
+//
+// _pLabel3 = new Label();
+// _pLabel3->Construct(Rectangle(0, 0, 450, 220),L"Location services may be disabled. To enable them, go\nto Settings > Connectivity > Location and switch on\n\"Enable location services\".");
+// _pLabel3->SetTextConfig(35, LABEL_TEXT_STYLE_NORMAL);
+//
+// _pBtn3 = new Button();
+// _pBtn3->Construct(Rectangle(450/2-90, 300/2+80, 180, 70),L"OK");
+// _pBtn3->SetActionId(ACTION_ID_BUTTON_OK_POPUP);
+// _pBtn3->AddActionEventListener(*this);
+//
+// _pPopup3->AddControl(*_pLabel3);
+// _pPopup3->AddControl(*_pBtn3);
+//}
+
+result MapsForm::OnDraw()
+{
+ m_mapsGl->Draw();
+ return E_SUCCESS;
+}
+
+void MapsForm::OnActionPerformed(const Osp::Ui::Control &source, int actionId)
+{
+ switch (actionId)
+ {
+ case ACTION_ID_MENU:
+ {
+ // Display the Popup on the display
+ ShowOptionMenu();
+ }
+ break;
+
+ case ACTION_ID_ZOOM_IN:
+ {
+ m_mapsGl->Framework()->ScaleDefault(true);
+ }
+ break;
+
+ case ACTION_ID_ZOOM_OUT:
+ {
+ m_mapsGl->Framework()->ScaleDefault(false);
+ }
+ break;
+
+ case ACTION_ID_MY_LOCATION:
+ {
+ if (!m_locProvider)
+ { // Create a LocationProvider
+ m_locProvider = new LocationProvider();
+ // Construct the LocationProvider by using GPS as its locating mechanism
+ if (IsFailed(m_locProvider->Construct(LOC_METHOD_HYBRID)))
+ {
+ delete m_locProvider;
+ m_locProvider = null;
+ }
+ }
+
+ if (m_locProvider)
+ m_locProvider->RequestLocationUpdates(*this, 5, false);
+ }
+ break;
+
+ case ACTION_ID_ALL:
+ {
+ m_mapsGl->Framework()->ShowAll();
+ }
+ break;
+
+ case ACTION_ID_DOWNLOAD_MAPS:
+ {
+ if (m_pDownloadForm == null)
+ {
+ m_pDownloadForm = new DownloadForm(*m_mapsGl);
+ m_pDownloadForm->Initialize();
+ _pFrame->AddControl(*m_pDownloadForm);
+ }
+ _pFrame->SetCurrentForm(*m_pDownloadForm);
+ m_pDownloadForm->Draw();
+ m_pDownloadForm->Show();
+ }
+ break;
+ }
+}
+
+void MapsForm::ShowOptionMenu(void)
+{
+ // Create a OptionMenu
+ if (null == _pOptionMenu)
+ {
+ _pOptionMenu = new OptionMenu();
+ _pOptionMenu->Construct();
+ _pOptionMenu->AddActionEventListener(*this);
+
+ _pOptionMenu->AddItem(L"My Position", ACTION_ID_MY_LOCATION);
+ _pOptionMenu->AddItem(L"Countries", ACTION_ID_DOWNLOAD_MAPS);
+// _pOptionMenu->AddItem(L"Show All", ACTION_ID_ALL);
+ }
+ else
+ {
+ _pOptionMenu->SetShowState(true);
+ }
+
+ _pOptionMenu->Show();
+}
+
+void MapsForm::OnOrientationChanged(const Osp::Ui::Control& source,
+ Osp::Ui::OrientationStatus orientationStatus)
+{
+}
+
+void MapsForm::OnTouchDoublePressed(const Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchDoublePressed");
+}
+
+void MapsForm::OnTouchFocusIn(const Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchFocusIn");
+}
+
+void MapsForm::OnTouchFocusOut(const Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchFocusOut");
+}
+
+void MapsForm::OnTouchLongPressed(const Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchLongPressed");
+}
+
+void MapsForm::OnTouchMoved(const Osp::Ui::Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchMoved");
+ m_mapsGl->Framework()->DoDrag(DragEvent(currentPosition.x, currentPosition.y));
+}
+
+void MapsForm::OnTouchPressed(const Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchPressed");
+ m_mapsGl->Framework()->StartDrag(DragEvent(currentPosition.x, currentPosition.y));
+}
+
+void MapsForm::OnTouchReleased(const Control &source,
+ const Point &currentPosition, const TouchEventInfo &touchInfo)
+{
+ AppLog("OnTouchReleased");
+ m_mapsGl->Framework()->StopDrag(DragEvent(currentPosition.x, currentPosition.y));
+}
+
+void MapsForm::OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList* pArgs)
+{
+ // Hide Download Maps dialog
+ if (requestId == DownloadForm::REQUEST_MAINFORM)
+ {
+ Frame * pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
+ pFrame->SetCurrentForm(*this);
+ Draw();
+ Show();
+ pFrame->RemoveControl(*m_pDownloadForm);
+ m_pDownloadForm = null;
+ }
+}
+
+void MapsForm::OnLocationUpdated(Osp::Locations::Location & location)
+{
+ QualifiedCoordinates const * coords = location.GetQualifiedCoordinates();
+ if (coords)
+ {
+ // The lat and lon values
+ double const lon = coords->GetLongitude();
+ double const lat = coords->GetLatitude();
+ AppLog("Received location: %lf, %lf", lat, lon);
+ m2::PointD const pt(MercatorBounds::LonToX(lon), MercatorBounds::LatToY(lat));
+ m_mapsGl->Framework()->CenterViewport(pt);
+ m_locProvider->CancelLocationUpdates();
+ }
+}
+
+void MapsForm::OnProviderStateChanged(Osp::Locations::LocProviderState newState)
+{
+}
diff --git a/bada/Maps/Src/maps_gl.cpp b/bada/Maps/Src/maps_gl.cpp
new file mode 100644
index 0000000000..cf0710196d
--- /dev/null
+++ b/bada/Maps/Src/maps_gl.cpp
@@ -0,0 +1,54 @@
+#include "../../../base/SRC_FIRST.hpp"
+
+#include "maps_gl.h"
+#include "maps_form.h"
+#include "maps_control.h"
+#include "render_context.hpp"
+
+#include "../../../map/drawer_yg.hpp"
+#include "../../../platform/platform.hpp"
+#include "../../../geometry/rect2d.hpp"
+
+#include <FBase.h>
+
+using namespace Osp::Graphics::Opengl;
+
+MapsGl::MapsGl(MapsControl * app, MapsForm * form)
+: __pApplication(app), __pForm(form)
+{
+}
+
+MapsGl::~MapsGl()
+{}
+
+bool MapsGl::Init()
+{
+ int x, y, width, height;
+ __pApplication->GetAppFrame()->GetFrame()->GetBounds(x, y, width, height);
+
+ m_primaryContext = make_shared_ptr(new bada::RenderContext(__pForm));
+ m_primaryContext->makeCurrent();
+
+ m_drawer = make_shared_ptr(new DrawerYG(GetPlatform().ResourcesDir() + "basic.skn", 10000, 30000));
+ m_drawer->onSize(width, height);
+
+ m_windowHandle = make_shared_ptr(new bada::WindowHandle(__pForm));
+ m_windowHandle->setDrawer(m_drawer);
+
+ m_drawer->screen()->addOnFlushFinishedFn(glFinish);
+
+ m_framework = make_shared_ptr(new framework_t(m_windowHandle));
+ m_framework->Init();
+ m_framework->OnSize(width, height);
+ //m_framework->setPrimaryContext(m_primaryContext);
+ return true;
+}
+
+void MapsGl::Draw()
+{
+ shared_ptr<PaintEvent> paintEvent(new PaintEvent(m_windowHandle->drawer()));
+ m_windowHandle->drawer()->beginFrame();
+ m_framework->PaintImpl(paintEvent, m_framework->Screen());
+ m_windowHandle->drawer()->endFrame();
+// m_framework->Paint(paintEvent);
+}
diff --git a/bada/Maps/Src/render_context.cpp b/bada/Maps/Src/render_context.cpp
new file mode 100644
index 0000000000..3b80b0e6fa
--- /dev/null
+++ b/bada/Maps/Src/render_context.cpp
@@ -0,0 +1,175 @@
+/*
+ * render_context.cpp
+ *
+ * Created on: 26 Aug 2010
+ * Author: Alex
+ */
+
+#include "../../../base/SRC_FIRST.hpp"
+#include "render_context.hpp"
+#include "maps_form.h"
+#include <FUiControls.h>
+#include <FGraphicsOpenGL.h>
+#include "../../../base/logging.hpp"
+#include "../../../base/assert.hpp"
+
+using namespace Osp::Graphics::Opengl;
+using namespace Osp::Ui::Controls;
+
+namespace bada
+{
+ RenderContext::RenderContext(shared_ptr<RenderContext> context)
+ : m_eglDisplay(context->m_eglDisplay),
+ m_eglConfig(context->m_eglConfig),
+ m_eglSurface(context->m_eglSurface)
+ {
+ EGLint numConfigs = 1;
+ EGLint eglConfigList[] =
+ {
+ EGL_RED_SIZE, 8,
+ EGL_GREEN_SIZE, 8,
+ EGL_BLUE_SIZE, 8,
+ EGL_ALPHA_SIZE, 8,
+ EGL_DEPTH_SIZE, 16,
+ EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
+ EGL_NONE
+ };
+
+ EGLint eglContextList[] =
+ { EGL_CONTEXT_CLIENT_VERSION, 1, EGL_NONE };
+
+ eglChooseConfig(m_eglDisplay, eglConfigList, &m_eglConfig, 1, &numConfigs); EGLCHECK;
+
+ ASSERT(numConfigs != 0, ("eglChooseConfig() has been failed. because of matching config doesn't exist"));
+
+ m_eglContext = eglCreateContext(
+ context->m_eglDisplay,
+ context->m_eglConfig,
+ context->m_eglContext,
+ eglContextList); EGLCHECK;
+
+ ASSERT(m_eglContext != EGL_NO_CONTEXT, ("Context Creation Failed"));
+
+ EGLint attribs[] = {
+ EGL_WIDTH, 1024,
+ EGL_HEIGHT, 1024,
+ EGL_TEXTURE_TARGET, EGL_TEXTURE_2D,
+ EGL_TEXTURE_FORMAT, EGL_TEXTURE_RGBA,
+// EGL_BIND_TO_TEXTURE_RGBA, EGL_TRUE,
+ EGL_NONE
+ };
+
+ m_eglSurface = eglCreatePbufferSurface(
+ m_eglDisplay,
+ m_eglConfig,
+ attribs); EGLCHECK;
+
+ ASSERT(m_eglSurface != EGL_NO_SURFACE, ("PBuffer Creation Failed"));
+ }
+
+ RenderContext::RenderContext(MapsForm * form):
+ m_eglDisplay(EGL_DEFAULT_DISPLAY),
+ m_eglSurface(EGL_NO_SURFACE),
+ m_eglContext(EGL_NO_CONTEXT),
+ m_eglConfig(null)
+ {
+ EGLint numConfigs = 1;
+
+ EGLint eglConfigList[] =
+ {
+ EGL_RED_SIZE, 8,
+ EGL_GREEN_SIZE, 8,
+ EGL_BLUE_SIZE, 8,
+ EGL_ALPHA_SIZE, 8,
+ EGL_DEPTH_SIZE, 16,
+ EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
+ EGL_NONE
+ };
+
+ EGLint eglContextList[] =
+ { EGL_CONTEXT_CLIENT_VERSION, 1, EGL_NONE };
+
+ eglBindAPI(EGL_OPENGL_ES_API);
+
+ m_eglDisplay = eglGetDisplay((EGLNativeDisplayType) EGL_DEFAULT_DISPLAY); EGLCHECK;
+
+ ASSERT(m_eglDisplay != EGL_NO_DISPLAY, ("eglGetDisplay() failed"));
+
+ EGLint res = eglInitialize(m_eglDisplay, null, null); EGLCHECK;
+ ASSERT(res != EGL_FALSE, ("eglInitialize() failed"));
+
+ res = eglChooseConfig(m_eglDisplay, eglConfigList, &m_eglConfig, 1, &numConfigs); EGLCHECK;
+ ASSERT(res != EGL_FALSE, ("eglChooseConfig() failed"));
+
+ ASSERT(numConfigs != 0, ("eglChooseConfig() has been failed. because of matching config doesn't exist"));
+
+ m_eglSurface = eglCreateWindowSurface(m_eglDisplay, m_eglConfig,
+ (EGLNativeWindowType)form, null); EGLCHECK;
+
+ ASSERT(m_eglSurface != EGL_NO_SURFACE, ("eglCreateWindowSurface failed"));
+
+ m_eglContext = eglCreateContext(m_eglDisplay, m_eglConfig, EGL_NO_CONTEXT, eglContextList); EGLCHECK;
+ ASSERT(m_eglContext != EGL_NO_CONTEXT, ("eglCreateContext failed"));
+ }
+
+ RenderContext::~RenderContext()
+ {
+ if (EGL_NO_DISPLAY != m_eglDisplay)
+ {
+ eglMakeCurrent(m_eglDisplay, null, null, null);
+ if (m_eglContext != EGL_NO_CONTEXT)
+ {
+ eglDestroyContext(m_eglDisplay, m_eglContext);
+ m_eglContext = EGL_NO_CONTEXT;
+ }
+
+ if (m_eglSurface != EGL_NO_SURFACE)
+ {
+ eglDestroySurface(m_eglDisplay, m_eglSurface);
+ m_eglSurface = EGL_NO_SURFACE;
+ }
+
+ eglTerminate(m_eglDisplay);
+ m_eglDisplay = EGL_NO_DISPLAY;
+ }
+
+ m_eglConfig = null;
+ }
+
+ void RenderContext::makeCurrent()
+ {
+ bool res = eglMakeCurrent(m_eglDisplay,
+ m_eglSurface,
+ m_eglSurface,
+ m_eglContext); EGLCHECK;
+ ASSERT(res, ("eglMakeCurrent failed with error=", eglGetError()))
+ }
+
+ void RenderContext::releaseTexImage()
+ {
+ OGLCHECK(glEnable(GL_TEXTURE_2D));
+ glBindTexture(GL_TEXTURE_2D, 0);
+ eglReleaseTexImage(m_eglDisplay, m_eglSurface, EGL_BACK_BUFFER); EGLCHECK;
+ }
+
+ void RenderContext::bindTexImage(shared_ptr<yg::gl::RGBA8Texture> texture)
+ {
+ OGLCHECK(glEnable(GL_TEXTURE_2D));
+ texture->makeCurrent();
+ eglBindTexImage(m_eglDisplay, m_eglSurface, EGL_BACK_BUFFER); EGLCHECK;
+ }
+
+ void RenderContext::bindTexImage(int id)
+ {
+ glEnable(GL_TEXTURE_2D);
+ glBindTexture(GL_TEXTURE_2D, id);
+ eglBindTexImage(m_eglDisplay, m_eglSurface, EGL_BACK_BUFFER); EGLCHECK;
+ }
+
+ void RenderContext::swapBuffers()
+ {
+ eglSwapBuffers(m_eglDisplay, m_eglSurface); EGLCHECK;
+ }
+}
diff --git a/bada/Maps/Src/window_handle.cpp b/bada/Maps/Src/window_handle.cpp
new file mode 100644
index 0000000000..8e0c7a5c27
--- /dev/null
+++ b/bada/Maps/Src/window_handle.cpp
@@ -0,0 +1,21 @@
+/*
+ *
+ * window_handle.cpp
+ *
+ * Created on: 26 Aug 2010
+ * Author: Alex
+ */
+
+#include "window_handle.hpp"
+
+namespace bada
+{
+ WindowHandle::WindowHandle(MapsForm * form) : m_form(form)
+ {
+ }
+
+ void WindowHandle::invalidate()
+ {
+ m_form->RequestRedraw();
+ }
+}
diff --git a/bada/Maps/application.xml b/bada/Maps/application.xml
new file mode 100644
index 0000000000..aadcdc3a5f
--- /dev/null
+++ b/bada/Maps/application.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Application>
+ <Entry>MapsWithMe</Entry>
+ <Name>
+ <English>MapsWithMe</English>
+ </Name>
+ <Vendor>http://mapswithme.com</Vendor>
+ <Description>Offline world maps mobile application</Description>
+ <Icons>
+ <MainMenu>maps_menu.png</MainMenu>
+ <Setting/>
+ <Ticker/>
+ <QuickPanel/>
+ <LaunchImage/>
+ </Icons>
+ <AutoScaling>
+ <Enabled>false</Enabled>
+ </AutoScaling>
+</Application>
diff --git a/bada/Maps/manifest.xml b/bada/Maps/manifest.xml
new file mode 100644
index 0000000000..df12d765af
--- /dev/null
+++ b/bada/Maps/manifest.xml
@@ -0,0 +1,32 @@
+<?xml version='1.0' ?>
+<Manifest>
+ <Id>ju4b68rx05</Id>
+ <Secret>B658BD33E786B94AA17D91CB4453ED81</Secret>
+ <AppVersion>1.0.0</AppVersion>
+ <ManifestVersion>1.1</ManifestVersion>
+ <Privileges>
+ <Privilege>
+ <Name>LOCATION</Name>
+ </Privilege>
+ <Privilege>
+ <Name>HTTP</Name>
+ </Privilege>
+ </Privileges>
+ <DeviceProfile>
+ <APIVersion>1.0</APIVersion>
+ <CPU>Cortex8</CPU>
+ <Accelerator3D>OpenGL-ES1.1</Accelerator3D>
+ <Accelerator3D>OpenGL-ES2.0</Accelerator3D>
+ <InputDevice>Touch</InputDevice>
+ <ScreenSize>480x800</ScreenSize>
+ <Connectivity>Bluetooth</Connectivity>
+ <Connectivity>Wi-Fi</Connectivity>
+ <Sensor>GPS</Sensor>
+ <Sensor>Wi-Fi_and_cell-based_positioning</Sensor>
+ <Sensor>Magnetic</Sensor>
+ <Sensor>Proximity</Sensor>
+ <Sensor>Accelerometer</Sensor>
+ <Sensor>Tilt</Sensor>
+ <UserInteraction>Vibration-effects</UserInteraction>
+ </DeviceProfile>
+</Manifest> \ No newline at end of file