<import file="${allElementsFile}" />
<target name="allElements">
<ant antfile="${genericTargets}" target="${target}">
- <property name="type" value="feature"/>
- <property name="id" value="com.samsung.tizen.eventinjector.feature"/>
+ <property name="type" value="${topLevelElementType}"/>
+ <property name="id" value="${topLevelElementId}"/>
</ant>
</target>
<target
- name="assemble.com.samsung.tizen.eventinjector.feature.linux.gtk.x86">
+ name="assemble.${topLevelElementId}.linux.gtk.x86">
<ant antfile="{$assembleScriptName}" dir="${buildDirectory}"/>
</target>
<target
- name="assemble.com.samsung.tizen.eventinjector.feature.win32.win32.x86">
+ name="assemble.${topLevelElementId}.win32.win32.x86">
<ant antfile="{$assembleScriptName}" dir="${buildDirectory}"/>
</target>
unpack="false"/>
<plugin
- id="com.samsung.tizen.telephony.call"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="com.samsung.tizen.telephony.sms"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
id="com.samsung.tizen.nfc"
download-size="0"
install-size="0"
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>com.samsung.tizen.telephony.call</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-#Wed Dec 01 09:09:12 CET 2010
-eclipse.preferences.version=1
-encoding/<project>=UTF-8
+++ /dev/null
-#Tue Dec 14 16:31:45 CET 2010
-eclipse.preferences.version=1
-line.separator=\n
+++ /dev/null
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Tizen Event Injector Telephony Call
-Bundle-SymbolicName: com.samsung.tizen.telephony.call;singleton:=true
-Bundle-Version: 1.3.20.qualifier
-Bundle-Vendor: Samsung
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.ui.forms;bundle-version="3.3.103",
- com.samsung.tizen.common,
- org.eclipse.ui.views;bundle-version="3.3.1",
- com.samsung.tizen.injector,
- com.samsung.tizen.common.connection
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+++ /dev/null
-source.. = src/\r
-output.. = bin/\r
-bin.includes = plugin.xml,\\r
- META-INF/,\\r
- .\rjavacSource = 1.6
-javacTarget = 1.6
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="com.samsung.tizen.telephony.call" default="build.jars" basedir=".">
-
- <property name="p2.build.repo" value="file:${buildDirectory}/buildRepo"/>
- <property name="basews" value="${ws}"/>
- <property name="baseos" value="${os}"/>
- <property name="basearch" value="${arch}"/>
- <property name="basenl" value="${nl}"/>
- <property name="bundleId" value="com.samsung.tizen.telephony.call"/>
- <property name="bundleVersion" value="1.3.20.201103241558"/>
- <property name="p2.publishonerror" value="false"/>
-
- <!-- Compiler settings. -->
- <property name="javacFailOnError" value="false"/>
- <property name="javacDebugInfo" value="on"/>
- <property name="javacVerbose" value="false"/>
- <property name="logExtension" value=".log"/>
- <property name="compilerArg" value=""/>
- <condition property="dir_bootclasspath" value="${java.home}/../Classes">
- <os family="mac"/>
- </condition>
- <property name="dir_bootclasspath" value="${java.home}/lib"/>
- <path id="path_bootclasspath">
- <fileset dir="${dir_bootclasspath}">
- <include name="*.jar"/>
- </fileset>
- </path>
- <property name="bootclasspath" refid="path_bootclasspath"/>
- <property name="bundleJavacSource" value="1.6"/>
- <property name="bundleJavacTarget" value="1.6"/>
- <condition property="bundleBootClasspath" value="${JavaSE-1.6}" >
- <isset property="JavaSE-1.6"/>
- </condition>
- <property name="bundleBootClasspath" value="${bootclasspath}"/>
-
- <target name="init" depends="properties">
- <condition property="pluginTemp" value="${buildTempFolder}/plugins" >
- <isset property="buildTempFolder"/>
- </condition>
- <property name="pluginTemp" value="${basedir}"/>
- <condition property="build.result.folder" value="${pluginTemp}/com.samsung.tizen.telephony.call_1.3.20.201103241558" >
- <isset property="buildTempFolder"/>
- </condition>
- <property name="build.result.folder" value="${basedir}"/>
- <property name="temp.folder" value="${basedir}/temp.folder"/>
- <property name="plugin.destination" value="${basedir}"/>
- <condition property="p2.publish.parts" value="true" >
- <istrue value="${p2.gathering}"/>
- </condition>
- <property name="compilation.problem.marker" value="${build.result.folder}/compilation.problem"/>
- <condition property="compilation.problem.marker.exists" value="true" >
- <and>
- <available file="${compilation.problem.marker}"/>
- <isfalse value="p2.publishonerror"/>
- </and>
- </condition>
- </target>
-
- <target name="properties" if="eclipse.running">
- <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
-
- </target>
-
- <target name="build.update.jar" depends="init" description="Build the plug-in: com.samsung.tizen.telephony.call for an update site.">
- <delete dir="${temp.folder}"/>
- <mkdir dir="${temp.folder}"/>
- <antcall target="build.jars"/>
- <antcall target="gather.bin.parts">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <jar destfile="${plugin.destination}/com.samsung.tizen.telephony.call_1.3.20.201103241558.jar" basedir="${temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558" filesetmanifest="merge"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <target name="@dot" depends="init" unless="@dot" description="Create jar: com.samsung.tizen.telephony.call @dot.">
- <delete dir="${build.result.folder}/@dot"/>
- <mkdir dir="${build.result.folder}/@dot"/>
- <path id="@dot.classpath">
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui_3.5.2.M20100120-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/runtime_registry_compatibility.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20090413.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/javax.servlet_2.5.0.v200806031605.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.swt_3.5.2.v3557f.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.jface_3.5.2.M20100120-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.commands_3.5.0.I20090525-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/compatibility.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/e4-workbench.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800"/>
- <pathelement path="../../../eclipse/plugins/com.ibm.icu_4.0.1.v20090822.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.help_3.4.1.v20090805_35x.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.jface.databinding_1.3.1.M20090826-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.databinding.observable_1.2.0.M20090902-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.databinding.property_1.2.0.M20090819-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.databinding_1.2.0.M20090819-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530.jar"/>
- <pathelement path="../org.eclipse.core.resources.nl_ko/org.eclipse.core.resources.nl_ko_3.5.0.v20100814074441.jar"/>
- <pathelement path="../org.eclipse.core.resources.nl_ko"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ant.core_3.2.101.v20091110_r352.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.variables_3.2.200.v20090521.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.filesystem.linux.x86_1.3.0.R35x_v20091203-1235.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.forms_3.4.1.v20090714_35x.jar"/>
- <pathelement path="../com.samsung.tizen.common/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.common_1.3.20.201103241558/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.common/@dot"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.common_1.3.20.201103241558/@dot"/>
- <pathelement path="../org.eclipse.ui.ide/bin"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide_3.5.2.M20100113-0800/bin"/>
- <pathelement path="../org.eclipse.ui.ide/e4-ide.jar"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide_3.5.2.M20100113-0800/e4-ide.jar"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide/@dot"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide_3.5.2.M20100113-0800/@dot"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.jface.text_3.5.2.r352_v20091118-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.text_3.5.0.v20090513-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.engine_1.0.102.R35x_v20091117.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.core_1.0.101.R35x_v20090819.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.metadata_1.0.101.R35x_v20100112.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.metadata.repository_1.0.101.R35x_v20090812.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.repository_1.0.1.R35x_v20100105.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.security_1.0.100.v20090520-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.filetransfer_3.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf_3.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.ssl_1.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.concurrent_1.0.1.R35x_v20100209.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.identity_3.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.provider.filetransfer_3.0.1.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.net_1.2.1.r35x_20090812-1200.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.net.linux.x86_1.1.0.I20081021.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.artifact.repository_1.0.101.R35x_v20090721.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.jarprocessor_1.0.100.v20090520-1905.jar"/>
- <pathelement path="../com.samsung.tizen.injector/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.injector_1.3.20.201103241558/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.injector/@dot"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.injector_1.3.20.201103241558/@dot"/>
- <pathelement path="../com.samsung.tizen.connection/bin"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.connection_1.3.20.201103241558/bin"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.connection/@dot"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.connection_1.3.20.201103241558/@dot"/>
- <pathelement path="../com.samsung.tizen.connection.linux/bin/"/>
- <pathelement path="../com.samsung.tizen.connection.linux/@dot"/>
- <pathelement path="../com.samsung.tizen.connection.windows/bin/"/>
- <pathelement path="../com.samsung.tizen.connection.windows/@dot"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.console_3.4.0.v20090513.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.5.1.r352_v20100105.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.compare.core_3.5.0.I20090430-0408.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.debug.ui_3.5.2.v20091028_r352.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.debug.core_3.5.1.v20091103_r352.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.editors_3.5.0.v20090527-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.filebuffers_3.5.0.v20090526-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.ui_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.services_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.core_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.efs_2.1.100.v200905272300.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.files.core_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.processes.core_3.1.0.v200905272300.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.shells.core_3.1.0.v200905272300.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.terminals.core_1.0.1.v200908051630.jar"/>
- <pathelement path="../../../eclipse/plugins/com.jcraft.jsch_0.1.41.v200903070017.jar"/>
- </path>
- <!-- compile the source code -->
- <javac destdir="${build.result.folder}/@dot" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" >
- <compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
- <classpath refid="@dot.classpath" />
- <src path="src/" />
- <compilerarg value="@${basedir}/javaCompiler...args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
- <compilerarg line="-log '${build.result.folder}/@dot${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
- </javac>
- <antcall target="checkCompilationResults"/>
- <!-- Copy necessary resources -->
- <copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
- <fileset dir="src/">
- <exclude name="**/*.java"/>
- <exclude name="**/package.htm*"/>
- </fileset>
- </copy>
- </target>
-
- <target name="src.zip" depends="init" unless="src.zip">
- <mkdir dir="${build.result.folder}"/>
- <antcall target="zip.src.zip"/>
- </target>
- <target name="zip.src.zip">
- <zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
- <fileset dir="src/">
- <include name="**/*.java"/>
- </fileset>
- </zip>
- </target>
- <target name="copy.src.zip">
- <copy todir="${source.destination.folder}/" failonerror="true" overwrite="true">
- <fileset dir="src/">
- <include name="**/*.java"/>
- </fileset>
- </copy>
- </target>
-
- <target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: com.samsung.tizen.telephony.call.">
- <delete file="${compilation.problem.marker}" quiet="true"/>
- <available property="@dot" file="${build.result.folder}/@dot"/>
- <antcall target="@dot"/>
- </target>
-
- <target name="checkCompilationResults" if="compilation.error.occured">
- <echo file="${compilation.problem.marker}" message="com.samsung.tizen.telephony.call : compilation.error.occured=${compilation.error.occured}"/>
- </target>
-
- <target name="build.sources" depends="init">
- <available property="src.zip" file="${build.result.folder}/src.zip"/>
- <antcall target="src.zip"/>
- </target>
-
- <target name="publish.bin.parts" depends="init" if="p2.publish.parts" unless="compilation.problem.marker.exists">
- <mkdir dir="${build.result.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558"/>
- <copy todir="${build.result.folder}" failonerror="true" overwrite="true">
- <fileset dir="${basedir}">
- <include name="META-INF/MANIFEST.MF"/>
- <include name="plugin.xml"/>
- <include name="fragment.xml"/>
- </fileset>
- </copy>
- <eclipse.versionReplacer path="${build.result.folder}" version="1.3.20.201103241558"/>
- <antcall target="apitools.generation">
- <param name="target.folder" value="${build.result.folder}"/>
- <param name="projectLocation" value="${basedir}"/>
- <param name="binary.folders" value="${build.result.folder}/@dot"/>
- <param name="projectName" value="${bundleId}_${bundleVersion}"/>
- </antcall>
- <eclipse.gatherBundle
- metadataRepository="${p2.build.repo}"
- artifactRepository="${p2.build.repo}"
- buildResultFolder="${build.result.folder}"
- unpack="false"
- baseDirectory="${basedir}"
- />
- </target>
-
- <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558"/>
- <copy todir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558" failonerror="true" overwrite="false">
- <fileset dir="${build.result.folder}/@dot">
- <include name="**"/>
- </fileset>
- </copy>
- <copy todir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558" failonerror="true" overwrite="true">
- <fileset dir="${basedir}">
- <include name="plugin.xml"/>
- <include name="META-INF/"/>
- </fileset>
- </copy>
- <eclipse.versionReplacer path="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558" version="1.3.20.201103241558"/>
- <antcall target="apitools.generation">
- <param name="target.folder" value="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558"/>
- <param name="projectLocation" value="${basedir}"/>
- <param name="binary.folders" value="${build.result.folder}/@dot"/>
- <param name="projectName" value="${bundleId}_${bundleVersion}"/>
- </antcall>
- </target>
-
- <target name="build.zips" depends="init">
- </target>
-
- <target name="gather.sources" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558"/>
- <copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558" failonerror="false" overwrite="false"/>
- <antcall target="copy.src.includes">
- <param name="source.destination.folder" value="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558"/>
- </antcall>
- </target>
-
- <target name="gather.individual.sources" depends="init">
- <antcall target="copy.src.zip">
- <param name="source.destination.folder" value="${destination.temp.folder}"/>
- </antcall>
- <antcall target="copy.src.includes">
- <param name="source.destination.folder" value="${destination.temp.folder}"/>
- </antcall>
- </target>
-
- <target name="copy.src.includes" depends="init">
- </target>
-
- <target name="gather.logs" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558"/>
- <copy todir="${destination.temp.folder}/com.samsung.tizen.telephony.call_1.3.20.201103241558" failonerror="false" overwrite="false">
- <fileset dir="${build.result.folder}">
- <include name="@dot${logExtension}"/>
- </fileset>
- </copy>
- </target>
-
- <target name="clean" depends="init" description="Clean the plug-in: com.samsung.tizen.telephony.call of all the zips, jars and logs created.">
- <delete dir="${build.result.folder}/@dot"/>
- <delete file="${build.result.folder}/src.zip"/>
- <delete file="${plugin.destination}/com.samsung.tizen.telephony.call_1.3.20.201103241558.jar"/>
- <delete file="${plugin.destination}/com.samsung.tizen.telephony.call_1.3.20.201103241558.zip"/>
- <delete dir="${temp.folder}"/>
- <delete file="${compilation.problem.marker}" quiet="true"/>
- </target>
-
- <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
- <eclipse.convertPath fileSystemPath="/home/taeyoung/SLPSDK/git/samsung-sdk-ide/com.samsung.tizen.telephony.call" property="resourcePath"/>
- <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
- </target>
-
- <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.samsung.tizen.telephony.call.">
- <delete dir="${temp.folder}"/>
- <mkdir dir="${temp.folder}"/>
- <antcall target="build.jars"/>
- <antcall target="build.sources"/>
- <antcall target="gather.bin.parts">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <antcall target="gather.sources">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <delete>
- <fileset dir="${temp.folder}">
- <include name="**/*.bin${logExtension}"/>
- </fileset>
- </delete>
- <zip destfile="${plugin.destination}/com.samsung.tizen.telephony.call_1.3.20.201103241558.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <target name="apitools.generation" if="generateAPIDescription">
- <apitooling.apigeneration projectName="${projectName}" project="${projectLocation}" binary="${binary.folders}" target="${target.folder}" />
- </target>
-
-</project>
+++ /dev/null
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui_3.5.2.M20100120-0800.jar[~org/eclipse/ui/internal/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar[~org/eclipse/core/internal/preferences/legacy/*:~org/eclipse/core/internal/runtime/*:+org/eclipse/core/runtime/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar[+org/eclipse/osgi/event/*:+org/eclipse/osgi/framework/console/*:+org/eclipse/osgi/framework/eventmgr/*:+org/eclipse/osgi/framework/log/*:+org/eclipse/osgi/launch/*:+org/eclipse/osgi/service/datalocation/*:+org/eclipse/osgi/service/debug/*:+org/eclipse/osgi/service/environment/*:+org/eclipse/osgi/service/localization/*:+org/eclipse/osgi/service/pluginconversion/*:+org/eclipse/osgi/service/resolver/*:+org/eclipse/osgi/service/runnable/*:+org/eclipse/osgi/service/security/*:+org/eclipse/osgi/service/urlconversion/*:+org/eclipse/osgi/signedcontent/*:+org/eclipse/osgi/storagemanager/*:+org/eclipse/osgi/util/*:+org/osgi/framework/*:+org/osgi/framework/launch/*:+org/osgi/framework/hooks/service/*:+org/osgi/service/condpermadmin/*:~org/osgi/service/framework/*:+org/osgi/service/packageadmin/*:+org/osgi/service/permissionadmin/*:+org/osgi/service/startlevel/*:+org/osgi/service/url/*:+org/osgi/util/tracker/*:~org/eclipse/core/runtime/adaptor/*:~org/eclipse/core/runtime/internal/adaptor/*:~org/eclipse/core/runtime/internal/stats/*:~org/eclipse/osgi/baseadaptor/*:~org/eclipse/osgi/baseadaptor/bundlefile/*:~org/eclipse/osgi/baseadaptor/hooks/*:~org/eclipse/osgi/baseadaptor/loader/*:~org/eclipse/osgi/framework/adaptor/*:~org/eclipse/osgi/framework/debug/*:~org/eclipse/osgi/framework/internal/core/*:~org/eclipse/osgi/framework/internal/protocol/*:~org/eclipse/osgi/framework/internal/protocol/bundleentry/*:~org/eclipse/osgi/framework/internal/protocol/bundleresource/*:~org/eclipse/osgi/framework/internal/protocol/reference/*:~org/eclipse/osgi/framework/internal/reliablefile/*:~org/eclipse/osgi/framework/util/*:~org/eclipse/osgi/internal/baseadaptor/*:~org/eclipse/osgi/internal/composite/*:~org/eclipse/osgi/internal/loader/*:~org/eclipse/osgi/internal/loader/buddy/*:~org/eclipse/osgi/internal/module/*:~org/eclipse/osgi/internal/profile/*:~org/eclipse/osgi/internal/resolver/*:~org/eclipse/osgi/internal/serviceregistry/*:~org/eclipse/osgi/internal/permadmin/*:~org/eclipse/osgi/internal/provisional/service/security/*:~org/eclipse/osgi/internal/provisional/verifier/*:~org/eclipse/osgi/internal/service/security/*:~org/eclipse/osgi/internal/signedcontent/*:~org/eclipse/osgi/service/internal/composite/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar[~org/eclipse/core/internal/boot/*:~org/eclipse/core/internal/runtime/*:+org/eclipse/core/runtime/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar[~org/eclipse/core/internal/jobs/*:+org/eclipse/core/runtime/jobs/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/runtime_registry_compatibility.jar[~org/eclipse/core/internal/adapter/*:~org/eclipse/core/internal/registry/*:~org/eclipse/core/internal/registry/osgi/*:~org/eclipse/core/internal/registry/spi/*:+org/eclipse/core/runtime/*:+org/eclipse/core/runtime/dynamichelpers/*:+org/eclipse/core/runtime/spi/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800[~org/eclipse/core/internal/adapter/*:~org/eclipse/core/internal/registry/*:~org/eclipse/core/internal/registry/osgi/*:~org/eclipse/core/internal/registry/spi/*:+org/eclipse/core/runtime/*:+org/eclipse/core/runtime/dynamichelpers/*:+org/eclipse/core/runtime/spi/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar[~org/eclipse/core/internal/adapter/*:~org/eclipse/core/internal/registry/*:~org/eclipse/core/internal/registry/osgi/*:~org/eclipse/core/internal/registry/spi/*:+org/eclipse/core/runtime/*:+org/eclipse/core/runtime/dynamichelpers/*:+org/eclipse/core/runtime/spi/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar[~org/eclipse/core/internal/preferences/*:~org/eclipse/core/internal/preferences/exchange/*:+org/eclipse/core/runtime/preferences/*:+org/osgi/service/prefs/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar[~org/eclipse/core/internal/content/*:+org/eclipse/core/runtime/content/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20090413.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar[+org/eclipse/equinox/app/*:~org/eclipse/equinox/internal/app/*:+org/osgi/service/application/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/javax.servlet_2.5.0.v200806031605.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.swt_3.5.2.v3557f.jar[+org/eclipse/swt/*:+org/eclipse/swt/accessibility/*:+org/eclipse/swt/awt/*:+org/eclipse/swt/browser/*:+org/eclipse/swt/custom/*:+org/eclipse/swt/dnd/*:+org/eclipse/swt/events/*:+org/eclipse/swt/graphics/*:+org/eclipse/swt/layout/*:+org/eclipse/swt/opengl/*:+org/eclipse/swt/printing/*:+org/eclipse/swt/program/*:+org/eclipse/swt/widgets/*:~org/eclipse/swt/internal/*:~org/eclipse/swt/internal/image/*:~org/eclipse/swt/internal/theme/*:~org/eclipse/swt/internal/accessibility/gtk/*:~org/eclipse/swt/internal/cairo/*:~org/eclipse/swt/internal/cde/*:~org/eclipse/swt/internal/gnome/*:~org/eclipse/swt/internal/gtk/*:~org/eclipse/swt/internal/mozilla/*:~org/eclipse/swt/internal/opengl/glx/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f.jar[+org/eclipse/swt/*:+org/eclipse/swt/accessibility/*:+org/eclipse/swt/awt/*:+org/eclipse/swt/browser/*:+org/eclipse/swt/custom/*:+org/eclipse/swt/dnd/*:+org/eclipse/swt/events/*:+org/eclipse/swt/graphics/*:+org/eclipse/swt/layout/*:+org/eclipse/swt/opengl/*:+org/eclipse/swt/printing/*:+org/eclipse/swt/program/*:+org/eclipse/swt/widgets/*:~org/eclipse/swt/internal/*:~org/eclipse/swt/internal/image/*:~org/eclipse/swt/internal/theme/*:~org/eclipse/swt/internal/accessibility/gtk/*:~org/eclipse/swt/internal/cairo/*:~org/eclipse/swt/internal/cde/*:~org/eclipse/swt/internal/gnome/*:~org/eclipse/swt/internal/gtk/*:~org/eclipse/swt/internal/mozilla/*:~org/eclipse/swt/internal/opengl/glx/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.jface_3.5.2.M20100120-0800.jar[+org/eclipse/jface/*:+org/eclipse/jface/action/*:+org/eclipse/jface/action/images/*:+org/eclipse/jface/bindings/*:+org/eclipse/jface/bindings/keys/*:+org/eclipse/jface/bindings/keys/formatting/*:+org/eclipse/jface/commands/*:+org/eclipse/jface/contexts/*:+org/eclipse/jface/dialogs/*:+org/eclipse/jface/dialogs/images/*:+org/eclipse/jface/fieldassist/*:+org/eclipse/jface/fieldassist/images/*:+org/eclipse/jface/images/*:~org/eclipse/jface/internal/*:~org/eclipse/jface/internal/provisional/action/*:+org/eclipse/jface/layout/*:+org/eclipse/jface/menus/*:+org/eclipse/jface/operation/*:+org/eclipse/jface/preference/*:+org/eclipse/jface/preference/images/*:+org/eclipse/jface/resource/*:+org/eclipse/jface/util/*:+org/eclipse/jface/viewers/*:+org/eclipse/jface/viewers/deferred/*:+org/eclipse/jface/window/*:+org/eclipse/jface/wizard/*:+org/eclipse/jface/wizard/images/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.commands_3.5.0.I20090525-2000.jar[+org/eclipse/core/commands/*:+org/eclipse/core/commands/common/*:+org/eclipse/core/commands/contexts/*:+org/eclipse/core/commands/operations/*:+org/eclipse/core/commands/util/*:~org/eclipse/core/internal/commands/operations/*:~org/eclipse/core/internal/commands/util/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/compatibility.jar[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/e4-workbench.jar[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/com.ibm.icu_4.0.1.v20090822.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.help_3.4.1.v20090805_35x.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.jface.databinding_1.3.1.M20090826-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.databinding.observable_1.2.0.M20090902-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.databinding.property_1.2.0.M20090819-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.databinding_1.2.0.M20090819-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.core.resources.nl_ko/org.eclipse.core.resources.nl_ko_3.5.0.v20100814074441.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.core.resources.nl_ko[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ant.core_3.2.101.v20091110_r352.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.variables_3.2.200.v20090521.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.filesystem.linux.x86_1.3.0.R35x_v20091203-1235.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.forms_3.4.1.v20090714_35x.jar[+org/eclipse/ui/forms/*:+org/eclipse/ui/forms/editor/*:+org/eclipse/ui/forms/events/*:+org/eclipse/ui/forms/widgets/*:~org/eclipse/ui/internal/forms/*:~org/eclipse/ui/internal/forms/widgets/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common/bin/[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common_1.3.20.201103241558/bin/[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common/@dot[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common_1.3.20.201103241558/@dot[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide/bin[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide_3.5.2.M20100113-0800/bin[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide/e4-ide.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide_3.5.2.M20100113-0800/e4-ide.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide/@dot[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide_3.5.2.M20100113-0800/@dot[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800.jar[~org/eclipse/ui/internal/views/*:~org/eclipse/ui/internal/views/contentoutline/*:~org/eclipse/ui/internal/views/properties/*:+org/eclipse/ui/views/contentoutline/*:+org/eclipse/ui/views/properties/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.jface.text_3.5.2.r352_v20091118-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.text_3.5.0.v20090513-2000.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.engine_1.0.102.R35x_v20091117.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.core_1.0.101.R35x_v20090819.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.metadata_1.0.101.R35x_v20100112.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.metadata.repository_1.0.101.R35x_v20090812.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.repository_1.0.1.R35x_v20100105.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.security_1.0.100.v20090520-1800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.filetransfer_3.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf_3.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.ssl_1.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.concurrent_1.0.1.R35x_v20100209.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.identity_3.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.provider.filetransfer_3.0.1.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.net_1.2.1.r35x_20090812-1200.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.net.linux.x86_1.1.0.I20081021.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.artifact.repository_1.0.101.R35x_v20090721.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.jarprocessor_1.0.100.v20090520-1905.jar[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector/bin/[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector_1.3.20.201103241558/bin/[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector/@dot[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector_1.3.20.201103241558/@dot[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection/bin[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection_1.3.20.201103241558/bin[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection/@dot[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection_1.3.20.201103241558/@dot[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.linux/bin/[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.linux/@dot[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.windows/bin/[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.windows/@dot[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.console_3.4.0.v20090513.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.5.1.r352_v20100105.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.compare.core_3.5.0.I20090430-0408.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.debug.ui_3.5.2.v20091028_r352.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.debug.core_3.5.1.v20091103_r352.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.editors_3.5.0.v20090527-2000.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.filebuffers_3.5.0.v20090526-2000.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.ui_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.services_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.core_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.efs_2.1.100.v200905272300.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.files.core_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.processes.core_3.1.0.v200905272300.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.shells.core_3.1.0.v200905272300.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.terminals.core_1.0.1.v200908051630.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/com.jcraft.jsch_0.1.41.v200903070017.jar[?**/*]
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<?eclipse version="3.2"?>\r
-<plugin>\r
- <extension\r
- point="com.samsung.tizen.injector.injectorItemProvider">\r
- <itemType\r
- category="Telephony"\r
- class="com.samsung.tizen.telephony.call.TelephonyCall"\r
- id="com.samsung.tizen.telephony.call.TelephonyCall"\r
- name="Telephony Call">\r
- </itemType>\r
- </extension>\r
-</plugin>\r
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call;
-
-import java.util.ArrayList;
-
-import org.eclipse.jface.viewers.TableViewer;
-
-import com.samsung.tizen.common.model.DefaultTableModel;
-import com.samsung.tizen.injector.provider.AbstractInjectorItem;
-import com.samsung.tizen.telephony.call.model.CallListVO;
-import com.samsung.tizen.telephony.call.page.MOMTCall;
-
-public class TelephonyCall extends AbstractInjectorItem {
-
- private DefaultTableModel model = new DefaultTableModel(new CallListVO());
- @Override
- protected void addPages() {
- addPage(new MOMTCall(this, "CALL", model));
-// addPage(new RemoteParty(this, "Remote Party", model));
- }
-
- private ArrayList<TableViewer> viewerList = new ArrayList<TableViewer>();
- public void addViewer(TableViewer viewer){
- viewerList.add(viewer);
- }
-
- public void refresh(){
- for(int i=0;i<viewerList.size();i++){
- viewerList.get(i).refresh();
- }
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.model;
-
-import com.samsung.tizen.common.model.AbstractTableVO;
-
-public class CallListVO extends AbstractTableVO {
-
- private int callId;
- private int status;
- private int multiParty;
- private int momt;
- private String number;
-
- public int getCallId() {
- return callId;
- }
-
- public void setCallId(int callId) {
- this.callId = callId;
- }
-
- public int getStatus() {
- return status;
- }
-
- public void setStatus(int status) {
- this.status = status;
- }
-
- public int getMultiParty() {
- return multiParty;
- }
-
- public void setMultiParty(int multiParty) {
- this.multiParty = multiParty;
- }
-
- public int getMomt() {
- return momt;
- }
-
- public void setMomt(int momt) {
- this.momt = momt;
- }
-
- public String getNumber() {
- return number;
- }
-
- public void setNumber(String number) {
- this.number = number;
- }
-
- @Override
- public String[] getColumnNames() {
- return null;
- }
-
- @Override
- public Object getColumnValue(int index) {
- Object obj = null;
- switch (index) {
- case 0:
- obj = getCallId();
- break;
- case 1:
- obj = getStatus();
- break;
- case 2:
- obj = getMultiParty();
- break;
- case 3:
- obj = getMomt();
- break;
- case 4:
- obj = getNumber();
- break;
- default:
- break;
- }
- return obj;
- }
-
- @Override
- public void setColumnValue(int index, Object value) {
-
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.page;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.ComboBoxCellEditor;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-
-import com.samsung.tizen.common.connection.ConnectionPlugin;
-import com.samsung.tizen.common.connection.ConnectionPlugin.ISelectionListener;
-import com.samsung.tizen.common.control.TableViewContentProvider;
-import com.samsung.tizen.common.control.TableViewLabelProvider;
-import com.samsung.tizen.common.model.DefaultTableModel;
-import com.samsung.tizen.common.util.DialogUtil;
-import com.samsung.tizen.sdblib.FileListingService.FileEntry;
-import com.samsung.tizen.sdblib.IDevice;
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-import com.samsung.tizen.injector.provider.AbstractInjectorItem;
-import com.samsung.tizen.injector.provider.AbstractInjectorPage;
-import com.samsung.tizen.injector.receiver.AbstractInjectorReceiver;
-import com.samsung.tizen.injector.socket.TelephonySocket;
-import com.samsung.tizen.telephony.call.TelephonyCall;
-import com.samsung.tizen.telephony.call.model.CallListVO;
-import com.samsung.tizen.telephony.call.protocol.G01A07;
-import com.samsung.tizen.telephony.call.protocol.G01A21MO;
-import com.samsung.tizen.telephony.call.protocol.G01A21MT;
-import com.samsung.tizen.telephony.call.protocol.G01A22;
-import com.samsung.tizen.telephony.call.protocol.G01A22End;
-import com.samsung.tizen.telephony.call.protocol.G01A23;
-import com.samsung.tizen.telephony.call.protocol.G01A26;
-import com.samsung.tizen.telephony.call.protocol.G01A29;
-import com.samsung.tizen.telephony.call.protocol.G01A62;
-import com.samsung.tizen.telephony.call.resource.ErrorCode;
-
-public class MOMTCall extends AbstractInjectorPage implements
-ISelectionListener{
- boolean listfull = false;
- boolean incomming = false;
- boolean calling = false;
- private IDevice currentDevice;
- private boolean emulChange = false;
-
- public MOMTCall(AbstractInjectorItem item, String name, DefaultTableModel model) {
- super(item, name);
- this.model = model;
- }
-
- private final String[] CALL_TYPE_LIST = {
- "NONE", "VOICE", "DATA", "VIDEO", "MAX"
- };
-
- private String defaultErrorCode = "CALL OK(Success)";
- private ErrorCode ERROR_CODE_LIST = new ErrorCode();
-
- private final String[] STATUS = { "ACTIVE", "HELD", "DIALING", "ALERT",
- "INCOMMING", "WAITING", "MAX" };
- private final String[] MO_MT = { "MO", "MT", "MAX" };
- private final String[] MULTIPARTY = { "FALSE", "TRUE" };
-
- private Label lblMOCallCallId, lblMOCallNumber, lblMOCallCallType;
- private Button butMOCall;
- private Combo cmbMOCallCallStatus;
- private int MOCallevent; //0 - alert, 1 - connect, 2 - disconnect
-
- private Text txtMTCallNumber;
- private Button butMTCallHidden;
- //private Button butMTCallForwardedCall;
- private Button butMTCallConnect;
-
-// private Text txtCallListInformationCallId;
- private Combo cmbCallListInformationCallStatus;
- private Button butCallListInformationCallEnd;
-
- private TableViewer viewer;
- private DefaultTableModel model;
-
- protected void registerReceivers() {
- registerReceiver(new CallList22Receiver());
- registerReceiver(new CallList26Receiver());
- registerReceiver(new CallList29Receiver());
- registerReceiver(new CallReceiver());
- }
-
- protected void createContents() {
- ConnectionPlugin.getDefault().addSelectionListener(this);
- currentDevice = ConnectionPlugin.getDefault().getCurrentDevice();
- createMTCallSection();
- createCallListInformationSection();
- createMOCallSection();
- ((TelephonyCall)getParent()).addViewer(viewer);
- }
-
- private void createMOCallSection() {
- Composite client = formUtil.createSection(parent, "MO Call (Mobile Origination)");
-
- Composite mainComposite = formUtil.createComposite(client, 2);
-
-// String emptyStr = " ";
- formUtil.createLabel(mainComposite, "Call ID : ");
- lblMOCallCallId = formUtil.createLabel(mainComposite, "");
- formUtil.setWidth(lblMOCallCallId, 350);
- formUtil.createLabel(mainComposite, "Number : ");
- lblMOCallNumber = formUtil.createLabel(mainComposite, "");
- formUtil.setWidth(lblMOCallNumber, 350);
- formUtil.createLabel(mainComposite, "Call Type : ");
- lblMOCallCallType = formUtil.createLabel(mainComposite, "");
- formUtil.setWidth(lblMOCallCallType, 350);
-
- Composite subComposite = formUtil.createComposite(client, 2);
- cmbMOCallCallStatus = formUtil.createCombo(subComposite);
- cmbMOCallCallStatus.setEnabled(false);
- formUtil.addComboItem(cmbMOCallCallStatus, ERROR_CODE_LIST.getErrorList(), defaultErrorCode);
- butMOCall = formUtil.createButton(subComposite, "Disconnect", SWT.PUSH);
- butMOCall.setEnabled(false);
- MOCallevent = 0;
- butMOCall.addSelectionListener(new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- switch (MOCallevent) {
- case 0:
- moAlert();
- break;
- case 1:
- moConnect();
- break;
- default:
- moDisconnect();
- break;
- }
- }
- });
- }
-
- void abc(String str){
-
- }
-
- private void createMTCallSection() {
- Composite client = formUtil.createSection(parent, "MT Call (Mobile Termination)");
-
- Composite mainComposite = formUtil.createComposite(client, 3);
- formUtil.createLabel(mainComposite, "Number : ");
- txtMTCallNumber = formUtil.createText(mainComposite, "");
- formUtil.setWidth(txtMTCallNumber, 400);
- Composite buttonComposite = formUtil.createComposite(mainComposite);
-
- formUtil.createLabel(mainComposite, "Call Type : ");
- butMTCallHidden = formUtil.createButton(mainComposite, "Hidden", SWT.CHECK);
-// butMTCallForwardedCall = formUtil.createButton(mainComposite, "Forwarded Call", SWT.CHECK);
-
-// Composite buttonComposite = formUtil.createComposite(client,1);
- butMTCallConnect = formUtil.createButton(buttonComposite, "Connect", SWT.PUSH);
- butMTCallConnect.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- mtConnecct();
- }
- });
- }
-
- private void createCallListInformationSection() {
- Composite client = formUtil.createSection(parent, "Call List Information");
-
-// client.setData(new GridData(GridData.FILL, GridData.FILL, true, false));
-
- String[] columnNames = {
- "Call Id", "Status", "Multiparty", "MO/MT", "Number"
- };
-
- viewer = formUtil.createTableViewer(client, columnNames);
- viewer.setCellEditors(new CellEditor[]{
- null,
- new ComboBoxCellEditor(viewer.getTable(), STATUS),
- new ComboBoxCellEditor(viewer.getTable(), MULTIPARTY),
- new ComboBoxCellEditor(viewer.getTable(), MO_MT),
- null
- });
- viewer.setContentProvider(new TableViewContentProvider());
- viewer.setLabelProvider(new TableViewLabelProvider(viewer));
- viewer.setInput(model);
- viewer.addSelectionChangedListener(new ISelectionChangedListener () {
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();
- if(selection.isEmpty()) {
- cmbCallListInformationCallStatus.setEnabled(false);
- butCallListInformationCallEnd.setEnabled(false);
- } else {
- cmbCallListInformationCallStatus.setEnabled(true);
- butCallListInformationCallEnd.setEnabled(true);
- }
- }
- });
-
- Composite subComposite = formUtil.createComposite(client, 2);
- cmbCallListInformationCallStatus = formUtil.createCombo(subComposite);
- formUtil.addComboItem(cmbCallListInformationCallStatus, ERROR_CODE_LIST.getErrorList(), defaultErrorCode);
- cmbCallListInformationCallStatus.setEnabled(false);
- butCallListInformationCallEnd = formUtil.createButton(subComposite, "Disconnect", SWT.PUSH);
- butCallListInformationCallEnd.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- callEnd();
- }
- });
- butCallListInformationCallEnd.setEnabled(false);
- }
-
- private void callEnd(){
- if(emulChange == true)
- viewer.getTable().setSelection(0, 5);
-
- IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();
- if (selection.isEmpty())
- return;
-
- Object [] objs = selection.toArray();
- for (int i = 0; i < objs.length; i++) {
- int errorCode = ERROR_CODE_LIST.getKey(cmbCallListInformationCallStatus.getText());
- int errorCause0 = errorCode & 0x00ff;
- int errorCause1 = (errorCode>>8) & 0x00ff;
- int callId = ((CallListVO)objs[i]).getCallId();
-
- G01A07 ga1 = new G01A07();
- ga1.intialize();
-
- StructureGA sga1 = ga1.getBody();
- sga1.setInt("ERROR_CAUSE_0", errorCause0);
- sga1.setInt("ERROR_CAUSE_1", errorCause1);
-
- G01A22End ga2 = new G01A22End();
- ga2.intialize();
-
- StructureGA sga2 = ga2.getBody();
- sga2.setInt("CALL_ID", callId);
-
- try {
- injectorSocket.send(ga1);
- injectorSocket.send(ga2);
-
- String mocallID = lblMOCallCallId.getText();
- if(mocallID == "")
- return;
- if(callId == Integer.parseInt(mocallID)) {
- cmbMOCallCallStatus.setEnabled(false);
- butMTCallConnect.setEnabled(true);
-
- butMOCall.setEnabled(false);
- MOCallevent = 0;
-
- lblMOCallCallId.setText("");
- lblMOCallNumber.setText("");
- lblMOCallCallType.setText("");
- }
- } catch (Exception e) {
- e.printStackTrace();
- cmbMOCallCallStatus.setEnabled(false);
- butMTCallConnect.setEnabled(true);
-
- butMOCall.setEnabled(false);
- MOCallevent = 0;
-
- lblMOCallCallId.setText("");
- lblMOCallNumber.setText("");
- lblMOCallCallType.setText("");
- }
- }
- }
-
- private void moDisconnect() {
- int errorCode = ERROR_CODE_LIST.getKey(cmbMOCallCallStatus.getText());
- int errorCause0 = errorCode & 0x00ff;
- int errorCause1 = (errorCode>>8) & 0x00ff;
- String callId = lblMOCallCallId.getText();
-
- G01A07 ga1 = new G01A07();
- ga1.intialize();
-
- StructureGA sga1 = ga1.getBody();
- sga1.setInt("ERROR_CAUSE_0", errorCause0);
- sga1.setInt("ERROR_CAUSE_1", errorCause1);
-
- G01A22End ga2 = new G01A22End();
- ga2.intialize();
-
- StructureGA sga2 = ga2.getBody();
- sga2.setInt("CALL_ID", Integer.parseInt(callId));
-
- try {
- injectorSocket.send(ga1);
- injectorSocket.send(ga2);
-
- cmbMOCallCallStatus.setEnabled(false);
- butMTCallConnect.setEnabled(true);
-
- butMOCall.setEnabled(false);
- MOCallevent = 0;
-
- lblMOCallCallId.setText("");
- lblMOCallNumber.setText("");
- lblMOCallCallType.setText("");
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void moAlert() {
- G01A62 ga = new G01A62();
- ga.intialize();
-
- try {
- injectorSocket.send(ga);
-
- butMTCallConnect.setEnabled(true);
- butMOCall.setText("Connect");
- MOCallevent = 1;
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void moConnect() {
- G01A23 ga = new G01A23();
- ga.intialize();
-
- try {
- injectorSocket.send(ga);
-
- butMOCall.setText("Disconnect");
- MOCallevent = 2;
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public static boolean checkNumberFormat(String noStr) {
- Pattern tellPattern = Pattern.compile( "[^0-9++]");
- Matcher matcher = tellPattern.matcher(noStr);
- return matcher.find();
- }
-
- private void mtConnecct() {
- if(incomming == true)
- {
- DialogUtil.openMessageDialog("This is telephony message.\nUser is busy.\nPlease try again later.");
- return;
- }
-
- if(TelephonySocket.getInstance().callWaiting == false && calling == true)
- {
- DialogUtil.openMessageDialog("This is telephony message.\nUser is busy.\nCall waiting mode of emulator is off.\nPlease try again later.");
- return;
- }
-
- String number = txtMTCallNumber.getText().trim();
- if(number==null||number.length()==0)
- return;
-
- if(number.length() > 15)
- {
- DialogUtil.openMessageDialog("This is telephony message.\nThe maximum length of phone number is 15.");
- return;
- }
-
- if(checkNumberFormat(number))
- {
- DialogUtil.openMessageDialog("This is telephony message.\nWrong phone number.");
- return;
- }
-
- int voice = 0x01;//butMTCallVoice.getSelection()?0x01:0x02;
-// int forwardedCal = butMTCallForwardedCall.getSelection()?0x33:0x00;
- int forwardedCal = 0;
- int hidden = butMTCallHidden.getSelection()?0x01:0x00;
- int numType=0x01;
- int cliPresendInd = 0x01;//cmbMTCallCliPresendInd.getSelectionIndex()+1;
- int noCliCause = 0x00;//cmbMTCallNoCliCause.getSelectionIndex();
-
- G01A21MT ga = new G01A21MT();
- ga.intialize();
-
- StructureGA sga = ga.getBody();
- sga.setInt("CALL_TYPE", voice);
- sga.setInt("FORWARDED_STATUS", forwardedCal);
- sga.setInt("CLIR_STATUS",hidden);
- sga.setInt("NUM_LEN",number.getBytes().length);
- sga.setInt("NUM_TYPE", numType);
- sga.setInt("CLI_PRESENT_ID", cliPresendInd);
- sga.setInt("NO_CLI_CAUSE", noCliCause);
- sga.setByteArray("CALL_NUMBER", number.getBytes());
-
- try {
- injectorSocket.send(ga);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public class CallList22Receiver extends AbstractInjectorReceiver{ //끊었을 때
- public void run(AbstractGA aga) {
- model.clear();
- StructureGA header = aga.getHeader();
- int loopCount = header.getInt("COUNT");
- int addCnt = 0;
- boolean chmodisc = false;
-
- StructureGA body = aga.getBody();
- incomming = false;
- for(int i=0; i < loopCount; i++){
- CallListVO cl = new CallListVO();
- cl.setCallId(body.getInt("IDX",i));
- cl.setStatus(body.getInt("STAT",i)-1);
- cl.setMultiParty(body.getInt("MULTIPARTY",i));
- cl.setMomt(body.getInt("DIR",i) - 1);
- cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());
- if(cl.getStatus() == -1)
- {
- loopCount++;
- addCnt++;
- continue;
- }
- else if(cl.getStatus() == 4 || cl.getStatus() == 5)
- incomming = true;
-
- String tmp1 = cl.getNumber();
- String tmp2 = lblMOCallNumber.getText();
- if(tmp1.compareTo(tmp2) == 0)
- chmodisc = true;
-
- model.add(cl);
- }
- loopCount -= addCnt;
- ((TelephonyCall)getParent()).refresh();
- if(loopCount != 6)
- listfull = false;
-
- if(loopCount == 0)
- calling = false;
-
- if(chmodisc == false)
- {
- cmbMOCallCallStatus.setEnabled(false);
- butMTCallConnect.setEnabled(true);
-
- butMOCall.setEnabled(false);
- MOCallevent = 0;
-
- lblMOCallCallId.setText("");
- lblMOCallNumber.setText("");
- lblMOCallCallType.setText("");
- }
- }
- @Override
- public AbstractGA createTransferObject() {
- return new G01A22();
- }
- }
-
- public class CallList26Receiver extends AbstractInjectorReceiver{ //받았을 때
- @Override
- public void run(AbstractGA aga) {
- model.clear();
- StructureGA header = aga.getHeader();
- int loopCount = header.getInt("COUNT");
- incomming = false;
-
- StructureGA body = aga.getBody();
- for(int i=0; i < loopCount; i++){
- CallListVO cl = new CallListVO();
- cl.setCallId(body.getInt("IDX",i));
- cl.setStatus(body.getInt("STAT",i)-1);
- cl.setMultiParty(body.getInt("MULTIPARTY",i));
- cl.setMomt(body.getInt("DIR",i) - 1);
- cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());
-
- if(cl.getStatus() == 4 || cl.getStatus() == 5)
- incomming = true;
-
- model.add(cl);
- calling = true;
- }
- ((TelephonyCall)getParent()).refresh();
- }
- @Override
- public AbstractGA createTransferObject() {
- return new G01A26();
- }
- }
-
- public class CallList29Receiver extends AbstractInjectorReceiver{//걸릴때
- @Override
- public void run(AbstractGA aga) {
- model.clear();
- StructureGA header = aga.getHeader();
- int loopCount = header.getInt("COUNT");
- int addCnt = 0;
- incomming = false;
-
- StructureGA body = aga.getBody();
- for(int i=0; i < loopCount; i++){
- CallListVO cl = new CallListVO();
- cl.setCallId(body.getInt("IDX",i));
- cl.setStatus(body.getInt("STAT",i)-1);
- cl.setMultiParty(body.getInt("MULTIPARTY",i));
- cl.setMomt(body.getInt("DIR",i) - 1);
- cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());
- if(cl.getStatus() == -1)
- {
- loopCount++;
- addCnt++;
- continue;
- }
- else if(cl.getStatus() == 4 || cl.getStatus() == 5)
- incomming = true;
-
- model.add(cl);
- calling = true;
- }
- loopCount -= addCnt;
- ((TelephonyCall)getParent()).refresh();
- if(emulChange == true)
- {
- callEnd();
- calling = false;
- emulChange = false;
- }
-
- if(listfull == true)
- DialogUtil.openMessageDialog("This is telephony message.\nThere are many pending connections.\nCan't connect anymore.");
-
- if(loopCount == 6)
- listfull = true;
- else
- listfull = false;
- }
- @Override
- public AbstractGA createTransferObject() {
- return new G01A29();
- }
- }
-
- public class CallReceiver extends AbstractInjectorReceiver{
- @Override
- public void run(AbstractGA aga) {
- StructureGA sga = aga.getBody();
- int callId = sga.getInt("CALL_ID");
- int callType = sga.getInt("CALL_TYPE");
- String callNumber = new String(sga.getByteArray("CALL_NUMBER")).trim();
-
- lblMOCallCallId.setText(new Integer(callId).toString());
- lblMOCallNumber.setText(callNumber);
- lblMOCallCallType.setText(CALL_TYPE_LIST[callType]);
-
- butMOCall.setEnabled(true);
- butMOCall.setText("Alert");
- MOCallevent = 0;
-
- cmbMOCallCallStatus.setEnabled(true);
-
- butMTCallConnect.setEnabled(false);
- }
-
- @Override
- public AbstractGA createTransferObject() {
- return new G01A21MO();
- }
- }
-
- @Override
- public void selectionChanged(FileEntry selectedEntry) {
- if( selectedEntry == null)
- {
- return;
- }
- else if (!selectedEntry.getFileListingService().getDevice().isEmulator())
- return;
-
- if(currentDevice != null)
- {
- if (currentDevice.getSerialNumber() != selectedEntry.getName()) {
- if(lblMOCallNumber.getText() != "")
- moDisconnect();
-
- emulChange = true;
- callEnd();
- }
- }
- currentDevice = ConnectionPlugin.getDefault().getCurrentDevice();
- }
-}
-
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.page;
-
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.ComboBoxCellEditor;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Text;
-
-import com.samsung.tizen.common.control.TableViewContentProvider;
-import com.samsung.tizen.common.control.TableViewLabelProvider;
-import com.samsung.tizen.common.model.DefaultTableModel;
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-import com.samsung.tizen.injector.provider.AbstractInjectorItem;
-import com.samsung.tizen.injector.provider.AbstractInjectorPage;
-import com.samsung.tizen.telephony.call.TelephonyCall;
-import com.samsung.tizen.telephony.call.protocol.G01A07;
-import com.samsung.tizen.telephony.call.protocol.G01A22End;
-import com.samsung.tizen.telephony.call.protocol.G03A58;
-import com.samsung.tizen.telephony.call.protocol.G03A59;
-import com.samsung.tizen.telephony.call.protocol.G0DA09;
-import com.samsung.tizen.telephony.call.protocol.G0DA0B;
-import com.samsung.tizen.telephony.call.resource.ErrorCode;
-
-public class RemoteParty extends AbstractInjectorPage{
-
- public RemoteParty(AbstractInjectorItem item, String name, DefaultTableModel model) {
- super(item, name);
- this.model = model;
- }
-
- private final String[] CALL_PROCESS_LIST = {
- "Hold/Retrieve", "Join", "Split"
- };
-
- private String defaultErrorCode = "No-Errors";
- private ErrorCode ERROR_CODE_LIST = new ErrorCode();
-
- private final String[] STATUS = { "ACTIVE", "HELD", "DIALING", "ALERT",
- "INCOMMING", "WAITING", "MAX" };
- private final String[] MO_MT = { "MO", "MT", "MAX" };
- private final String[] MULTIPARTY = { "FALSE", "TRUE" };
-
- private Text txtCallListInformationCallId;
- private Combo cmbCallListInformationCallStatus;
- private Button butCallListInformationCallEnd;
-
- private Button butRemotePartyHold, butRemotePartyActive, butRemotePartySet;
- private Combo cmbRemotePartyCallProcess, cmbRemotePartyCallStatus;
-
- private TableViewer viewer;
- private DefaultTableModel model;
-
- protected void createContents() {
- createCallListInformationSection();
- createRemoteParty();
- ((TelephonyCall)getParent()).addViewer(viewer);
- }
-
- protected void registerReceivers() {
- }
-
- private void createCallListInformationSection() {
- Composite client = formUtil.createSection(parent, "Call List Information");
-
- Composite mainComposite = formUtil.createComposite(client);
- String[] columnNames = { "Call Id", "Status", "Multiparty", "MO/MT",
- "Number" };
- viewer = formUtil.createTableViewer(mainComposite, columnNames);
- viewer.setCellEditors(new CellEditor[]{
- null,
- new ComboBoxCellEditor(viewer.getTable(), STATUS),
- new ComboBoxCellEditor(viewer.getTable(), MULTIPARTY),
- new ComboBoxCellEditor(viewer.getTable(), MO_MT),
- null
- });
- viewer.setContentProvider(new TableViewContentProvider());
- viewer.setLabelProvider(new TableViewLabelProvider(viewer));
- viewer.setInput(model);
-
- Composite buttonComposite = formUtil.createComposite(mainComposite,4);
- formUtil.createLabel(buttonComposite, "Call Id : ");
- txtCallListInformationCallId = formUtil.createText(buttonComposite, "");
- txtCallListInformationCallId.setTextLimit(1);
- cmbCallListInformationCallStatus = formUtil.createCombo(buttonComposite);
- formUtil.addComboItem(cmbCallListInformationCallStatus, ERROR_CODE_LIST.getErrorList(), defaultErrorCode);
- butCallListInformationCallEnd = formUtil.createButton(buttonComposite, "Call End",SWT.PUSH);
- butCallListInformationCallEnd.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- callEnd();
- }
- });
-
- }
-
- private void createRemoteParty() {
- Composite client = formUtil.createSection(parent, "Remote Party");
-
- Composite mainComposite = formUtil.createComposite(client);
- formUtil.createLabel(mainComposite, "Notify Indication");
- Composite buttonComposite = formUtil.createComposite(mainComposite,2);
- butRemotePartyHold = formUtil.createButton(buttonComposite, "Hold",SWT.PUSH);
- butRemotePartyHold.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- hold();
- }
- });
- butRemotePartyActive = formUtil.createButton(buttonComposite, "Active",SWT.PUSH);
- butRemotePartyActive.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- active();
- }
- });
-
- formUtil.createLabel(mainComposite, "Set Response Error");
- buttonComposite = formUtil.createComposite(mainComposite,3);
- cmbRemotePartyCallProcess = formUtil.createCombo(buttonComposite);
- formUtil.addComboItem(cmbRemotePartyCallProcess, CALL_PROCESS_LIST);
- cmbRemotePartyCallStatus = formUtil.createCombo(buttonComposite);
- formUtil.addComboItem(cmbRemotePartyCallStatus, ERROR_CODE_LIST.getErrorList(), defaultErrorCode);
- butRemotePartySet = formUtil.createButton(buttonComposite, "Set",SWT.PUSH);
- butRemotePartySet.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- int idx = cmbRemotePartyCallProcess.getSelectionIndex();
- if(idx==0)
- holdRetrieve();
- else if(idx==1)
- join();
- else if(idx==2)
- split();
- }
- });
-
- }
-
- private void callEnd(){
- int errorCode = ERROR_CODE_LIST.getKey(cmbCallListInformationCallStatus.getText());
- int errorCause0 = errorCode & 0x00ff;
- int errorCause1 = (errorCode>>8) & 0x00ff;
- String callId = txtCallListInformationCallId.getText();
-
- G01A07 ga1 = new G01A07();
- ga1.intialize();
-
- StructureGA sga1 = ga1.getBody();
- sga1.setInt("ERROR_CAUSE_0", errorCause0);
- sga1.setInt("ERROR_CAUSE_1", errorCause1);
-
- G01A22End ga2 = new G01A22End();
- ga2.intialize();
-
- StructureGA sga2 = ga2.getBody();
- sga2.setInt("CALL_ID", Integer.parseInt(callId));
-
-
- try {
- injectorSocket.send(ga1);
- injectorSocket.send(ga2);
-
- txtCallListInformationCallId.setText("");
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void hold() {
- G03A58 ga = new G03A58();
- ga.intialize();
-
- try {
- injectorSocket.send(ga);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void active() {
- G03A59 ga = new G03A59();
- ga.intialize();
-
- try {
- injectorSocket.send(ga);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void holdRetrieve() {
- AbstractGA[] gas = createResponseErrorGA(new G0DA09());
-
- try {
- injectorSocket.send(gas[0]);
- injectorSocket.send(gas[1]);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void join() {
- AbstractGA[] gas = createResponseErrorGA(new G0DA0B());
-
- try {
- injectorSocket.send(gas[0]);
- injectorSocket.send(gas[1]);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private void split() {
- AbstractGA[] gas = createResponseErrorGA(new G0DA09());
-
- try {
- injectorSocket.send(gas[0]);
- injectorSocket.send(gas[1]);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private AbstractGA[] createResponseErrorGA(AbstractGA ga2){
- int errorCode = ERROR_CODE_LIST.getKey(cmbRemotePartyCallStatus.getText());
- int errorCause0 = errorCode & 0x00ff;
- int errorCause1 = (errorCode>>8) & 0x00ff;
-
- G01A07 ga1 = new G01A07();
- ga1.intialize();
-
- StructureGA sga1 = ga1.getBody();
- sga1.setInt("ERROR_CAUSE_0", errorCause0);
- sga1.setInt("ERROR_CAUSE_1", errorCause1);
-
- ga2.intialize();
-
- StructureGA sga2 = ga2.getBody();
- sga2.setInt("ERROR_CAUSE_0", errorCause0);
- sga2.setInt("ERROR_CAUSE_1", errorCause1);
-
- AbstractGA[] gas = new AbstractGA[2];
- gas[0] = ga1;
- gas[1] = ga2;
-
- return gas;
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A07 extends AbstractGA{
-
- public G01A07(){
- super(0x01, 0x07);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("ERROR_CAUSE_0");
- ga.addByteItem("ERROR_CAUSE_1");
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A21MO extends AbstractGA{
-
- public G01A21MO(){
- super(0x01, 0x21);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("CALL_ID");
- ga.addByteItem("CALL_TYPE");
- ga.addByteItem("LEN");
- ga.addByteArrayItem("CALL_NUMBER", 10);
- }
-
- @Override
- protected void makeHeader() {
-
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A21MT extends AbstractGA{
-
- public G01A21MT(){
- super(0x01, 0x21);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("CALL_TYPE");
- ga.addByteItem("FORWARDED_STATUS");
- ga.addByteItem("CLIR_STATUS");
- ga.addByteItem("NUM_LEN");
- ga.addByteItem("NUM_TYPE");
- ga.addByteItem("CLI_PRESENT_ID");
- ga.addByteItem("NO_CLI_CAUSE");
- ga.addByteArrayItem("CALL_NUMBER", 45);
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A22 extends AbstractGA{
-
- public G01A22(){
- super(0x01, 0x22);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addIntItem("IDX");
- ga.addIntItem("DIR");
- ga.addIntItem("STAT");
- ga.addIntItem("CALL_TYPE");
- ga.addByteItem("MULTIPARTY");
- ga.addByteArrayItem("NUMBER", 32);
- ga.addByteArrayItem("dummy", 3);
- ga.addIntItem("TYPE");
- ga.addIntItem("NUM_LEN");
- ga.addIntItem("NUM_OF_TYPE");
- ga.addByteArrayItem("ALPHA",32);
- }
-
- @Override
- protected void makeHeader() {
- StructureGA ga = getHeader();
- ga.addIntItem("COUNT");
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A22End extends AbstractGA{
-
- public G01A22End(){
- super(0x01, 0x22);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("CALL_ID");
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-
-public class G01A23 extends AbstractGA{
-
- public G01A23(){
- super(0x01, 0x23);
- }
-
- @Override
- protected void makeBody() {
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A26 extends AbstractGA{
-
- public G01A26(){
- super(0x01, 0x26);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addIntItem("IDX");
- ga.addIntItem("DIR");
- ga.addIntItem("STAT");
- ga.addIntItem("CALL_TYPE");
- ga.addByteItem("MULTIPARTY");
- ga.addByteArrayItem("NUMBER", 32);
- ga.addByteArrayItem("dummy", 3);
- ga.addIntItem("TYPE");
- ga.addIntItem("NUM_LEN");
- ga.addIntItem("NUM_OF_TYPE");
- ga.addByteArrayItem("ALPHA",32);
- }
-
- @Override
- protected void makeHeader() {
- StructureGA ga = getHeader();
- ga.addIntItem("COUNT");
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G01A29 extends AbstractGA{
-
- public G01A29(){
- super(0x01, 0x29);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addIntItem("IDX");
- ga.addIntItem("DIR");
- ga.addIntItem("STAT");
- ga.addIntItem("CALL_TYPE");
- ga.addByteItem("MULTIPARTY");
- ga.addByteArrayItem("NUMBER", 32);
- ga.addByteArrayItem("dummy", 3);
- ga.addIntItem("TYPE");
- ga.addIntItem("NUM_LEN");
- ga.addIntItem("NUM_OF_TYPE");
- ga.addByteArrayItem("ALPHA",32);
- }
-
- @Override
- protected void makeHeader() {
- StructureGA ga = getHeader();
- ga.addIntItem("COUNT");
- }
-
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-
-public class G01A62 extends AbstractGA{
-
- public G01A62(){
- super(0x01, 0x62);
- }
-
- @Override
- protected void makeBody() {
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-
-public class G03A58 extends AbstractGA{
-
- public G03A58(){
- super(0x03, 0x58);
- }
-
- @Override
- protected void makeBody() {
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-
-public class G03A59 extends AbstractGA{
-
- public G03A59(){
- super(0x03, 0x59);
- }
-
- @Override
- protected void makeBody() {
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G0DA09 extends AbstractGA{
-
- public G0DA09(){
- super(0x0d, 0x09);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("ERROR_CAUSE_0");
- ga.addByteItem("ERROR_CAUSE_1");
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G0DA0B extends AbstractGA{
-
- public G0DA0B(){
- super(0x0d, 0x0b);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("ERROR_CAUSE_0");
- ga.addByteItem("ERROR_CAUSE_1");
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.call
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.call.resource;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-
-public class ErrorCode {
- private HashMap<String,Integer> map;
- private ArrayList<String> list;
- public ErrorCode(){
- map = new HashMap<String,Integer>();
- list = new ArrayList<String>();
-
-// add(30,"no network service");
-// add(0,"Phone failure");
- add(1,"CALL Not Available");
-// add(2,"Phone-adapter link reserved");
-// add(3,"Operation not allowed");
-// add(4,"Operation not supported");
-// add(5,"PH-SIM PIN required");
-// add(6,"PH-FSIM PIN required");
-// add(7,"PH-FSIM PUK required");
-// add(10,"SIM not inserted(Note)");
-// add(11,"SIM PIN required");
-// add(12,"SIM PUK required");
-// add(13,"SIM failure(Note)");
-// add(14,"SIM busy(Note)");
-// add(15,"SIM wrong(Note)");
-// add(16,"Incorrect password");
-// add(17,"SIM PIN2 required");
-// add(18,"SIM PUK2 required");
-// add(20,"Memory full");
-// add(21,"Invalid Index");
-// add(22,"Not found");
-// add(23,"Memory failure");
-// add(24,"text string too long");
-// add(25,"Invalid characters in text string");
-// add(26,"dial string too long");
-// add(27,"invalid characters in dial string");
- add(32768,"CALL OK(Success)");
-// add(31,"network timeout");
-// add(32,"network not allowed-emergency calls only");
-// add(40,"network personalization PIN required");
-// add(41,"network personalization PUK required");
-// add(42,"network subset personalization PIN required");
-// add(43,"network subset personalization PUK required");
-// add(44,"service provider personalization PIN required");
-// add(45,"service provider personalization PUK required");
-// add(46,"corporated personalization PIN required");
-// add(47,"corporated personalization PUK required");
-// add(48,"hidden key required");
-// add(100,"unknown");
-// add(32769,"invalid IPC format or parameters");
-// add(32770,"Phone is in the Offline state");
-// add(32771,"IPC command not allowed");
-// add(32772,"Phone is in the conversation state");
-// add(32773,"Invalid state");
-// add(32774,"No Internal free buffers");
-// add(32775,"Operation Rejected");
-// add(32776,"Insufficient resource");
-// add(32777,"Network not Respond");
-// add(32778,"SIM Pin enable required");
-// add(32779,"SIM permanent blocked");
-// add(32780,"SIM Phonebook Restricted");
-// add(32781,"Dialing restricted by FDN mode");
-// add(33041,"SS_Error Status");
-// add(33062,"Negative Password Check");
-// add(33068,"numberOfPW _AttemptsViolation - Password");
- }
-
- private void add(int key, String str){
- map.put(str, key);
- list.add(str);
- }
-
- public String[] getErrorList(){
- return list.toArray(new String[size()]);
- }
-
- public int size(){
- return list.size();
- }
-
- public int getKey(String str){
- return map.get(str);
- }
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>com.samsung.tizen.telephony.sms</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-#Wed Dec 01 09:09:30 CET 2010
-eclipse.preferences.version=1
-encoding/<project>=UTF-8
+++ /dev/null
-#Tue Dec 14 16:32:05 CET 2010
-eclipse.preferences.version=1
-line.separator=\n
+++ /dev/null
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Tizen Event Injector Telephony Sms
-Bundle-SymbolicName: com.samsung.tizen.telephony.sms;singleton:=true
-Bundle-Version: 1.3.20.qualifier
-Bundle-Vendor: Samsung
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- com.samsung.tizen.common,
- org.eclipse.ui.forms;bundle-version="3.3.103",
- com.samsung.tizen.injector,
- com.samsung.tizen.common.connection
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+++ /dev/null
-#Properties file for com.samsung.tizen.telephony.sms
-Bundle-Vendor = Samsung Electronics
-Bundle-Name = Tizen SDK Telephony SMS
-Telephony_SMS = Telephony SMS
\ No newline at end of file
+++ /dev/null
-source.. = src/\r
-output.. = bin/\r
-bin.includes = plugin.xml,\\r
- META-INF/,\\r
- .,\\r
- OSGI-INF/l10n/bundle.properties\r
-javacSource = 1.6
-javacTarget = 1.6
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="com.samsung.tizen.telephony.sms" default="build.jars" basedir=".">
-
- <property name="p2.build.repo" value="file:${buildDirectory}/buildRepo"/>
- <property name="basews" value="${ws}"/>
- <property name="baseos" value="${os}"/>
- <property name="basearch" value="${arch}"/>
- <property name="basenl" value="${nl}"/>
- <property name="bundleId" value="com.samsung.tizen.telephony.sms"/>
- <property name="bundleVersion" value="1.3.20.201103241558"/>
- <property name="p2.publishonerror" value="false"/>
-
- <!-- Compiler settings. -->
- <property name="javacFailOnError" value="false"/>
- <property name="javacDebugInfo" value="on"/>
- <property name="javacVerbose" value="false"/>
- <property name="logExtension" value=".log"/>
- <property name="compilerArg" value=""/>
- <condition property="dir_bootclasspath" value="${java.home}/../Classes">
- <os family="mac"/>
- </condition>
- <property name="dir_bootclasspath" value="${java.home}/lib"/>
- <path id="path_bootclasspath">
- <fileset dir="${dir_bootclasspath}">
- <include name="*.jar"/>
- </fileset>
- </path>
- <property name="bootclasspath" refid="path_bootclasspath"/>
- <property name="bundleJavacSource" value="1.6"/>
- <property name="bundleJavacTarget" value="1.6"/>
- <condition property="bundleBootClasspath" value="${JavaSE-1.6}" >
- <isset property="JavaSE-1.6"/>
- </condition>
- <property name="bundleBootClasspath" value="${bootclasspath}"/>
-
- <target name="init" depends="properties">
- <condition property="pluginTemp" value="${buildTempFolder}/plugins" >
- <isset property="buildTempFolder"/>
- </condition>
- <property name="pluginTemp" value="${basedir}"/>
- <condition property="build.result.folder" value="${pluginTemp}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" >
- <isset property="buildTempFolder"/>
- </condition>
- <property name="build.result.folder" value="${basedir}"/>
- <property name="temp.folder" value="${basedir}/temp.folder"/>
- <property name="plugin.destination" value="${basedir}"/>
- <condition property="p2.publish.parts" value="true" >
- <istrue value="${p2.gathering}"/>
- </condition>
- <property name="compilation.problem.marker" value="${build.result.folder}/compilation.problem"/>
- <condition property="compilation.problem.marker.exists" value="true" >
- <and>
- <available file="${compilation.problem.marker}"/>
- <isfalse value="p2.publishonerror"/>
- </and>
- </condition>
- </target>
-
- <target name="properties" if="eclipse.running">
- <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
-
- </target>
-
- <target name="build.update.jar" depends="init" description="Build the plug-in: com.samsung.tizen.telephony.sms for an update site.">
- <delete dir="${temp.folder}"/>
- <mkdir dir="${temp.folder}"/>
- <antcall target="build.jars"/>
- <antcall target="gather.bin.parts">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <jar destfile="${plugin.destination}/com.samsung.tizen.telephony.sms_1.3.20.201103241558.jar" basedir="${temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" filesetmanifest="merge"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <target name="@dot" depends="init" unless="@dot" description="Create jar: com.samsung.tizen.telephony.sms @dot.">
- <delete dir="${build.result.folder}/@dot"/>
- <mkdir dir="${build.result.folder}/@dot"/>
- <path id="@dot.classpath">
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui_3.5.2.M20100120-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/runtime_registry_compatibility.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20090413.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/javax.servlet_2.5.0.v200806031605.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.swt_3.5.2.v3557f.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.jface_3.5.2.M20100120-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.commands_3.5.0.I20090525-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/compatibility.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/e4-workbench.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800"/>
- <pathelement path="../../../eclipse/plugins/com.ibm.icu_4.0.1.v20090822.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.help_3.4.1.v20090805_35x.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.jface.databinding_1.3.1.M20090826-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.databinding.observable_1.2.0.M20090902-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.databinding.property_1.2.0.M20090819-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.databinding_1.2.0.M20090819-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530.jar"/>
- <pathelement path="../org.eclipse.core.resources.nl_ko/org.eclipse.core.resources.nl_ko_3.5.0.v20100814074441.jar"/>
- <pathelement path="../org.eclipse.core.resources.nl_ko"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ant.core_3.2.101.v20091110_r352.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.variables_3.2.200.v20090521.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.filesystem.linux.x86_1.3.0.R35x_v20091203-1235.jar"/>
- <pathelement path="../com.samsung.tizen.common/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.common_1.3.20.201103241558/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.common/@dot"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.common_1.3.20.201103241558/@dot"/>
- <pathelement path="../org.eclipse.ui.ide/bin"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide_3.5.2.M20100113-0800/bin"/>
- <pathelement path="../org.eclipse.ui.ide/e4-ide.jar"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide_3.5.2.M20100113-0800/e4-ide.jar"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide/@dot"/>
- <pathelement path="${build.result.folder}/../org.eclipse.ui.ide_3.5.2.M20100113-0800/@dot"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.jface.text_3.5.2.r352_v20091118-0800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.text_3.5.0.v20090513-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.forms_3.4.1.v20090714_35x.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.engine_1.0.102.R35x_v20091117.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.core_1.0.101.R35x_v20090819.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.metadata_1.0.101.R35x_v20100112.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.metadata.repository_1.0.101.R35x_v20090812.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.repository_1.0.1.R35x_v20100105.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.security_1.0.100.v20090520-1800.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.filetransfer_3.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf_3.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.ssl_1.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.concurrent_1.0.1.R35x_v20100209.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.identity_3.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.provider.filetransfer_3.0.1.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20090831-1906.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.net_1.2.1.r35x_20090812-1200.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.net.linux.x86_1.1.0.I20081021.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.artifact.repository_1.0.101.R35x_v20090721.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.equinox.p2.jarprocessor_1.0.100.v20090520-1905.jar"/>
- <pathelement path="../com.samsung.tizen.injector/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.injector_1.3.20.201103241558/bin/"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.injector/@dot"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.injector_1.3.20.201103241558/@dot"/>
- <pathelement path="../com.samsung.tizen.connection/bin"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.connection_1.3.20.201103241558/bin"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.connection/@dot"/>
- <pathelement path="${build.result.folder}/../com.samsung.tizen.connection_1.3.20.201103241558/@dot"/>
- <pathelement path="../com.samsung.tizen.connection.linux/bin/"/>
- <pathelement path="../com.samsung.tizen.connection.linux/@dot"/>
- <pathelement path="../com.samsung.tizen.connection.windows/bin/"/>
- <pathelement path="../com.samsung.tizen.connection.windows/@dot"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.console_3.4.0.v20090513.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.5.1.r352_v20100105.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.compare.core_3.5.0.I20090430-0408.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.debug.ui_3.5.2.v20091028_r352.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.debug.core_3.5.1.v20091103_r352.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.ui.editors_3.5.0.v20090527-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.core.filebuffers_3.5.0.v20090526-2000.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.ui_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.services_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.core_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.efs_2.1.100.v200905272300.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.files.core_3.1.1.v200909160005.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.processes.core_3.1.0.v200905272300.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.shells.core_3.1.0.v200905272300.jar"/>
- <pathelement path="../../../eclipse/plugins/org.eclipse.rse.subsystems.terminals.core_1.0.1.v200908051630.jar"/>
- <pathelement path="../../../eclipse/plugins/com.jcraft.jsch_0.1.41.v200903070017.jar"/>
- </path>
- <!-- compile the source code -->
- <javac destdir="${build.result.folder}/@dot" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" >
- <compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
- <classpath refid="@dot.classpath" />
- <src path="src/" />
- <compilerarg value="@${basedir}/javaCompiler...args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
- <compilerarg line="-log '${build.result.folder}/@dot${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
- </javac>
- <antcall target="checkCompilationResults"/>
- <!-- Copy necessary resources -->
- <copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
- <fileset dir="src/">
- <exclude name="**/*.java"/>
- <exclude name="**/package.htm*"/>
- </fileset>
- </copy>
- </target>
-
- <target name="src.zip" depends="init" unless="src.zip">
- <mkdir dir="${build.result.folder}"/>
- <antcall target="zip.src.zip"/>
- </target>
- <target name="zip.src.zip">
- <zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
- <fileset dir="src/">
- <include name="**/*.java"/>
- </fileset>
- </zip>
- </target>
- <target name="copy.src.zip">
- <copy todir="${source.destination.folder}/" failonerror="true" overwrite="true">
- <fileset dir="src/">
- <include name="**/*.java"/>
- </fileset>
- </copy>
- </target>
-
- <target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: com.samsung.tizen.telephony.sms.">
- <delete file="${compilation.problem.marker}" quiet="true"/>
- <available property="@dot" file="${build.result.folder}/@dot"/>
- <antcall target="@dot"/>
- </target>
-
- <target name="checkCompilationResults" if="compilation.error.occured">
- <echo file="${compilation.problem.marker}" message="com.samsung.tizen.telephony.sms : compilation.error.occured=${compilation.error.occured}"/>
- </target>
-
- <target name="build.sources" depends="init">
- <available property="src.zip" file="${build.result.folder}/src.zip"/>
- <antcall target="src.zip"/>
- </target>
-
- <target name="publish.bin.parts" depends="init" if="p2.publish.parts" unless="compilation.problem.marker.exists">
- <mkdir dir="${build.result.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558"/>
- <copy todir="${build.result.folder}" failonerror="true" overwrite="true">
- <fileset dir="${basedir}">
- <include name="META-INF/MANIFEST.MF"/>
- <include name="plugin.xml"/>
- <include name="fragment.xml"/>
- </fileset>
- </copy>
- <eclipse.versionReplacer path="${build.result.folder}" version="1.3.20.201103241558"/>
- <antcall target="apitools.generation">
- <param name="target.folder" value="${build.result.folder}"/>
- <param name="projectLocation" value="${basedir}"/>
- <param name="binary.folders" value="${build.result.folder}/@dot"/>
- <param name="projectName" value="${bundleId}_${bundleVersion}"/>
- </antcall>
- <eclipse.gatherBundle
- metadataRepository="${p2.build.repo}"
- artifactRepository="${p2.build.repo}"
- buildResultFolder="${build.result.folder}"
- unpack="false"
- baseDirectory="${basedir}"
- />
- </target>
-
- <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558"/>
- <copy todir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" failonerror="true" overwrite="false">
- <fileset dir="${build.result.folder}/@dot">
- <include name="**"/>
- </fileset>
- </copy>
- <copy todir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" failonerror="true" overwrite="true">
- <fileset dir="${basedir}">
- <include name="plugin.xml"/>
- <include name="META-INF/"/>
- <include name="OSGI-INF/l10n/bundle.properties"/>
- </fileset>
- </copy>
- <eclipse.versionReplacer path="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" version="1.3.20.201103241558"/>
- <antcall target="apitools.generation">
- <param name="target.folder" value="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558"/>
- <param name="projectLocation" value="${basedir}"/>
- <param name="binary.folders" value="${build.result.folder}/@dot"/>
- <param name="projectName" value="${bundleId}_${bundleVersion}"/>
- </antcall>
- </target>
-
- <target name="build.zips" depends="init">
- </target>
-
- <target name="gather.sources" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558"/>
- <copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" failonerror="false" overwrite="false"/>
- <antcall target="copy.src.includes">
- <param name="source.destination.folder" value="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558"/>
- </antcall>
- </target>
-
- <target name="gather.individual.sources" depends="init">
- <antcall target="copy.src.zip">
- <param name="source.destination.folder" value="${destination.temp.folder}"/>
- </antcall>
- <antcall target="copy.src.includes">
- <param name="source.destination.folder" value="${destination.temp.folder}"/>
- </antcall>
- </target>
-
- <target name="copy.src.includes" depends="init">
- </target>
-
- <target name="gather.logs" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558"/>
- <copy todir="${destination.temp.folder}/com.samsung.tizen.telephony.sms_1.3.20.201103241558" failonerror="false" overwrite="false">
- <fileset dir="${build.result.folder}">
- <include name="@dot${logExtension}"/>
- </fileset>
- </copy>
- </target>
-
- <target name="clean" depends="init" description="Clean the plug-in: com.samsung.tizen.telephony.sms of all the zips, jars and logs created.">
- <delete dir="${build.result.folder}/@dot"/>
- <delete file="${build.result.folder}/src.zip"/>
- <delete file="${plugin.destination}/com.samsung.tizen.telephony.sms_1.3.20.201103241558.jar"/>
- <delete file="${plugin.destination}/com.samsung.tizen.telephony.sms_1.3.20.201103241558.zip"/>
- <delete dir="${temp.folder}"/>
- <delete file="${compilation.problem.marker}" quiet="true"/>
- </target>
-
- <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
- <eclipse.convertPath fileSystemPath="/home/taeyoung/SLPSDK/git/samsung-sdk-ide/com.samsung.tizen.telephony.sms" property="resourcePath"/>
- <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
- </target>
-
- <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.samsung.tizen.telephony.sms.">
- <delete dir="${temp.folder}"/>
- <mkdir dir="${temp.folder}"/>
- <antcall target="build.jars"/>
- <antcall target="build.sources"/>
- <antcall target="gather.bin.parts">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <antcall target="gather.sources">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <delete>
- <fileset dir="${temp.folder}">
- <include name="**/*.bin${logExtension}"/>
- </fileset>
- </delete>
- <zip destfile="${plugin.destination}/com.samsung.tizen.telephony.sms_1.3.20.201103241558.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <target name="apitools.generation" if="generateAPIDescription">
- <apitooling.apigeneration projectName="${projectName}" project="${projectLocation}" binary="${binary.folders}" target="${target.folder}" />
- </target>
-
-</project>
+++ /dev/null
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui_3.5.2.M20100120-0800.jar[~org/eclipse/ui/internal/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar[~org/eclipse/core/internal/preferences/legacy/*:~org/eclipse/core/internal/runtime/*:+org/eclipse/core/runtime/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar[+org/eclipse/osgi/event/*:+org/eclipse/osgi/framework/console/*:+org/eclipse/osgi/framework/eventmgr/*:+org/eclipse/osgi/framework/log/*:+org/eclipse/osgi/launch/*:+org/eclipse/osgi/service/datalocation/*:+org/eclipse/osgi/service/debug/*:+org/eclipse/osgi/service/environment/*:+org/eclipse/osgi/service/localization/*:+org/eclipse/osgi/service/pluginconversion/*:+org/eclipse/osgi/service/resolver/*:+org/eclipse/osgi/service/runnable/*:+org/eclipse/osgi/service/security/*:+org/eclipse/osgi/service/urlconversion/*:+org/eclipse/osgi/signedcontent/*:+org/eclipse/osgi/storagemanager/*:+org/eclipse/osgi/util/*:+org/osgi/framework/*:+org/osgi/framework/launch/*:+org/osgi/framework/hooks/service/*:+org/osgi/service/condpermadmin/*:~org/osgi/service/framework/*:+org/osgi/service/packageadmin/*:+org/osgi/service/permissionadmin/*:+org/osgi/service/startlevel/*:+org/osgi/service/url/*:+org/osgi/util/tracker/*:~org/eclipse/core/runtime/adaptor/*:~org/eclipse/core/runtime/internal/adaptor/*:~org/eclipse/core/runtime/internal/stats/*:~org/eclipse/osgi/baseadaptor/*:~org/eclipse/osgi/baseadaptor/bundlefile/*:~org/eclipse/osgi/baseadaptor/hooks/*:~org/eclipse/osgi/baseadaptor/loader/*:~org/eclipse/osgi/framework/adaptor/*:~org/eclipse/osgi/framework/debug/*:~org/eclipse/osgi/framework/internal/core/*:~org/eclipse/osgi/framework/internal/protocol/*:~org/eclipse/osgi/framework/internal/protocol/bundleentry/*:~org/eclipse/osgi/framework/internal/protocol/bundleresource/*:~org/eclipse/osgi/framework/internal/protocol/reference/*:~org/eclipse/osgi/framework/internal/reliablefile/*:~org/eclipse/osgi/framework/util/*:~org/eclipse/osgi/internal/baseadaptor/*:~org/eclipse/osgi/internal/composite/*:~org/eclipse/osgi/internal/loader/*:~org/eclipse/osgi/internal/loader/buddy/*:~org/eclipse/osgi/internal/module/*:~org/eclipse/osgi/internal/profile/*:~org/eclipse/osgi/internal/resolver/*:~org/eclipse/osgi/internal/serviceregistry/*:~org/eclipse/osgi/internal/permadmin/*:~org/eclipse/osgi/internal/provisional/service/security/*:~org/eclipse/osgi/internal/provisional/verifier/*:~org/eclipse/osgi/internal/service/security/*:~org/eclipse/osgi/internal/signedcontent/*:~org/eclipse/osgi/service/internal/composite/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar[~org/eclipse/core/internal/boot/*:~org/eclipse/core/internal/runtime/*:+org/eclipse/core/runtime/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar[~org/eclipse/core/internal/jobs/*:+org/eclipse/core/runtime/jobs/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/runtime_registry_compatibility.jar[~org/eclipse/core/internal/adapter/*:~org/eclipse/core/internal/registry/*:~org/eclipse/core/internal/registry/osgi/*:~org/eclipse/core/internal/registry/spi/*:+org/eclipse/core/runtime/*:+org/eclipse/core/runtime/dynamichelpers/*:+org/eclipse/core/runtime/spi/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800[~org/eclipse/core/internal/adapter/*:~org/eclipse/core/internal/registry/*:~org/eclipse/core/internal/registry/osgi/*:~org/eclipse/core/internal/registry/spi/*:+org/eclipse/core/runtime/*:+org/eclipse/core/runtime/dynamichelpers/*:+org/eclipse/core/runtime/spi/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar[~org/eclipse/core/internal/adapter/*:~org/eclipse/core/internal/registry/*:~org/eclipse/core/internal/registry/osgi/*:~org/eclipse/core/internal/registry/spi/*:+org/eclipse/core/runtime/*:+org/eclipse/core/runtime/dynamichelpers/*:+org/eclipse/core/runtime/spi/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar[~org/eclipse/core/internal/preferences/*:~org/eclipse/core/internal/preferences/exchange/*:+org/eclipse/core/runtime/preferences/*:+org/osgi/service/prefs/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar[~org/eclipse/core/internal/content/*:+org/eclipse/core/runtime/content/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20090413.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar[+org/eclipse/equinox/app/*:~org/eclipse/equinox/internal/app/*:+org/osgi/service/application/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/javax.servlet_2.5.0.v200806031605.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.swt_3.5.2.v3557f.jar[+org/eclipse/swt/*:+org/eclipse/swt/accessibility/*:+org/eclipse/swt/awt/*:+org/eclipse/swt/browser/*:+org/eclipse/swt/custom/*:+org/eclipse/swt/dnd/*:+org/eclipse/swt/events/*:+org/eclipse/swt/graphics/*:+org/eclipse/swt/layout/*:+org/eclipse/swt/opengl/*:+org/eclipse/swt/printing/*:+org/eclipse/swt/program/*:+org/eclipse/swt/widgets/*:~org/eclipse/swt/internal/*:~org/eclipse/swt/internal/image/*:~org/eclipse/swt/internal/theme/*:~org/eclipse/swt/internal/accessibility/gtk/*:~org/eclipse/swt/internal/cairo/*:~org/eclipse/swt/internal/cde/*:~org/eclipse/swt/internal/gnome/*:~org/eclipse/swt/internal/gtk/*:~org/eclipse/swt/internal/mozilla/*:~org/eclipse/swt/internal/opengl/glx/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f.jar[+org/eclipse/swt/*:+org/eclipse/swt/accessibility/*:+org/eclipse/swt/awt/*:+org/eclipse/swt/browser/*:+org/eclipse/swt/custom/*:+org/eclipse/swt/dnd/*:+org/eclipse/swt/events/*:+org/eclipse/swt/graphics/*:+org/eclipse/swt/layout/*:+org/eclipse/swt/opengl/*:+org/eclipse/swt/printing/*:+org/eclipse/swt/program/*:+org/eclipse/swt/widgets/*:~org/eclipse/swt/internal/*:~org/eclipse/swt/internal/image/*:~org/eclipse/swt/internal/theme/*:~org/eclipse/swt/internal/accessibility/gtk/*:~org/eclipse/swt/internal/cairo/*:~org/eclipse/swt/internal/cde/*:~org/eclipse/swt/internal/gnome/*:~org/eclipse/swt/internal/gtk/*:~org/eclipse/swt/internal/mozilla/*:~org/eclipse/swt/internal/opengl/glx/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.jface_3.5.2.M20100120-0800.jar[+org/eclipse/jface/*:+org/eclipse/jface/action/*:+org/eclipse/jface/action/images/*:+org/eclipse/jface/bindings/*:+org/eclipse/jface/bindings/keys/*:+org/eclipse/jface/bindings/keys/formatting/*:+org/eclipse/jface/commands/*:+org/eclipse/jface/contexts/*:+org/eclipse/jface/dialogs/*:+org/eclipse/jface/dialogs/images/*:+org/eclipse/jface/fieldassist/*:+org/eclipse/jface/fieldassist/images/*:+org/eclipse/jface/images/*:~org/eclipse/jface/internal/*:~org/eclipse/jface/internal/provisional/action/*:+org/eclipse/jface/layout/*:+org/eclipse/jface/menus/*:+org/eclipse/jface/operation/*:+org/eclipse/jface/preference/*:+org/eclipse/jface/preference/images/*:+org/eclipse/jface/resource/*:+org/eclipse/jface/util/*:+org/eclipse/jface/viewers/*:+org/eclipse/jface/viewers/deferred/*:+org/eclipse/jface/window/*:+org/eclipse/jface/wizard/*:+org/eclipse/jface/wizard/images/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.commands_3.5.0.I20090525-2000.jar[+org/eclipse/core/commands/*:+org/eclipse/core/commands/common/*:+org/eclipse/core/commands/contexts/*:+org/eclipse/core/commands/operations/*:+org/eclipse/core/commands/util/*:~org/eclipse/core/internal/commands/operations/*:~org/eclipse/core/internal/commands/util/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/compatibility.jar[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800/e4-workbench.jar[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20090429-1800[+org/eclipse/ui/*:+org/eclipse/ui/about/*:+org/eclipse/ui/actions/*:+org/eclipse/ui/activities/*:+org/eclipse/ui/application/*:+org/eclipse/ui/branding/*:+org/eclipse/ui/browser/*:+org/eclipse/ui/commands/*:+org/eclipse/ui/contexts/*:+org/eclipse/ui/databinding/*:+org/eclipse/ui/dialogs/*:+org/eclipse/ui/dnd/*:+org/eclipse/ui/fieldassist/*:+org/eclipse/ui/handlers/*:+org/eclipse/ui/help/*:~org/eclipse/ui/internal/*:~org/eclipse/ui/internal/about/*:~org/eclipse/ui/internal/actions/*:~org/eclipse/ui/internal/activities/*:~org/eclipse/ui/internal/activities/ws/*:~org/eclipse/ui/internal/application/*:~org/eclipse/ui/internal/browser/*:~org/eclipse/ui/internal/commands/*:~org/eclipse/ui/internal/contexts/*:~org/eclipse/ui/internal/decorators/*:~org/eclipse/ui/internal/dialogs/*:~org/eclipse/ui/internal/dnd/*:~org/eclipse/ui/internal/editorsupport/*:~org/eclipse/ui/internal/expressions/*:~org/eclipse/ui/internal/handlers/*:~org/eclipse/ui/internal/help/*:~org/eclipse/ui/internal/intro/*:~org/eclipse/ui/internal/keys/*:~org/eclipse/ui/internal/keys/model/*:~org/eclipse/ui/internal/layout/*:~org/eclipse/ui/internal/menus/*:~org/eclipse/ui/internal/misc/*:~org/eclipse/ui/internal/model/*:~org/eclipse/ui/internal/operations/*:~org/eclipse/ui/internal/part/*:~org/eclipse/ui/internal/preferences/*:~org/eclipse/ui/internal/presentations/*:~org/eclipse/ui/internal/presentations/classic/*:~org/eclipse/ui/internal/presentations/defaultpresentation/*:~org/eclipse/ui/internal/presentations/util/*:~org/eclipse/ui/internal/progress/*:~org/eclipse/ui/internal/provisional/application/*:~org/eclipse/ui/internal/provisional/presentations/*:~org/eclipse/ui/internal/quickaccess/*:~org/eclipse/ui/internal/registry/*:~org/eclipse/ui/internal/services/*:~org/eclipse/ui/internal/splash/*:~org/eclipse/ui/internal/statushandlers/*:~org/eclipse/ui/internal/testing/*:~org/eclipse/ui/internal/themes/*:~org/eclipse/ui/internal/tweaklets/*:~org/eclipse/ui/internal/util/*:~org/eclipse/ui/internal/wizards/*:~org/eclipse/ui/internal/wizards/preferences/*:+org/eclipse/ui/intro/*:+org/eclipse/ui/keys/*:+org/eclipse/ui/menus/*:+org/eclipse/ui/model/*:+org/eclipse/ui/operations/*:+org/eclipse/ui/part/*:+org/eclipse/ui/plugin/*:+org/eclipse/ui/preferences/*:+org/eclipse/ui/presentations/*:+org/eclipse/ui/progress/*:+org/eclipse/ui/services/*:+org/eclipse/ui/splash/*:+org/eclipse/ui/statushandlers/*:+org/eclipse/ui/swt/*:+org/eclipse/ui/testing/*:+org/eclipse/ui/themes/*:+org/eclipse/ui/views/*:+org/eclipse/ui/wizards/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/com.ibm.icu_4.0.1.v20090822.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.help_3.4.1.v20090805_35x.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.jface.databinding_1.3.1.M20090826-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.databinding.observable_1.2.0.M20090902-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.databinding.property_1.2.0.M20090819-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.databinding_1.2.0.M20090819-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.core.resources.nl_ko/org.eclipse.core.resources.nl_ko_3.5.0.v20100814074441.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.core.resources.nl_ko[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ant.core_3.2.101.v20091110_r352.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.variables_3.2.200.v20090521.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.filesystem.linux.x86_1.3.0.R35x_v20091203-1235.jar[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common/bin/[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common_1.3.20.201103241558/bin/[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common/@dot[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.common_1.3.20.201103241558/@dot[+com/samsung/tizen/common/control/*:+com/samsung/tizen/common/handler/*:+com/samsung/tizen/common/manager/*:+com/samsung/tizen/common/model/*:+com/samsung/tizen/common/queue/*:+com/samsung/tizen/common/util/*:?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide/bin[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide_3.5.2.M20100113-0800/bin[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide/e4-ide.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide_3.5.2.M20100113-0800/e4-ide.jar[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide/@dot[?**/*]
-#ADAPTER#ACCESS#org.eclipse.ui.ide_3.5.2.M20100113-0800/@dot[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.jface.text_3.5.2.r352_v20091118-0800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.text_3.5.0.v20090513-2000.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.forms_3.4.1.v20090714_35x.jar[+org/eclipse/ui/forms/*:+org/eclipse/ui/forms/editor/*:+org/eclipse/ui/forms/events/*:+org/eclipse/ui/forms/widgets/*:~org/eclipse/ui/internal/forms/*:~org/eclipse/ui/internal/forms/widgets/*:?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.engine_1.0.102.R35x_v20091117.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.core_1.0.101.R35x_v20090819.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.metadata_1.0.101.R35x_v20100112.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.metadata.repository_1.0.101.R35x_v20090812.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.repository_1.0.1.R35x_v20100105.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.security_1.0.100.v20090520-1800.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.filetransfer_3.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf_3.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.ssl_1.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.concurrent_1.0.1.R35x_v20100209.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.identity_3.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.provider.filetransfer_3.0.1.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20090831-1906.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.net_1.2.1.r35x_20090812-1200.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.net.linux.x86_1.1.0.I20081021.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.artifact.repository_1.0.101.R35x_v20090721.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.equinox.p2.jarprocessor_1.0.100.v20090520-1905.jar[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector/bin/[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector_1.3.20.201103241558/bin/[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector/@dot[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.injector_1.3.20.201103241558/@dot[+com/samsung/tizen/injector/protocol/*:+com/samsung/tizen/injector/protocol/sensor/*:+com/samsung/tizen/injector/provider/*:+com/samsung/tizen/injector/receiver/*:+com/samsung/tizen/injector/socket/*:+com/samsung/tizen/injector/util/*:?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection/bin[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection_1.3.20.201103241558/bin[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection/@dot[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection_1.3.20.201103241558/@dot[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.linux/bin/[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.linux/@dot[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.windows/bin/[?**/*]
-#ADAPTER#ACCESS#com.samsung.tizen.connection.windows/@dot[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.console_3.4.0.v20090513.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.5.1.r352_v20100105.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.compare.core_3.5.0.I20090430-0408.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.debug.ui_3.5.2.v20091028_r352.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.debug.core_3.5.1.v20091103_r352.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.ui.editors_3.5.0.v20090527-2000.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.core.filebuffers_3.5.0.v20090526-2000.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.ui_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.services_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.core_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.efs_2.1.100.v200905272300.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.files.core_3.1.1.v200909160005.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.processes.core_3.1.0.v200905272300.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.shells.core_3.1.0.v200905272300.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/org.eclipse.rse.subsystems.terminals.core_1.0.1.v200908051630.jar[?**/*]
-#ADAPTER#ACCESS#eclipse/plugins/com.jcraft.jsch_0.1.41.v200903070017.jar[?**/*]
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<?eclipse version="3.2"?>\r
-<plugin>\r
- <extension\r
- point="com.samsung.tizen.injector.injectorItemProvider">\r
- <itemType\r
- category="Telephony"\r
- class="com.samsung.tizen.telephony.sms.TelephonySMS"\r
- id="com.samsung.tizen.telephony.sms.TelephonySMS"\r
- name="%Telephony_SMS">\r
- </itemType>\r
- </extension> \r
-</plugin>\r
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "com.samsung.tizen.telephony.sms.messages"; //$NON-NLS-1$
- public static String TelephonySMS_0;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms;
-
-//import com.samsung.tizen.telephony.sms.page.CellBroadcasting;
-import com.samsung.tizen.injector.provider.AbstractInjectorItem;
-import com.samsung.tizen.telephony.sms.page.SMS;
-
-public class TelephonySMS extends AbstractInjectorItem {
-
- @Override
- protected void addPages() {
- addPage(new SMS(this, Messages.TelephonySMS_0));
-// addPage(new CellBroadcasting(this,"Cell Broadcasting"));
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-import java.io.UnsupportedEncodingException;
-
-public class DecodeMsg {
- int ton, npi;
- public static boolean deliveryReport = false;
- public static char[] smsbuffer = new char[4096];
- public static int smsbuffer_index = 0;
- public static boolean relayedsms = false;
- public static int relay_cnt = 0;
- public static int udhl = 0;
-
- public void DecodeSmsSubmitTpdu(TPDU_SMS_SUBMIT tpdu_submit, int pdu_len, char[] pPDU) {
- int scaAddr_len = 0;
- int destAddr_len = 0;
- char[] diallingNum = new char[EnumConstants.TAPI_NETTEXT_ADDRESS_LEN_MAX+1];
- char[] scaAddr = new char[EnumConstants.TAPI_NETTEXT_SCADDRESS_LEN_MAX+1];
- char[] destAddr = new char[EnumConstants.TAPI_NETTEXT_ADDRESS_LEN_MAX+1];
-// char[] inData = new char[EnumConstants.TAPI_NETTEXT_SMDATA_SIZE_MAX+1];
-
- int position = 0;
-
- SmsUtilDecodeAddrField_sca(diallingNum, pPDU);
-
- position += 2;
-
- scaAddr_len = getSize(diallingNum);
-
- if ((scaAddr_len % 2) != 0)
- position += scaAddr_len / 2 + 1;
- else
- position += scaAddr_len / 2;
-
- if (ton == EnumConstants.SIM_TON_INTERNATIONAL) {
- scaAddr[0] = '+';
- for(int i = 0; i < scaAddr_len; i++) {
- scaAddr[i+1] = diallingNum[i];
- scaAddr[scaAddr_len+1] = '\0';
- }
- } else {
- for(int i = 0; i < scaAddr_len; i++) {
- scaAddr[i] = diallingNum[i];
- scaAddr[scaAddr_len] = '\0';
- }
- }
-
- /* TP-MTI, TP-RD, TP-VPF, TP-RP, TP_UDHI, TP-SRR */
- tpdu_submit.msgType = EnumConstants.SMS_TPDU_SUBMIT;
- tpdu_submit.rd = ((pPDU[position] & 0x04) != 0) ? true : false;
- tpdu_submit.vpf = (pPDU[position] & 0x18) >> 3;
- tpdu_submit.srr = ((pPDU[position] & 0x20) != 0) ? true : false;
- tpdu_submit.udhi = ((pPDU[position] & 0x40) != 0) ? true : false;
- tpdu_submit.rp = ((pPDU[position] & 0x80) != 0) ? true : false;
-
- position++;
-
- /* TP-MR */
- tpdu_submit.mr = pPDU[position];
-
- position++;
-
- /* TP-DA */
- for(int i = 0; i < diallingNum.length; i++)
- diallingNum[i] = 0x00;
-
- SmsUtilDecodeAddrField_dst(diallingNum, getCharArray(pPDU, position));
-
- position+=2;
-
- destAddr_len = getSize(diallingNum);
-
- if((destAddr_len %2) != 0)
- position += destAddr_len / 2 + 1;
- else
- position += destAddr_len / 2;
-
- if (ton == EnumConstants.SIM_TON_INTERNATIONAL) {
- destAddr[0] = '+';
- for(int i = 0; i < destAddr_len; i++) {
- destAddr[i+1] = diallingNum[i];
- destAddr[destAddr_len+1] = '\0';
- }
- tpdu_submit.destAddr.dialnumlen = destAddr_len+1;
- for(int i = 0; i < destAddr_len+1; i++)
- tpdu_submit.destAddr.diallingNum[i] = destAddr[i];
- } else {
- for(int i = 0; i < destAddr_len; i++) {
- destAddr[i] = diallingNum[i];
- destAddr[destAddr_len] = '\0';
- }
- tpdu_submit.destAddr.dialnumlen = destAddr_len;
- for(int i = 0; i < destAddr_len; i++)
- tpdu_submit.destAddr.diallingNum[i] = destAddr[i];
- }
-
- tpdu_submit.destAddr.npi = npi;
- tpdu_submit.destAddr.ton = ton;
-
- /* TP-PID */
- tpdu_submit.pId = pPDU[position];
- position++;
-
- /* TP DCS */
- SmsUtilDecodeDCS(tpdu_submit.dcs, pPDU[position]);
- position++;
-
- /* TP VP */
-// tpdu_submit.vp.vpType = EnumConstants.TAPI_NETTEXT_VP_RELATIVE;
-
- switch(tpdu_submit.vp.vpType) {
- case EnumConstants.TAPI_NETTEXT_VP_RELATIVE:
- tpdu_submit.vp.vpValue = pPDU[position];
- tpdu_submit.vp.vpRelativeType = EnumConstants.TAPI_NETTEXT_VP_REL_1D;
- position++;
- break;
- case EnumConstants.TAPI_NETTEXT_VP_ABSOLUTE:
- case EnumConstants.TAPI_NETTEXT_VP_ENHANCED:
- position += 7;
- break;
- default:
- break;
- }
-
- /* TP UDL */
- tpdu_submit.udl = pPDU[position];
-
- if(tpdu_submit.udl > EnumConstants.TAPI_NETTEXT_SMDATA_SIZE_MAX)
- tpdu_submit.udl = EnumConstants.TAPI_NETTEXT_SMDATA_SIZE_MAX;
-
- position++;
-
- /* TP UD */
- if(tpdu_submit.udhi)
- {
- udhl = pPDU[position];
- position+=udhl;
-
- if(pPDU[position] == 1)
- {
- relay_cnt = pPDU[position - 1];
- for(int i = 0; i < smsbuffer.length; i++)
- smsbuffer[i] = '\0';
- }
- position++;
-
- relayedsms = true;
- }
- else
- {
- if(relayedsms)
- {
- for(int i = 0; i < smsbuffer.length; i++)
- smsbuffer[i] = '\0';
-
- smsbuffer_index = 0;
- relayedsms = false;
- }
- }
-
- tpdu_submit.userData = new char[EnumConstants.TAPI_NETTEXT_SMDATA_SIZE_MAX+1];
- //System.out.println("Position : " + position);
- if(tpdu_submit.dcs.alphabetType == EnumConstants.TAPI_NETTEXT_ALPHABET_DEFAULT) {
- char[] inData = new char[EnumConstants.TAPI_NETTEXT_SMDATA_SIZE_MAX+1];
- for(int i = 0; i < tpdu_submit.udl; i++) {
- if(tpdu_submit.udl == 255)
- {
- // relayed sms
- if(tpdu_submit.udhi == true && i > 152 && (char)(pPDU[position + i]) == '@')
- break;
- }
- else
- {
- // relayed sms
- if(tpdu_submit.udhi == true && i > tpdu_submit.udl && (char)(pPDU[position + i]) == '@')
- break;
- }
-
- inData[i] = (char)(pPDU[position + i] & 0xff);
- if(inData[i] == '@' && i == tpdu_submit.udl - (udhl + 2)) // last dregs data
- inData[i] = '\0';
- }
-
- for(int i = 0; i < tpdu_submit.udl; i++) {
- tpdu_submit.userData[i] = inData[i];
- }
-
- if(relayedsms)
- {
- String tmp1 = new String(smsbuffer);
- String tmp2 = new String(inData);
- String tmp3 = tmp1.trim() + tmp2.trim();
- smsbuffer = tmp3.toCharArray();
- }
- // SmsUtilUnpackGSMCode(tpdu_submit.userData, inData, tpdu_submit.udl);
- }
- else if(tpdu_submit.dcs.alphabetType == EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2)
- {
- byte[] inData = new byte[EnumConstants.TAPI_NETTEXT_SMDATA_SIZE_MAX+1];
- for(int i = 0; i < tpdu_submit.udl; i++) {
- if(tpdu_submit.udl == 255)
- {
- // relayed sms
- if(tpdu_submit.udhi == true && i > 152 && (char)(pPDU[position + i]) == '@')
- break;
- }
- else
- {
- // relayed sms
- if(tpdu_submit.udhi == true && i > tpdu_submit.udl && (char)(pPDU[position + i]) == '@')
- break;
- }
-
- inData[i] = (byte)(pPDU[position + i] & 0xff);
- }
-
- try {
- tpdu_submit.userData = ucs2ToUTF8(inData);
- } catch (UnsupportedEncodingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
- /* System.out.println("Msg Type: TPDU_SUBMIT");
- if(tpdu_submit.rd)
- System.out.println("RD: Reject Duplicate");
- else
- System.out.println("RD: Accept Duplicate");
- */
- if(tpdu_submit.srr)
- {
- // System.out.println("SRR: A status report is requested");
- deliveryReport = true;
- }
- else
- {
- // System.out.println("SRR: A status report is not requested");
- deliveryReport = false;
- }
- /*
- if(tpdu_submit.udhi)
- System.out.println("UDHI: Contains a Header in addition to the short message.");
- else
- System.out.println("UDHI: Only Short Message");
-
- if(tpdu_submit.rp)
- System.out.println("RP: Set Reply Path");
- else
- System.out.println("RP: Not set Reply Path");
-
- System.out.print("SCA Addr: ");
- System.out.println(scaAddr);
- System.out.print("To : ");
- System.out.println(destAddr);
- System.out.println(tpdu_submit.destAddr.diallingNum);
- System.out.println("Message : ");
- if(relayedsms)
- System.out.println(smsbuffer);
- else
- System.out.println(tpdu_submit.userData);
- */
- }
-
- private char[] getCharArray(char[] org, int start) {
- int length = org.length - start;
- char[] result = new char[length];
-
- for(int i = 0; i < length; i++) {
- result[i] = org[start + i];
- }
- return result;
- }
-
- private void SmsUtilDecodeDCS(TapiNetTextCodingScheme pCodingScheme, char dcs) {
- if ( dcs < 0x40 ) { // bits 7..4 = 00xx : general data coding indication
- pCodingScheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS;
-
- if ((dcs & 0x20) != 0) // bit 5 = 1 : indicates the text is compressed
- pCodingScheme.bCompressed = true;
-
- if ((dcs & 0x10) != 0) // bit 4 = 1 : indicates that bits 1 to 0 have a message class meaning
- {
- pCodingScheme.bMsgClassSet = true;
-
- switch ( dcs & 0x03 ) // bits 1 to 0 : message class
- {
- case 0x00:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_0;
- break;
- case 0x01:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_1;
- break;
- case 0x02:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_2;
- break;
- case 0x03:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_3;
- break;
- }
- }
- else // bit 4 = 0 : indicates that bits 1 to 0 are reserved and have no message class meaning
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_NONE;
-
- switch ( dcs & 0x0C ) // bits 4 to 3 : character set
- {
- case 0x00:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_DEFAULT;
- break;
- case 0x04:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT;
- break;
- case 0x08:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2;
- break;
- case 0x0C:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_MAX;
- break;
- }
- }
- else if ( dcs >= 0x40 && dcs < 0x80 ) // bits 7..4 = 01xx : message marked for automatic deletion group. bits 5..0 are coded exactly the same as group 00xx
- {
- pCodingScheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_AUTO_DELETION;
-
- if ((dcs & 0x20) != 0) // bit 5 = 1 : indicates the text is compressed
- pCodingScheme.bCompressed = true;
-
- if ((dcs & 0x10) != 0) // bit 4 = 1 : indicates that bits 1 to 0 have a message class meaning
- {
- pCodingScheme.bMsgClassSet = true;
-
- switch ( dcs & 0x03 ) // bits 1 to 0 : message class
- {
- case 0x00:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_0;
- break;
- case 0x01:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_1;
- break;
- case 0x02:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_2;
- break;
- case 0x03:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_3;
- break;
- }
- }
- else // bit 4 = 0 : indicates that bits 1 to 0 are reserved and have no message class meaning
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_NONE;
-
- switch ( dcs & 0x0C ) // bits 4 to 3 : character set
- {
- case 0x00:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_DEFAULT;
- break;
- case 0x04:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT;
- break;
- case 0x08:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2;
- break;
- case 0x0C:
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_MAX;
- break;
- }
- }
- // bits 7..4 = 1000 ~ 1011 : reserved
- else if (dcs == 0xC0) // bits 7..4 = 1100 : message waiting indication group, discard message
- {
- pCodingScheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD;
- }
- else if (dcs < 0xE0)
- {
- pCodingScheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_WAITING_STORE;
-
- if ((dcs & 0x08) != 0)
- pCodingScheme.bMsgIndActive = true;
-
- switch (dcs & 0x03)
- {
- case 0x00:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_VOICE_MSG;
- break;
- case 0x01:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_FAX_MSG;
- break;
- case 0x02:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_EMAIL_MSG;
- break;
- case 0x03:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_OTHER_MSG;
- break;
- }
- }
- else if (dcs < 0xF0)
- {
- pCodingScheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2;
-
- if ((dcs & 0x08) != 0)
- pCodingScheme.bMsgIndActive = true;
-
- switch (dcs & 0x03)
- {
- case 0x00:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_VOICE_MSG;
- break;
- case 0x01:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_FAX_MSG;
- break;
- case 0x02:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_EMAIL_MSG;
- break;
- case 0x03:
- pCodingScheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_OTHER_MSG;
- break;
- }
- }
- else
- {
- pCodingScheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_CLASS_CODING;
-
- if ((dcs & 0x04) != 0)
- pCodingScheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT;
-
- switch (dcs & 0x03)
- {
- case 0x00:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_0;
- break;
- case 0x01:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_1;
- break;
- case 0x02:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_2;
- break;
- case 0x03:
- pCodingScheme.classType = EnumConstants.TAPI_NETTEXT_CLASS_3;
- break;
- }
- }
- }
-
- private void SmsUtilDecodeAddrField_sca(char[] diallingNum, char[] pAddrField) {
-// int ton, npi;
- int index = 0;
- int dialnumLen = 0;
- int length = 0;
-
- ton = (pAddrField[index+1] & 0x70) >> 4;
- npi = pAddrField[index+1] & 0x0F;
-
- if(ton != EnumConstants.SIM_TON_ALPHA_NUMERIC) {
- length = pAddrField[index];
- if(length > 1)
- dialnumLen = (pAddrField[index++] - 1) * 2;
- } else
- dialnumLen = (((pAddrField[index++] + 1) / 2) * 8) / 7;
-
- if(dialnumLen > EnumConstants.SIM_SMSP_ADDRESS_LEN)
- dialnumLen = EnumConstants.SIM_SMSP_ADDRESS_LEN;
-
- // Ignore type of address field
- index++;
-
- if(ton != EnumConstants.SIM_TON_ALPHA_NUMERIC)
- SmsUtilConvertBCD2Digit(diallingNum, getCharArray(pAddrField, index), dialnumLen);
- else
- SmsUtilUnpackGSMCode(diallingNum, getCharArray(pAddrField, index), dialnumLen);
- }
-
- private void SmsUtilDecodeAddrField_dst(char[] diallingNum, char[] pAddrField) {
-// int ton, npi;
- int index = 0;
- int dialnumLen = 0;
-
- ton = (pAddrField[index+1] & 0x70) >> 4;
- npi = pAddrField[index+1] & 0x0F;
-
- if(ton != EnumConstants.SIM_TON_ALPHA_NUMERIC)
- dialnumLen = pAddrField[index++];
- else
- dialnumLen = (((pAddrField[index++] + 1) / 2) * 8) / 7;
-
- if(dialnumLen > EnumConstants.SIM_SMSP_ADDRESS_LEN)
- dialnumLen = EnumConstants.SIM_SMSP_ADDRESS_LEN;
-
- // Ignore type of address field
- index++;
-
- if(ton != EnumConstants.SIM_TON_ALPHA_NUMERIC)
- SmsUtilConvertBCD2Digit(diallingNum, getCharArray(pAddrField, index), dialnumLen);
- else
- SmsUtilUnpackGSMCode(diallingNum, getCharArray(pAddrField, index), dialnumLen);
- }
-
- private void SmsUtilConvertBCD2Digit(char[] pDigits, char[] pBCD, int digitLen) {
- int i, bcdLen;
- char[] c = {0x00, 0x00};
- char higher, lower;
-
- if(pBCD == null || pDigits == null)
- throw new NullPointerException("SmsUtilConvertBCD2Digit"); //$NON-NLS-1$
-
- if(digitLen == 0) {
- pDigits[0] = 0x00;
- return;
- }
-
- if((digitLen % 2) != 0)
- bcdLen = digitLen / 2 + 1;
- else
- bcdLen = digitLen / 2;
-
- for(i = 0; i < bcdLen; i++) {
- lower = (char)(pBCD[i] & 0x0F);
-
- if(lower == 0x0A)
- lower = '*';
- else if(lower == 0x0B)
- lower = '#';
- else if(lower == 0x0C)
- lower = 'p';
- else if(lower == 0x0F)
- lower = 0;
- else {
- AcItoa(lower, c, 16);
- lower = (char)AcToupper(c[0]);
- }
-
- higher = (char)((pBCD[i] >> 4) & 0x0F);
-
- if(higher == 0x0A)
- higher = '*';
- else if(higher == 0x0B)
- higher = '#';
- else if(higher == 0x0C)
- higher = 'p';
- else if(higher == 0x0F) {
- pDigits[getSize(pDigits)] = lower;
- pDigits[bcdLen*2-1] = '\0';
- return;
- }
- else {
- AcItoa(higher, c, 16);
- higher = (char)AcToupper(c[0]);
- }
- pDigits[getSize(pDigits)] = lower;
- pDigits[getSize(pDigits)] = higher;
- }
- pDigits[digitLen] = '\0';
- }
-
- private int getSize(char[] array) {
- int ret = 0;
- String str = new String(array);
- ret = str.indexOf('\0');
- return ret;
- }
-
- private int AcToupper(int ch) {
- return (('a' <= (ch) && (ch) <= 'z') ? ((ch) - ('a' - 'A')) : (ch));
- }
-
- private void AcItoa(int n, char[] str, int b) {
- int i = 0;
- String arr = new String("0123456789ABCDEF"); //$NON-NLS-1$
- do
- str[i++] = arr.charAt(n%b);
- while((n /= b) > 0);
- reverse(str, i);
- str[i] = '\0';
- }
-
- private void reverse(char[] x, int len) {
- int i, j = len-1;
- for(i = 0; i < j; i++) {
- char t = x[i];
- x[i] = x[j];
- x[j--] = t;
- }
- }
-
- private void SmsUtilUnpackGSMCode(char[] szData, char[] pIn, int in_len) {
- int shift = 0;
- int pos = 0;
-
- for(int i = 0; i < in_len; i++, pos++) {
- szData[i] = (char)((pIn[pos] << shift) & 0x7F);
- if(pos != 0) {
- /* except the first byte, a character contains some bits
- * from the previous byte
- */
- szData[i] |= pIn[pos-1] >> (8-shift);
- }
- shift++;
-
- if(shift == 7) {
- shift = 0;
- /* a possible extra complete character is available */
- i++;
- szData[i] = (char)(pIn[pos] >> 1);
- /* This is the end of the input, quit */
- if(szData[i] == 0)
- break;
- }
- }
- }
-
- public char[] ucs2ToUTF8(byte[] ucs2Bytes) throws UnsupportedEncodingException{
- String unicode = new String(ucs2Bytes, "UTF-16");
- char[] str = unicode.toCharArray();
-
- String tmp1 = new String(smsbuffer);
- String tmp2 = new String(str);
- String tmp3 = tmp1.trim() + tmp2.trim();
- smsbuffer = tmp3.toCharArray();
-
- return str;
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-import java.io.UnsupportedEncodingException;
-
-public class EncodeMsg {
- int index;
-
- public int EncodeSmsDeliverTpdu(SmsAddressInfo SCA,
- TPDU_SMS_DELIVER tpdu_deliver, char[] packet, int pid, int dcs) {
- // char tp_dcs; // BYTE
- char[] timeStamp = new char[21];
- char[] scaNumber = new char[21];
- char[] orgNumber = new char[21];
- int scaLength;
- int orgLength;
- int i;
-
- index = 0;
-
- if (SCA.diallingNum[0] == '+') {
- SCA.ton = 1;
- SCA.npi = 1;
- for (i = 0; i < SCA.dialnumlen-1; i++) {
- scaNumber[i] = SCA.diallingNum[i + 1];
- }
- scaLength = SCA.dialnumlen - 1;
- scaNumber[scaLength] = '\0';
- } else {
- SCA.ton = 0;
- SCA.npi = 0;
- for (i = 0; i < SCA.dialnumlen; i++) {
- scaNumber[i] = SCA.diallingNum[i];
- }
- scaLength = SCA.dialnumlen;
- scaNumber[scaLength] = '\0';
- }
-
- SmsUtilEncodeAddrField_sca(packet, scaNumber, scaLength, SCA.ton, SCA.npi);
-
- tpdu_deliver.msgType = EnumConstants.SMS_TPDU_DELIVER;
-
- packet[index] = (char) tpdu_deliver.msgType;
- packet[index] |= tpdu_deliver.mms ? 0x04 : 0;
- packet[index] |= tpdu_deliver.sri ? 0x20 : 0;
- packet[index] |= tpdu_deliver.udhi ? 0x40 : 0;
- packet[index] |= tpdu_deliver.rp ? 0x80 : 0;
-
- index++;
-
- if (tpdu_deliver.orgAddr.diallingNum[0] == '+') {
- tpdu_deliver.orgAddr.ton = 1;
- tpdu_deliver.orgAddr.npi = 1;
- for (i = 0; i < tpdu_deliver.orgAddr.dialnumlen-1; i++) {
- orgNumber[i] = tpdu_deliver.orgAddr.diallingNum[i + 1];
- }
- orgLength = tpdu_deliver.orgAddr.dialnumlen - 1;
- orgNumber[orgLength] = '\0';
- } else {
- tpdu_deliver.orgAddr.ton = 0;
- tpdu_deliver.orgAddr.npi = 0;
- for (i = 0; i < tpdu_deliver.orgAddr.dialnumlen; i++) {
- orgNumber[i] = tpdu_deliver.orgAddr.diallingNum[i];
- }
- orgLength = tpdu_deliver.orgAddr.dialnumlen;
- orgNumber[orgLength] = '\0';
- }
-
- /* TP-OA */
- SmsUtilEncodeAddrField_dst(packet, orgNumber, orgLength, tpdu_deliver.orgAddr.ton, tpdu_deliver.orgAddr.npi);
-
- /* TP-PID */
- packet[index++] = (char) pid;
-
- int tp_dcs = SmsUtilEncodeDCS(tpdu_deliver.dcs);
-
- packet[index++] = (char) tp_dcs;
-
- SmsUtilEncodeTimeStamp(tpdu_deliver.scts, timeStamp);
-
- for (i = 0; i < 7; i++) {
- packet[index++] = timeStamp[i];
- }
-
- /* TP-UD */
- switch(tpdu_deliver.dcs.alphabetType) {
- case EnumConstants.TAPI_NETTEXT_ALPHABET_DEFAULT:
- /* UDL */
- packet[index++] = (char) tpdu_deliver.userData.length;
- SmsUtilPackGSMCode(packet, tpdu_deliver.userData,
- tpdu_deliver.userData.length);
- break;
- case EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT:
- packet[index++] = (char) tpdu_deliver.userData.length;
- SmsUtilPackGSM8Code(packet, tpdu_deliver.userData,
- tpdu_deliver.userData.length);
- break;
- case EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2:
- try {
- String str = new String(tpdu_deliver.userData);
- byte[] byte_buf = str.getBytes("ISO-10646-UCS-2");
- packet[index++] = (char)byte_buf.length;
- for(int ind = 0; ind < byte_buf.length; ind++)
- packet[index++] = (char)byte_buf[ind];
- } catch (UnsupportedEncodingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- break;
- // throw new NullPointerException(Messages.EncodeMsg_0);
- default:
- throw new NullPointerException(Messages.EncodeMsg_1);
- }
-
- return index;
- }
-
- private void SmsUtilPackGSMCode(char[] pOut, char[] szData, int in_len) {
- int shift = 0;
-
- for (int i = 0; i < in_len; index++, i++) {
- /* pack the high bits using the low bits of the next character */
- pOut[index] = (char) (szData[i] >> shift);
- if (i + 1 < in_len) {
- /* pack the high bits using the low bits of the next character */
- pOut[index] |= szData[i + 1] << (7 - shift);
- pOut[index] &= 0xFF;
- shift++;
-
- if (shift == 7) {
- shift = 0;
- i++;
- }
- }
- }
- }
-
- private void SmsUtilPackGSM8Code(char[] pOut, char[] szData, int in_len) {
- for(int i = 0; i < in_len; i++) {
- pOut[index++] = szData[i];
- }
- }
-
- private void SmsUtilEncodeTimeStamp(TmDateTime tmDateTime, char[] timeStamp) {
- char[] szBuf = new char[3];
- char[] tmpBuf = new char[20];
- int year;
-
- for (int i = 0; i < 7; i++) {
- timeStamp[i] = 0x00;
- }
-
- year = tmDateTime.year - 2000;
- if (year < 0)
- year += 100;
-
- szBuf = String.format("%02d", year).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[0] = tmpBuf[0];
- szBuf = String.format("%02d", tmDateTime.month).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[1] = tmpBuf[0];
- szBuf = String.format("%02d", tmDateTime.day).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[2] = tmpBuf[0];
- szBuf = String.format("%02d", tmDateTime.hour).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[3] = tmpBuf[0];
- szBuf = String.format("%02d", tmDateTime.minute).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[4] = tmpBuf[0];
- szBuf = String.format("%02d", tmDateTime.second).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[5] = tmpBuf[0];
- szBuf = String.format("%02d", 0x00).toCharArray(); //$NON-NLS-1$
- SmsUtilConvertDigit2BCD(tmpBuf, szBuf, 2);
- timeStamp[6] = tmpBuf[0];
- }
-
- private char SmsUtilEncodeDCS(TapiNetTextCodingScheme codingScheme) {
- char dcs = 0x00;
-
- switch (codingScheme.codingGroupType) {
- case EnumConstants.TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS: // bit 7..4 is
- // 00xx
- {
- if (codingScheme.bCompressed)
- dcs |= 0x20; // bit 5 is 1
-
- if (codingScheme.bMsgClassSet) {
- dcs |= 0x10; // bit 4 is 1
-
- switch (codingScheme.classType) {
- case EnumConstants.TAPI_NETTEXT_CLASS_0: // bit 1..0 is 00
- {
- dcs |= 0x00;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CLASS_1: // bit 1..0 is 01
- {
- dcs |= 0x01;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CLASS_2: // bit 1..0 is 10
- {
- dcs |= 0x02;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CLASS_3: // bit 1..0 is 11
- {
- dcs |= 0x03;
- break;
- }
- default:
- break;
- }
- }
-
- switch (codingScheme.alphabetType) {
- case EnumConstants.TAPI_NETTEXT_ALPHABET_DEFAULT: // bit 3..2 is 00
- {
- dcs |= 0x00;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT: // bit 3..2 is 01
- {
- dcs |= 0x04;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2: // bit 3..2 is 10
- {
- dcs |= 0x08;
- break;
- }
- default: // bit 3..2 is 11
- {
- dcs |= 0x0C;
- break;
- }
- }
-
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD: // bit 7..4
- // is 1100
- {
- dcs |= 0xC0;
-
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CODGRP_SM_WAITING_STORE: // bit 7..4 is
- // 1101
- {
- dcs |= 0xD0;
-
- if (codingScheme.bMsgIndActive) // bit 3..2 is 10
- dcs |= 0x08;
-
- switch (codingScheme.waitingType) {
- case EnumConstants.TAPI_NETTEXT_WAITING_VOICE_MSG: // bit 1..0 is 00
- {
- dcs |= 0x00;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_WAITING_FAX_MSG: // bit 1..0 is 01
- {
- dcs |= 0x01;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_WAITING_EMAIL_MSG: // bit 1..0 is 10
- {
- dcs |= 0x02;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_WAITING_OTHER_MSG: // bit 1..0 is 11
- {
- dcs |= 0x03;
- break;
- }
- default:
- break;
- }
-
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2: // bit
- // 7..4
- // is
- // 1110
- {
- dcs |= 0xE0;
-
- if (codingScheme.bMsgIndActive) // bit 3..2 is 10
- dcs |= 0x08;
-
- switch (codingScheme.waitingType) {
- case EnumConstants.TAPI_NETTEXT_WAITING_VOICE_MSG: // bit 1..0 is 00
- {
- dcs |= 0x00;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_WAITING_FAX_MSG: // bit 1..0 is 01
- {
- dcs |= 0x01;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_WAITING_EMAIL_MSG: // bit 1..0 is 10
- {
- dcs |= 0x02;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_WAITING_OTHER_MSG: // bit 1..0 is 11
- {
- dcs |= 0x03;
- break;
- }
- default:
- break;
- }
-
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CODGRP_SM_CLASS_CODING: // bit 7..4 is
- // 1111
- {
- dcs |= 0xF0;
-
- switch (codingScheme.alphabetType) {
- case EnumConstants.TAPI_NETTEXT_ALPHABET_DEFAULT: // bit 2 is 0
- {
- dcs |= 0x00;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT: // bit 2 is 1
- {
- dcs |= 0x04;
- break;
- }
- default:
- break;
- }
-
- switch (codingScheme.classType) {
- case EnumConstants.TAPI_NETTEXT_CLASS_0: // bit 1..0 is 00
- {
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CLASS_1: // bit 1..0 is 01
- {
- dcs |= 0x01;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CLASS_2: // bit 1..0 is 10
- {
- dcs |= 0x02;
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CLASS_3: // bit 1..0 is 11
- {
- dcs |= 0x03;
- break;
- }
- default:
- break;
- }
-
- break;
- }
- case EnumConstants.TAPI_NETTEXT_CODGRP_SM_RESERVED: // bit 7..4 is 1111
- {
- dcs = (char) ((codingScheme.codingGroup << 4) & 0xF0);
- dcs |= (codingScheme.code & 0x0F);
- break;
- }
- default:
- break;
- }
- return dcs;
- }
-
- private void SmsUtilEncodeAddrField_sca(char[] pAddrField, char[] diallingNum,
- int dialnumLen, int ton, int npi) {
-// int index = 0;
-
- if (pAddrField == null || diallingNum == null)
- throw new NullPointerException("SmsUtilEncodeAddrField"); //$NON-NLS-1$
-
- if (ton != EnumConstants.SIM_TON_ALPHA_NUMERIC) {
- if((dialnumLen % 2) != 0) {
- pAddrField[index++] = (char)(dialnumLen / 2 + 1 + 1);
- } else {
- pAddrField[index++] = (char)(dialnumLen / 2 + 1);
- }
- } else {
- pAddrField[index] = (char) (((dialnumLen * 7 + 7) / 8) * 2);
- if (((dialnumLen * 7) % 8) <= 4) {
- pAddrField[index]--;
- }
- index++;
- }
-
- // SET_TON_NPI
- pAddrField[index] = 0x80;
- pAddrField[index] |= (ton & 0x07) << 4;
- pAddrField[index] |= npi & 0x0F;
-
- index++;
-
- if (ton != EnumConstants.SIM_TON_ALPHA_NUMERIC) {
- int i, j, k;
- char[] tmpBuf = new char[dialnumLen];
- SmsUtilConvertDigit2BCD(tmpBuf, diallingNum, dialnumLen);
- j = index;
-
- if((dialnumLen % 2) != 0) {
- index += dialnumLen / 2 + 1;
- }
- else {
- index += dialnumLen / 2;
- }
-
- for(i = j, k = 0; i < index; i++, k++)
- pAddrField[i] = tmpBuf[k];
- } else {
- SmsUtilPackGSMCode(pAddrField, diallingNum, (int) dialnumLen);
- }
- }
-
- private void SmsUtilEncodeAddrField_dst(char[] packet, char[] diallingNum,
- int dialnumLen, int ton, int npi) {
-// int index = 0;
-
- if (packet == null || diallingNum == null)
- throw new NullPointerException("SmsUtilEncodeAddrField"); //$NON-NLS-1$
-
- if (ton != EnumConstants.SIM_TON_ALPHA_NUMERIC) {
- packet[index++] = (char) dialnumLen;
- } else {
- packet[index] = (char) (((dialnumLen * 7 + 7) / 8) * 2);
- if (((dialnumLen * 7) % 8) <= 4) {
- packet[index]--;
- }
- index++;
- }
-
- // SET_TON_NPI
- packet[index] = 0x80;
- packet[index] |= (ton & 0x07) << 4;
- packet[index] |= npi & 0x0F;
-
- index++;
-
- if (ton != EnumConstants.SIM_TON_ALPHA_NUMERIC) {
- int i, j, k;
- char[] tmpBuf = new char[dialnumLen];
- for (i = 0; i < dialnumLen; i++)
- tmpBuf[i] = 0x00;
-
- SmsUtilConvertDigit2BCD(tmpBuf, diallingNum, dialnumLen);
- j = index;
-
- if ((dialnumLen % 2) != 0)
- index += dialnumLen / 2 + 1;
- else
- index += dialnumLen / 2;
-
- for (i = j, k = 0; i < index; i++, k++) {
- packet[i] = tmpBuf[k];
- }
- } else {
- SmsUtilPackGSMCode(packet, diallingNum, (int) dialnumLen);
- }
- }
-
- private void SmsUtilConvertDigit2BCD(char[] pBCD, char[] pDigits,
- long digitLen) {
- int i, j, digit;
- char higher, lower;
-
- if (pBCD == null || pDigits == null)
- throw new NullPointerException("SmsUtilConvertDigit2BCD"); //$NON-NLS-1$
-
- for (i = 0, j = 0; i < digitLen; i = i + 2, j++) {
- if (pDigits[i] == '*')
- digit = 0x0A;
- else if (pDigits[i] == '#')
- digit = 0x0B;
- else if (AcToupper(pDigits[i]) == 'P')
- digit = 0x0C;
- else
- digit = (int) (pDigits[i] - '0');
-
- lower = (char) (digit & 0x0F);
-
- if (digitLen != i + 1) {
- if (pDigits[i + 1] == '*')
- digit = 0x0A;
- else if (pDigits[i + 1] == '#')
- digit = 0x0B;
- else if (AcToupper(pDigits[i + 1]) == 'P')
- digit = 0x0C;
- else
- digit = (int) (pDigits[i + 1] - '0');
-
- higher = (char) (digit & 0x0F);
- } else {
- higher = 0xFF;
- }
- pBCD[j] = (char) ((higher << 4) | lower);
- pBCD[j] &= 0xFF;
- }
- }
-
- private int AcToupper(int ch) {
- return (('a' <= (ch) && (ch) <= 'z') ? ((ch) - ('a' - 'A')) : (ch));
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class EnumConstants {
- // SmsTPDUType
- public static final int SMS_TPDU_DELIVER = 0x00;
- public static final int SMS_TPDU_DELIVER_REPORT = 0x00;
- public static final int SMS_TPDU_SUBMIT = 0x01;
- public static final int SMS_TPDU_SUBMIT_REPORT = 0x01;
- public static final int SMS_TPDU_STATUS_REPORT = 0x02;
- public static final int SMS_TPDU_COMMAND = 0x02;
- public static final int SMS_PDU_INVALID_TYPE = 0x03;
-
- // NumberingPlan
- public static final int NUMBERING_PLAN_IDENTIFICATION_UNKNOWN = 0x00;
- public static final int NUMBERING_PLAN_IDENTIFICATIN_ISDN_TELEPHONE = 0x01;
-
- // TapiNetTextCodingGroupType
- public static final int TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS = 0x00;
- public static final int TAPI_NETTEXT_CODGRP_CB_GENERAL_LANG = 0x01;
- public static final int TAPI_NETTEXT_CODGRP_CB_ALPHA = 0x02;
- public static final int TAPI_NETTEXT_CODGRP_CB_RES1 = 0x03;
- public static final int TAPI_NETTEXT_CODGRP_CB_RES2 = 0x04;
- public static final int TAPI_NETTEXT_CODGRP_SM_AUTO_DELETION = 0x05;
- public static final int TAPI_NETTEXT_CODGRP_CB_GENERAL_DCS = 0x06;
- public static final int TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD = 0x07;
- public static final int TAPI_NETTEXT_CODGRP_SM_WAITING_STORE = 0x08;
- public static final int TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2 = 0x09;
- public static final int TAPI_NETTEXT_CODGRP_CB_WAP = 0x0A;
- public static final int TAPI_NETTEXT_CODGRP_SM_CLASS_CODING = 0x0B;
- public static final int TAPI_NETTEXT_CODGRP_CB_CLASS_CODING = 0x0C;
- public static final int TAPI_NETTEXT_CODGRP_SM_RESERVED = 0x0D;
- public static final int TAPI_NETTEXT_CODGRP_MAX = 0x0E;
-
- // TapiNetTextWaitingType
- public static final int TAPI_NETTEXT_WAITING_VOICE_MSG = 0x00;
- public static final int TAPI_NETTEXT_WAITING_FAX_MSG = 0x01;
- public static final int TAPI_NETTEXT_WAITING_EMAIL_MSG = 0x02;
- public static final int TAPI_NETTEXT_WAITING_OTHER_MSG = 0x03;
- public static final int TAPI_NETTEXT_WAITING_MAX = 0x04;
-
- // TapiNetTextAlphabetType
- public static final int TAPI_NETTEXT_ALPHABET_DEFAULT = 0x00;
- public static final int TAPI_NETTEXT_ALPHABET_8BIT = 0x01;
- public static final int TAPI_NETTEXT_ALPHABET_UCS2 = 0x02;
- public static final int TAPI_NETTEXT_ALPHABET_KSC5601 = 0x03;
- public static final int TAPI_NETTEXT_ALPHABET_MAX = 0x04;
-
- // TapiNetTextClasstype
- public static final int TAPI_NETTEXT_CLASS_0 = 0x00;
- public static final int TAPI_NETTEXT_CLASS_1 = 0x01;
- public static final int TAPI_NETTEXT_CLASS_2 = 0x02;
- public static final int TAPI_NETTEXT_CLASS_3 = 0x03;
- public static final int TAPI_NETTEXT_CLASS_NONE = 0x04;
- public static final int TAPI_NETTEXT_CLASS_MAX = 0x05;
-
- // TapiNetTextVPType
- public static final int TAPI_NETTEXT_VP_NOT_USED = 0;
- public static final int TAPI_NETTEXT_VP_RELATIVE = 2;
- public static final int TAPI_NETTEXT_VP_ABSOLUTE = 3;
- public static final int TAPI_NETTEXT_VP_ENHANCED = 1;
- public static final int TAPI_NETTEXT_VP_MAX = 4;
-
- // TapiNetTextVPRelValue;
- public static final int TAPI_NETTEXT_VP_REL_1H = 0;
- public static final int TAPI_NETTEXT_VP_REL_6H = 1;
- public static final int TAPI_NETTEXT_VP_REL_12H = 2;
- public static final int TAPI_NETTEXT_VP_REL_1D = 3;
- public static final int TAPI_NETTEXT_VP_REL_1W = 4;
- public static final int TAPI_NETTEXT_VP_REL_1M = 5;
- public static final int TAPI_NETTEXT_VP_REL_MAX = 6;
- public static final int TAPI_NETTEXT_SMDATA_SIZE_MAX = 255;
- public static final int TAPI_NETTEXT_ADDRESS_LEN_MAX = 255;
- public static final int TAPI_NETTEXT_SCADDRESS_LEN_MAX = 20;
-
- // define
- public static final int SIM_TON_INTERNATIONAL = 1;
- public static final int SIM_TON_ALPHA_NUMERIC = 5;
- public static final int SIM_SMSP_ADDRESS_LEN = 20;
-
-
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "com.samsung.tizen.telephony.sms.encription.messages"; //$NON-NLS-1$
- public static String EncodeMsg_0;
- public static String EncodeMsg_1;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class SmsAddressInfo {
- public int ton; // NumberType
- public int npi; // NumberingPlan
- public int dialnumlen; // UINT32
- public char diallingNum[] = new char[21]; // unsigned char
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class TPDU_SMS_DELIVER {
- public int msgType; // SmsTPDUType
- public boolean mms; // BOOL
- public boolean rp; // BOOL
- public boolean udhi; // BOOL
- public boolean sri; // BOOL
-
- public SmsAddressInfo orgAddr;
- public byte pId; // BYTE
- public TmDateTime scts;
- public TapiNetTextCodingScheme dcs;
- public int udl; // UINT
- public char[] userData; // byte *
-
- public TPDU_SMS_DELIVER() {
- orgAddr = new SmsAddressInfo();
- scts = new TmDateTime();
- dcs = new TapiNetTextCodingScheme();
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class TPDU_SMS_SUBMIT {
- // message type
- int msgType; // SmsTPDUType bit 0,1
-
- // reject duplicates
- boolean rd; // bit 2
-
- // validity period format
- int vpf; // TapiNetTextVPType bits 3,4
-
- // reply path
- boolean rp; // bit 7
-
- // user data header indication
- boolean udhi; // bit 6
-
- // status report request
- boolean srr; // bit 5
-
- /****** BODY *******/
- //message reference
- int mr;
-
- // destination address
- public SmsAddressInfo destAddr;
-
- // protocol identifier
- char pId;
-
- //data coding scheme
- TapiNetTextCodingScheme dcs;
-
- // validity period
- TapiNetTextVP vp;
-
- // user data length
- public int udl;
-
- // user data
- public char[] userData;
-
- public TPDU_SMS_SUBMIT() {
- dcs = new TapiNetTextCodingScheme();
- destAddr = new SmsAddressInfo();
- vp = new TapiNetTextVP();
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class TapiNetTextCodingScheme {
- public boolean bSMSCinSIM; /**< if SMSC is stored in SIM this is TRUE */
- public boolean bCompressed; /**< if text is compressed this is TRUE */
- public boolean bMsgClassSet; /**< message class indication. if TRUE = bits 1..0, if FALSE = reserved */
- public boolean bMsgIndActive; /**< message indication group. if TRUE = on, FALSE = off */
- public int codingGroupType; // TapiNetTextCodingGroupType
- public int waitingType; // TapiNetTextWaitingType
- public int alphabetType; // TapiNetTextAlphabetType
- public int classType; // TapiNetTextClassType
- public byte codingGroup;
- public byte code;
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class TapiNetTextVP {
- int vpType; // TapiNetTextVPType
- int vpRelativeType; // TapiNetVPRelValue
- long vpValue; // UINT32
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.encription;
-
-public class TmDateTime {
- public int year;
- public int month;
- public int day;
- public int hour;
- public int minute;
- public int second;
-}
+++ /dev/null
-EncodeMsg_0=Unknown alphabetType UCS2\!\n
-EncodeMsg_1=Unknown alphabetType\!\n
+++ /dev/null
-TelephonySMS_0=SMS
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.page;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Text;
-
-import com.samsung.tizen.injector.provider.AbstractInjectorItem;
-import com.samsung.tizen.injector.provider.AbstractInjectorPage;
-
-public class CellBroadcasting extends AbstractInjectorPage{
-
- public CellBroadcasting(AbstractInjectorItem item, String name) {
- super(item, name);
- }
-
-// private final static String PAGE_ID = "com.samsung.tizen.telephony.sms.cellbroadcasting";
-// private final static String TITLE = "Cell Broadcasting";
-
- private final String[] CHANNEL_ID_LIST = {
- Messages.CellBroadcasting_0, Messages.CellBroadcasting_1
- };
- private final String[] LANGUAGE_LIST = {
- Messages.CellBroadcasting_2, Messages.CellBroadcasting_3
- };
- private final String[] GEOGRAPHICAL_LIST = {
- "00","01","02","03" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
- };
-
- private Combo cmbChannelId, cmbLanguage, cmbGeographical;
- private Text txtMessageIdentifier, txtDCS, txtUpdateNumber, txtPageNumber, txtMessage;
- private Button butSend;
-
- protected void createContents() {
- createCellBroadcastingSection();
- }
-
- protected void registerReceivers() {
- }
-
- private void createCellBroadcastingSection() {
- Composite client = formUtil.createSection(parent, Messages.CellBroadcasting_8);
-
- Composite compChannelId = formUtil.createExpandable(client,Messages.CellBroadcasting_9,3);
- cmbChannelId = formUtil.createCombo(compChannelId);
- formUtil.addComboItem(cmbChannelId, CHANNEL_ID_LIST);
- formUtil.createLabel(compChannelId, Messages.CellBroadcasting_10);
- txtMessageIdentifier = formUtil.createText(compChannelId, ""); //$NON-NLS-1$
-
- Composite compLanguage = formUtil.createExpandable(client,Messages.CellBroadcasting_12,3);
- cmbLanguage = formUtil.createCombo(compLanguage);
- formUtil.addComboItem(cmbLanguage, LANGUAGE_LIST);
- formUtil.createLabel(compLanguage, Messages.CellBroadcasting_13);
- txtDCS = formUtil.createText(compLanguage, ""); //$NON-NLS-1$
-
- Composite compSerialNumber = formUtil.createExpandable(client,Messages.CellBroadcasting_15,4);
- formUtil.createLabel(compSerialNumber, Messages.CellBroadcasting_16);
- cmbGeographical = formUtil.createCombo(compSerialNumber);
- formUtil.addComboItem(cmbGeographical, GEOGRAPHICAL_LIST);
- formUtil.createLabel(compSerialNumber, Messages.CellBroadcasting_17);
- txtUpdateNumber = formUtil.createText(compSerialNumber, ""); //$NON-NLS-1$
-
- Composite compPageNumber = formUtil.createExpandable(client,Messages.CellBroadcasting_19,2);
- formUtil.createLabel(compPageNumber, Messages.CellBroadcasting_20);
- txtPageNumber = formUtil.createText(compPageNumber, ""); //$NON-NLS-1$
-
- Composite compMessage = formUtil.createExpandable(client,Messages.CellBroadcasting_22);
- txtMessage = formUtil.createText(compMessage, ""); //$NON-NLS-1$
- formUtil.setWidth(txtMessage, 350);
-
- Composite buttonComposite = formUtil.createComposite(client);
- butSend = formUtil.createButton(buttonComposite, Messages.CellBroadcasting_24, SWT.PUSH);
- butSend.addSelectionListener( new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- super.widgetSelected(e);
- }
- });
- }
-
-
-
-
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.page;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "com.samsung.tizen.telephony.sms.page.messages"; //$NON-NLS-1$
- public static String CellBroadcasting_0;
- public static String CellBroadcasting_1;
- public static String CellBroadcasting_10;
- public static String CellBroadcasting_12;
- public static String CellBroadcasting_13;
- public static String CellBroadcasting_15;
- public static String CellBroadcasting_16;
- public static String CellBroadcasting_17;
- public static String CellBroadcasting_19;
- public static String CellBroadcasting_2;
- public static String CellBroadcasting_20;
- public static String CellBroadcasting_22;
- public static String CellBroadcasting_24;
- public static String CellBroadcasting_3;
- public static String CellBroadcasting_8;
- public static String CellBroadcasting_9;
- public static String SMS_0;
- public static String SMS_1;
- public static String SMS_10;
- public static String SMS_11;
- public static String SMS_12;
- public static String SMS_13;
- public static String SMS_14;
- public static String SMS_15;
- public static String SMS_16;
- public static String SMS_17;
- public static String SMS_18;
- public static String SMS_19;
- public static String SMS_2;
- public static String SMS_20;
- public static String SMS_21;
- public static String SMS_23;
- public static String SMS_24;
- public static String SMS_25;
- public static String SMS_26;
- public static String SMS_27;
- public static String SMS_28;
- public static String SMS_29;
- public static String SMS_3;
- public static String SMS_35;
- public static String SMS_37;
- public static String SMS_38;
- public static String SMS_4;
- public static String SMS_5;
- public static String SMS_6;
- public static String SMS_7;
- public static String SMS_8;
- public static String SMS_9;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.page;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-import com.samsung.tizen.injector.provider.AbstractInjectorItem;
-import com.samsung.tizen.injector.provider.AbstractInjectorPage;
-import com.samsung.tizen.injector.receiver.AbstractInjectorReceiver;
-import com.samsung.tizen.telephony.sms.encription.DecodeMsg;
-import com.samsung.tizen.telephony.sms.encription.EncodeMsg;
-import com.samsung.tizen.telephony.sms.encription.EnumConstants;
-import com.samsung.tizen.telephony.sms.encription.SmsAddressInfo;
-import com.samsung.tizen.telephony.sms.encription.TPDU_SMS_DELIVER;
-import com.samsung.tizen.telephony.sms.encription.TPDU_SMS_SUBMIT;
-import com.samsung.tizen.telephony.sms.encription.TapiNetTextCodingScheme;
-import com.samsung.tizen.telephony.sms.encription.TmDateTime;
-import com.samsung.tizen.telephony.sms.protocol.G04A01;
-import com.samsung.tizen.telephony.sms.protocol.G04A05;
-import com.samsung.tizen.common.connection.ConnectionPlugin;
-import com.samsung.tizen.common.connection.ConnectionPlugin.ISelectionListener;
-import com.samsung.tizen.sdblib.IDevice;
-import com.samsung.tizen.sdblib.FileListingService.FileEntry;
-
-public class SMS extends AbstractInjectorPage implements
-ISelectionListener{
-
- public SMS(AbstractInjectorItem item, String name) {
- super(item, name);
- }
-
-/* private final String[] SENDING_STATUS_VALUE_LIST = { Messages.SMS_0,
- Messages.SMS_1, Messages.SMS_2, Messages.SMS_3,
- Messages.SMS_4, Messages.SMS_5, Messages.SMS_6,
- Messages.SMS_7, Messages.SMS_8, Messages.SMS_9, Messages.SMS_10 };
-*/
- private final String[] SENDING_STATUS_VALUE_LIST = { Messages.SMS_0,
- Messages.SMS_2 };
-
- private final String[] USE_SMSC_LIST = { "+821091111" }; //$NON-NLS-1$
- private final char[] SMSC_NUM = {+8, 2, 1, 0, 9, 1, 1, 1, 1};
- private final String[] ORIGINATING_ADDRESS_LIST = { "+821030014180" }; //$NON-NLS-1$
- private final String[] CLASS_TYPE_LIST = { Messages.SMS_11, Messages.SMS_12,
- Messages.SMS_15, Messages.SMS_16, Messages.SMS_17 };
-
- private Combo cmbSentStatusSendingStatus;
- private Button butSentStatusSet;
-
- private Combo cmbMobileTerminateUseSMSC,
- cmbMobileTerminateOriginatingAddress, cmbMobileTerminateClassType;
- private Button butMobileTerminateSMSCconfigured, butMobileTerminateSendMsg;
- private Text txtMobileTerminatePID, txtMobileTerminateDCS,
- txtMobileTerminateMessageText, txtMobileTerminateReceivedMessage;
- private Label lblMobileTerminateMessageLength,
- lblMobileTerminateReceivedMessage, lblMobileTerminateReceivedNumber, txtMobileTerminateReceivedNumber;
- private IDevice currentDevice;
-
- protected void createContents() {
- ConnectionPlugin.getDefault().addSelectionListener(this);
- currentDevice = ConnectionPlugin.getDefault().getCurrentDevice();
- createSentStatusSection();
- createMobileTerminateSection();
- }
-
- protected void registerReceivers() {
- registerReceiver(new SimDBReceiver());
- }
-
- private void createSentStatusSection() {
- Composite client = formUtil.createSection(parent, Messages.SMS_18);
- Composite mainComposite = formUtil.createComposite(client, 3);
- formUtil.createLabel(mainComposite, Messages.SMS_19);
-
- cmbSentStatusSendingStatus = formUtil.createCombo(mainComposite);
- formUtil.addComboItem(cmbSentStatusSendingStatus,
- SENDING_STATUS_VALUE_LIST);
-
- butSentStatusSet = formUtil
- .createButton(mainComposite, Messages.SMS_20, SWT.PUSH);
- butSentStatusSet.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- sendstatus();
- }
- });
- }
-
- protected void sendstatus() {
- int errorcode = get_error_code_from_ui_index(cmbSentStatusSendingStatus
- .getSelectionIndex());
- int data1 = errorcode & 0x00ff;
- int data2 = (errorcode >> 8) & 0x00ff;
-
- G04A05 ga = new G04A05();
- ga.intialize();
-
- StructureGA sga = ga.getBody();
- sga.setInt("DATA1", data1); //$NON-NLS-1$
- sga.setInt("DATA2", data2); //$NON-NLS-1$
-
- try {
- injectorSocket.send(ga);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- protected int get_error_code_from_ui_index(int index) {
- if (index <= 17)
- return index;
- switch (index) {
- case 18:
- return 0x8001;
- case 19:
- return 0x8008;
- case 20:
- return 0x800A;
- case 21:
- return 0x8015;
- case 22:
- return 0x8016;
- case 23:
- return 0x801B;
- case 24:
- return 0x801C;
- case 25:
- return 0x801D;
- case 26:
- return 0x801E;
- case 27:
- return 0x8026;
- case 28:
- return 0x8029;
- case 29:
- return 0x802A;
- case 30:
- return 0x802F;
- case 31:
- return 0x8032;
- case 32:
- return 0x8045;
- case 33:
- return 0x8051;
- case 34:
- return 0x8060;
- case 35:
- return 0x8061;
- case 36:
- return 0x8062;
- case 37:
- return 0x8063;
- case 38:
- return 0x806F;
- case 39:
- return 0x807F;
- case 40:
- return 0x8111;
- case 41:
- return 0x8126;
- case 42:
- return 0x812C;
- default:
- return 0x0000;
- }
- }
-
- private void createMobileTerminateSection() {
- Composite client = formUtil.createSection(parent,
- Messages.SMS_23);
-
- Composite compAddressSelector = formUtil.createExpandable(client,
- Messages.SMS_24, 3);
-/*
- formUtil.createLabel(compAddressSelector, Messages.SMS_25);
- cmbMobileTerminateUseSMSC = formUtil
- .createEditableCombo(compAddressSelector);
- formUtil.addComboItem(cmbMobileTerminateUseSMSC, USE_SMSC_LIST);
- butMobileTerminateSMSCconfigured = formUtil.createButton(
- compAddressSelector, Messages.SMS_26, SWT.CHECK);
-*/
- formUtil.createLabel(compAddressSelector,
- Messages.SMS_27);
- cmbMobileTerminateOriginatingAddress = formUtil.createEditableCombo(
- compAddressSelector, 2);
- formUtil.addComboItem(cmbMobileTerminateOriginatingAddress,
- ORIGINATING_ADDRESS_LIST);
-/*
- formUtil.createLabel(compAddressSelector, Messages.SMS_28);
- cmbMobileTerminateClassType = formUtil.createCombo(compAddressSelector,
- 2);
- formUtil.addComboItem(cmbMobileTerminateClassType, CLASS_TYPE_LIST);
-
- Composite compUserOption = formUtil.createExpandable(client,
- Messages.SMS_29, 4);
- formUtil.createLabel(compUserOption, "PID : "); //$NON-NLS-1$
- txtMobileTerminatePID = formUtil.createText(compUserOption, ""); //$NON-NLS-1$
- formUtil.createLabel(compUserOption, "DCS : "); //$NON-NLS-1$
- txtMobileTerminateDCS = formUtil.createText(compUserOption, ""); //$NON-NLS-1$
- txtMobileTerminateDCS.setEnabled(false);
-*/
- Composite compUserData = formUtil.createExpandable(client,
- Messages.SMS_13, 4);
- formUtil.createLabel(compUserData, Messages.SMS_35);
- // lblMobileTerminateMessageLength = formUtil.createLabel(compUserData,
- // "0");
- // formUtil.createLabel(compUserData, "/ 140 )");
- //Composite buttonComposite = formUtil.createComposite(client, 2);
- txtMobileTerminateMessageText = formUtil.createText(compUserData, ""); //$NON-NLS-1$
- txtMobileTerminateMessageText.setTextLimit(80);
- formUtil.setWidth(txtMobileTerminateMessageText, 400);
-
- butMobileTerminateSendMsg = formUtil.createButton(compUserData,
- Messages.SMS_37, SWT.PUSH);
-
- butMobileTerminateSendMsg.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- sendMsg();
- }
- });
-
- Composite compReceivedMessage = formUtil.createExpandable(client,
- Messages.SMS_38, 2);
- lblMobileTerminateReceivedNumber = formUtil.createLabel(
- compReceivedMessage, "Call Number : "); //$NON-NLS-1$
- txtMobileTerminateReceivedNumber = formUtil.createLabel(compReceivedMessage, ""); //$NON-NLS-1$
- formUtil.setWidth(txtMobileTerminateReceivedNumber, 350);
- lblMobileTerminateReceivedMessage = formUtil.createLabel(
- compReceivedMessage, "Message : \n\n\n\n\n"); //$NON-NLS-1$
- txtMobileTerminateReceivedMessage = formUtil.createTextArea(compReceivedMessage, "\n\n\n\n\n");
-// txtMobileTerminateReceivedMessage = formUtil.createLabel(compReceivedMessage, ""); //$NON-NLS-1$
-// formUtil.setWidth(txtMobileTerminateReceivedMessage, 2000);
-// formUtil.setWidth(lblMobileTerminateReceivedMessage, 350);
-
- }
-
- protected void sendMsg() {
- char[] packet = new char[500];
- int pid = 0;
- int dcs = 0xF0;
-
- EncodeMsg encode = new EncodeMsg();
-
- SmsAddressInfo SCA = new SmsAddressInfo();
-// SCA.diallingNum = String.format(cmbMobileTerminateUseSMSC.getText())
-// .toCharArray();
- SCA.diallingNum = SMSC_NUM;
- SCA.dialnumlen = SCA.diallingNum.length;
-
- Date currentDate = new Date();
-
- SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy"); //$NON-NLS-1$
- String year = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("MM"); //$NON-NLS-1$
- String month = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("dd"); //$NON-NLS-1$
- String day = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("HH"); //$NON-NLS-1$
- String hour = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("mm"); //$NON-NLS-1$
- String minute = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("ss"); //$NON-NLS-1$
- String second = dateFormat.format(currentDate);
-
- TmDateTime tm = new TmDateTime();
- tm.year = Integer.parseInt(year.trim());
- tm.month = Integer.parseInt(month.trim());
- tm.day = Integer.parseInt(day.trim());
- tm.hour = Integer.parseInt(hour.trim());
- tm.minute = Integer.parseInt(minute.trim());
- tm.second = Integer.parseInt(second.trim());
-
- TapiNetTextCodingScheme scheme = new TapiNetTextCodingScheme();
- scheme.bCompressed = false;
- scheme.bMsgClassSet = false;
- scheme.bMsgIndActive = false;
- scheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS;
- scheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_VOICE_MSG;
- scheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2;
-// scheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT;
-// scheme.classType = cmbMobileTerminateClassType.getSelectionIndex();
- scheme.classType = 0;
- scheme.codingGroup = 0;
- scheme.code = 0;
-
- TPDU_SMS_DELIVER tpdu_deliver = new TPDU_SMS_DELIVER();
- tpdu_deliver.msgType = 0;
- tpdu_deliver.mms = false;
- tpdu_deliver.rp = false;
- tpdu_deliver.udhi = false;
- tpdu_deliver.sri = false;
-
- SmsAddressInfo orgAddr = new SmsAddressInfo();
- orgAddr.diallingNum = String.format(
- cmbMobileTerminateOriginatingAddress.getText()).toCharArray();
- orgAddr.dialnumlen = orgAddr.diallingNum.length;
-
- tpdu_deliver.orgAddr = orgAddr;
- tpdu_deliver.pId = 0;
- tpdu_deliver.scts = tm;
- tpdu_deliver.dcs = scheme;
- tpdu_deliver.udl = 0;
-// tpdu_deliver.userData = String.format(
-// txtMobileTerminateMessageText.getText()).toCharArray();
- tpdu_deliver.userData = txtMobileTerminateMessageText.getText().toCharArray();
-
- int packet_len = encode.EncodeSmsDeliverTpdu(SCA, tpdu_deliver, packet,
- pid, dcs);
- final byte[] data = convertToByte(packet, packet_len);
-
- G04A01 ga = new G04A01() {
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteArrayItem("DATA", data.length); //$NON-NLS-1$
- }
- };
- ga.intialize();
-
- StructureGA sga = ga.getBody();
- sga.setByteArray("DATA", data); //$NON-NLS-1$
-
- try {
- injectorSocket.send(ga);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private byte[] convertToByte(char[] buf, int length) {
- byte[] result = new byte[length];
- for (int i = 0; i < length; i++) {
- result[i] = (byte) buf[i];
- }
- return result;
- }
-
- // 1000 -> 1초
- public void MatrixTime(int delayTime)
- {
- long saveTime = System.currentTimeMillis();
- long currTime = 0;
-
- while( currTime - saveTime < delayTime)
- {
- currTime = System.currentTimeMillis();
- }
- }
-
- public void sendDeliveryReport()
- {
- char[] packet = new char[500];
- int pid = 0;
- int dcs = 0xF0;
-
- EncodeMsg encode = new EncodeMsg();
-
- SmsAddressInfo SCA = new SmsAddressInfo();
- SCA.diallingNum = SMSC_NUM;
- SCA.dialnumlen = SCA.diallingNum.length;
-
- Date currentDate = new Date();
-
- SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy"); //$NON-NLS-1$
- String year = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("MM"); //$NON-NLS-1$
- String month = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("dd"); //$NON-NLS-1$
- String day = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("HH"); //$NON-NLS-1$
- String hour = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("mm"); //$NON-NLS-1$
- String minute = dateFormat.format(currentDate);
- dateFormat = new SimpleDateFormat("ss"); //$NON-NLS-1$
- String second = dateFormat.format(currentDate);
-
- TmDateTime tm = new TmDateTime();
- tm.year = Integer.parseInt(year.trim());
- tm.month = Integer.parseInt(month.trim());
- tm.day = Integer.parseInt(day.trim());
- tm.hour = Integer.parseInt(hour.trim());
- tm.minute = Integer.parseInt(minute.trim());
- tm.second = Integer.parseInt(second.trim());
-
- TapiNetTextCodingScheme scheme = new TapiNetTextCodingScheme();
- scheme.bCompressed = false;
- scheme.bMsgClassSet = false;
- scheme.bMsgIndActive = false;
- scheme.codingGroupType = EnumConstants.TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS;
- scheme.waitingType = EnumConstants.TAPI_NETTEXT_WAITING_VOICE_MSG;
- scheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_UCS2;
-// scheme.alphabetType = EnumConstants.TAPI_NETTEXT_ALPHABET_8BIT;
-// scheme.classType = cmbMobileTerminateClassType.getSelectionIndex();
- scheme.classType = 0;
- scheme.codingGroup = 0;
- scheme.code = 0;
-
- TPDU_SMS_DELIVER tpdu_deliver = new TPDU_SMS_DELIVER();
- tpdu_deliver.msgType = 0;
- tpdu_deliver.mms = false;
- tpdu_deliver.rp = false;
- tpdu_deliver.udhi = false;
- tpdu_deliver.sri = false;
-
- SmsAddressInfo orgAddr = new SmsAddressInfo();
- orgAddr.diallingNum = String.format(
- txtMobileTerminateReceivedNumber.getText()).toCharArray();
- orgAddr.dialnumlen = orgAddr.diallingNum.length;
-
- tpdu_deliver.orgAddr = orgAddr;
- tpdu_deliver.pId = 0;
- tpdu_deliver.scts = tm;
- tpdu_deliver.dcs = scheme;
- tpdu_deliver.udl = 0;
- String msg = "Message delivered.";
- tpdu_deliver.userData = msg.toCharArray();
-
- int packet_len = encode.EncodeSmsDeliverTpdu(SCA, tpdu_deliver, packet,
- pid, dcs);
- final byte[] data = convertToByte(packet, packet_len);
-
- G04A01 ga = new G04A01() {
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteArrayItem("DATA", data.length); //$NON-NLS-1$
- }
- };
- ga.intialize();
-
- StructureGA sga = ga.getBody();
- sga.setByteArray("DATA", data); //$NON-NLS-1$
-
- try {
- MatrixTime(1200);
- injectorSocket.send(ga);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public class SimDBReceiver extends AbstractInjectorReceiver {
- @Override
- public void run(AbstractGA aga) {
- StructureGA sga = aga.getBody();
-
- TPDU_SMS_SUBMIT tpdu_submit = new TPDU_SMS_SUBMIT();
- byte[] buf = sga.getByteArray("DATA"); //$NON-NLS-1$
- char[] rawdata = convertToChar(buf, 3, buf.length - 3); // new
- // change
- // May 6
-
- // System.out.println();
- // for(int i = 0; i <rawdata.length; i++ ) {
- // System.out.print("[0x" + Integer.toHexString(rawdata[i]) + "]");
- // if(i%10 == 9)
- // System.out.println();
- // }
- DecodeMsg decode = new DecodeMsg();
- decode.DecodeSmsSubmitTpdu(tpdu_submit, 500, rawdata);
-
- // char[] data = tpdu_submit.userData;
- // for(int i = 0; i <data.length; i++ ) {
- // System.out.print("[0x" + Integer.toHexString(data[i]) + "]");
- // if(i%10 == 9)
- // System.out.println();
- // }
-// String str = Messages.SMS_21
-// + String.valueOf(tpdu_submit.destAddr.diallingNum).trim()
-// + Messages.SMS_14
-// + String.valueOf(tpdu_submit.userData).trim();
-
-// lblMobileTerminateReceivedMessage.setText(str);
- txtMobileTerminateReceivedNumber.setText(String.valueOf(tpdu_submit.destAddr.diallingNum).trim());
- if(DecodeMsg.relayedsms)
- {
- txtMobileTerminateReceivedMessage.setText(String.valueOf(DecodeMsg.smsbuffer).trim());
- DecodeMsg.relay_cnt--;
- if(DecodeMsg.relay_cnt == 0)
- {
- for(int i = 0; i < DecodeMsg.smsbuffer_index; i++)
- DecodeMsg.smsbuffer[i] = '\0';
-
- DecodeMsg.smsbuffer_index = 0;
- DecodeMsg.relayedsms = false;
- }
- }
- else
- txtMobileTerminateReceivedMessage.setText(String.valueOf(tpdu_submit.userData).trim());
-
- if(DecodeMsg.deliveryReport)
- {
- if(DecodeMsg.relayedsms)
- {
- if(tpdu_submit.udl < 255)
- sendDeliveryReport();
- }
- else
- sendDeliveryReport();
- }
- }
-
- @Override
- public AbstractGA createTransferObject() {
- return new G04A01();
- }
- }
-
- private char[] convertToChar(byte[] buf, int start, int length) {
- char[] result = new char[length];
- int idx = 0;
- for (int i = 0; i < buf.length; i++) {
- if (i >= start) {
- result[idx++] = (char) buf[i];
- if (idx >= length)
- break;
- }
- }
- return result;
- }
-
- @Override
- public void selectionChanged(FileEntry selectedEntry) {
- if( selectedEntry == null)
- {
- return;
- }
- else if (!selectedEntry.getFileListingService().getDevice().isEmulator())
- return;
-
- if(currentDevice != null)
- {
- if (currentDevice.getSerialNumber() != selectedEntry.getName()) {
- txtMobileTerminateMessageText.setText("");
- txtMobileTerminateReceivedNumber.setText("");
- txtMobileTerminateReceivedMessage.setText("");
- }
- }
- currentDevice = ConnectionPlugin.getDefault().getCurrentDevice();
- }
-}
+++ /dev/null
-CellBroadcasting_0=Weather
-CellBroadcasting_1=Sports
-CellBroadcasting_10=Message Identified :
-CellBroadcasting_12=Language
-CellBroadcasting_13=DCS :
-CellBroadcasting_15=Serial Number
-CellBroadcasting_16=Geographical :
-CellBroadcasting_17=Update Number :
-CellBroadcasting_19=Page Number
-CellBroadcasting_2=English
-CellBroadcasting_20=Page Number :
-CellBroadcasting_22=Message
-CellBroadcasting_24=Send
-CellBroadcasting_3=Korean
-CellBroadcasting_8=Cell BroadCasting
-CellBroadcasting_9=Channel ID
-SMS_0=SMS OK(Success)
-SMS_1=Routing Released
-SMS_10=Sim Not Ready
-SMS_11=Class type 0
-SMS_12=Class type 1
-SMS_13=Send Data
-SMS_14=\ [Message]
-SMS_15=Class type 2
-SMS_16=Class type 3
-SMS_17=User Defined
-SMS_18=Sent Status
-SMS_19=Sending Status Value :
-SMS_2=SMS Not Available
-SMS_20=Set
-SMS_21=[To]
-SMS_23=Send/Receive Message
-SMS_24=Address Selector
-SMS_25=Use SMSC :
-SMS_26=SMSC is configured in MS
-SMS_27=Originating Address :
-SMS_28=Class Type :
-SMS_29=User Option
-SMS_3=Rout Not Allowed
-SMS_35=Message :
-SMS_37=Send Msg
-SMS_38=Received Message
-SMS_4=Invalid Parameter
-SMS_5=Device Failure
-SMS_6=Pp Reserved
-SMS_7=Service Reserved
-SMS_8=Invalid Location
-SMS_9=No SIM
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G04A01 extends AbstractGA{
-
- public G04A01(){
- super(0x04, 0x01);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteArrayItem("DATA",500); //$NON-NLS-1$
- }
-
- @Override
- protected void makeHeader() {
- }
-}
+++ /dev/null
-/*
- * com.samsung.tizen.telephony.sms
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Sungmin Ha <sungmin82.ha@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package com.samsung.tizen.telephony.sms.protocol;
-
-import com.samsung.tizen.injector.protocol.AbstractGA;
-import com.samsung.tizen.injector.protocol.StructureGA;
-
-public class G04A05 extends AbstractGA{
- public G04A05(){
- super(0x04, 0x05);
- }
-
- @Override
- protected void makeBody() {
- StructureGA ga = getBody();
- ga.addByteItem("DATA1"); //$NON-NLS-1$
- ga.addByteItem("DATA2"); //$NON-NLS-1$
- }
-
- @Override
- protected void makeHeader() {
- }
-}