Header files unification 29/21329/1
authorDongchul Lim <dc7.lim@samsung.com>
Mon, 19 May 2014 06:54:08 +0000 (15:54 +0900)
committerDongchul Lim <dc7.lim@samsung.com>
Mon, 19 May 2014 06:54:08 +0000 (15:54 +0900)
Change-Id: Ibc899c0a999846302df50ad3a858e2015571ee0b

29 files changed:
CMakeLists.txt
packaging/libtcore.spec
tcore.pc.in
tel-headers/CMakeLists.txt [new file with mode: 0644]
tel-headers/include/tel_call.h [moved from include/common/tel_call.h with 100% similarity]
tel-headers/include/tel_gps.h [moved from include/common/tel_gps.h with 100% similarity]
tel-headers/include/tel_if.h [moved from include/common/tel_if.h with 100% similarity]
tel-headers/include/tel_modem.h [moved from include/common/tel_modem.h with 100% similarity]
tel-headers/include/tel_network.h [moved from include/common/tel_network.h with 100% similarity]
tel-headers/include/tel_phonebook.h [moved from include/common/tel_phonebook.h with 100% similarity]
tel-headers/include/tel_return.h [moved from include/common/tel_return.h with 100% similarity]
tel-headers/include/tel_sap.h [moved from include/common/tel_sap.h with 100% similarity]
tel-headers/include/tel_sat.h [moved from include/common/tel_sat.h with 100% similarity]
tel-headers/include/tel_sim.h [moved from include/common/tel_sim.h with 100% similarity]
tel-headers/include/tel_sms.h [moved from include/common/tel_sms.h with 100% similarity]
tel-headers/include/tel_ss.h [moved from include/common/tel_ss.h with 100% similarity, mode: 0644]
tel-headers/introspection/call.xml [new file with mode: 0644]
tel-headers/introspection/gen.sh [new file with mode: 0755]
tel-headers/introspection/gps.xml [new file with mode: 0644]
tel-headers/introspection/manager.xml [new file with mode: 0644]
tel-headers/introspection/modem.xml [new file with mode: 0644]
tel-headers/introspection/network.xml [new file with mode: 0644]
tel-headers/introspection/phonebook.xml [new file with mode: 0644]
tel-headers/introspection/sap.xml [new file with mode: 0644]
tel-headers/introspection/sat.xml [new file with mode: 0644]
tel-headers/introspection/sim.xml [new file with mode: 0644]
tel-headers/introspection/sms.xml [new file with mode: 0644]
tel-headers/introspection/ss.xml [new file with mode: 0644]
tel-headers/tel-headers.pc.in [new file with mode: 0644]

index a7699c8..9d5162a 100755 (executable)
@@ -10,7 +10,7 @@ SET(INCLUDEDIR "\${prefix}/include")
 
 # Set required packages
 INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED glib-2.0 gudev-1.0)
+pkg_check_modules(pkgs REQUIRED glib-2.0 gudev-1.0 gobject-2.0 gio-2.0 gio-unix-2.0)
 
 FOREACH(flag ${pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
@@ -18,7 +18,7 @@ ENDFOREACH(flag)
 
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SOURCE_DIR}/include ${EXTRA_CFLAGS} -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wmissing-declarations -Wredundant-decls -Wcast-align")
 
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include/common)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/tel-headers/include)
 
 ADD_DEFINITIONS("-DFEATURE_TLOG_DEBUG")
 ADD_DEFINITIONS("-DTCORE_LOG_TAG=\"TCORE\"")
@@ -28,7 +28,6 @@ MESSAGE(${CMAKE_C_FLAGS})
 MESSAGE(${CMAKE_EXE_LINKER_FLAGS})
 
 SET(SRCS
-
        src/server.c
        src/plugin.c
        src/hal.c
@@ -54,8 +53,6 @@ SET(SRCS
        src/mux.c
 )
 
-
-
 # library build
 ADD_LIBRARY(tcore SHARED ${SRCS})
 TARGET_LINK_LIBRARIES(tcore ${pkgs_LDFLAGS})
@@ -65,10 +62,11 @@ SET_TARGET_PROPERTIES(tcore PROPERTIES VERSION 0.0.0 SOVERSION 0 OUTPUT_NAME tco
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 CONFIGURE_FILE(tcore.pc.in tcore.pc @ONLY)
 
-
 # install
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include/tcore)
 INSTALL(TARGETS tcore
        LIBRARY DESTINATION ${LIB_INSTALL_DIR})
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tcore.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME libtcore)
+
+ADD_SUBDIRECTORY(tel-headers)
index 84c2f54..2fbd290 100644 (file)
@@ -1,6 +1,7 @@
 %define major 3
 %define minor 0
 %define patchlevel 1
+%define dbus_gen_code_path %{_includedir}/tel-headers/introspection
 
 Name: libtcore
 Summary: Telephony-core library
@@ -27,12 +28,26 @@ Group:          Development/Libraries
 %description devel
 Telephony-core library (Development)
 
+%package -n tel-headers
+Summary:        Telephony-common header files
+Group:          System/Libraries
+BuildRequires:  python
+BuildRequires:  python-xml
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(gudev-1.0)
+BuildRequires:  pkgconfig(gio-2.0)
+BuildRequires:  pkgconfig(gio-unix-2.0)
+BuildRequires:  pkgconfig(gobject-2.0)
+
+%description -n tel-headers
+Telephony-common header files
+
 %prep
 %setup -q
 cp %{SOURCE1001} .
 
 %build
-%cmake . -DVERSION=%{version}
+%cmake . -DDBUS_GEN_CODE_PATH=%{dbus_gen_code_path} -DVERSION=%{version}
 make %{?jobs:-j%jobs}
 
 %post
@@ -56,3 +71,10 @@ cp LICENSE %{buildroot}/usr/share/license/%{name}
 %defattr(-,root,root,-)
 %{_includedir}/*
 %{_libdir}/pkgconfig/tcore.pc
+
+%files -n tel-headers
+%defattr(-,root,root,-)
+%{_includedir}/tel-headers
+%{dbus_gen_code_path}/tel_generated_code.h
+%{_libdir}/pkgconfig/tel-headers.pc
+%{_libdir}/libtel-headers*
index af80ea7..10d45f9 100644 (file)
@@ -6,7 +6,6 @@ includedir=${prefix}/include
 Name: tcore
 Description: SLP Telephony core API
 Version: 1.0
-Requires: glib-2.0 gobject-2.0 gudev-1.0
+Requires: glib-2.0 gobject-2.0 gudev-1.0 gio-unix-2.0 gio-2.0
 Libs: -L${libdir} -ltcore -ldl
-Cflags: -I${includedir}/tcore -I${includedir}/tcore/common
-
+Cflags: -I${includedir}/tcore
diff --git a/tel-headers/CMakeLists.txt b/tel-headers/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e4834ec
--- /dev/null
@@ -0,0 +1,65 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(tel-headers C)
+
+#SET(EXEC_PREFIX "\${prefix}")
+#SET(LIBDIR "\${prefix}/lib")
+#SET(INCLUDEDIR "\${prefix}/include")
+
+# Set required packages
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0)
+
+FOREACH(flag ${pkgs_CFLAGS})
+       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wextra -Wall -Wno-unused-parameter -Wno-missing-field-initializers")
+
+#Garbage collection - Unused code
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdata-sections -ffunction-sections -Wl,--gc-sections")
+
+INCLUDE_DIRECTORIES(
+       ${CMAKE_BINARY_DIR}
+       ${CMAKE_BINARY_DIR}/tel-headers
+       ${CMAKE_SOURCE_DIR}/tel-headers/include
+       ${CMAKE_SOURCE_DIR}/tel-headers/introspection
+)
+
+MESSAGE(${CMAKE_C_FLAGS})
+MESSAGE(${CMAKE_EXE_LINKER_FLAGS})
+
+SET(INTROSPECTION_PATH ${CMAKE_SOURCE_DIR}/tel-headers/introspection)
+
+ADD_CUSTOM_COMMAND(
+       OUTPUT ${CMAKE_BINARY_DIR}/tel-headers/tel_generated_code.c
+       COMMAND gdbus-codegen
+       --interface-prefix org.tizen.telephony.
+       --generate-c-code tel_generated_code
+       --c-namespace Telephony
+       --c-generate-object-manager
+       ${INTROSPECTION_PATH}/manager.xml
+       ${INTROSPECTION_PATH}/network.xml
+       ${INTROSPECTION_PATH}/sim.xml
+       ${INTROSPECTION_PATH}/phonebook.xml
+       ${INTROSPECTION_PATH}/sap.xml
+       ${INTROSPECTION_PATH}/sat.xml
+       ${INTROSPECTION_PATH}/sms.xml
+       ${INTROSPECTION_PATH}/call.xml
+       ${INTROSPECTION_PATH}/ss.xml
+       ${INTROSPECTION_PATH}/modem.xml
+       ${INTROSPECTION_PATH}/gps.xml
+       COMMENT "Generating GDBus .c/.h")
+
+# pkgconfig file
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+CONFIGURE_FILE(tel-headers.pc.in tel-headers.pc @ONLY)
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${CMAKE_BINARY_DIR}/tel-headers/tel_generated_code.c)
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION 0.0.0 SOVERSION 0 OUTPUT_NAME ${PROJECT_NAME})
+
+# install
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/tel-headers/include/ DESTINATION include/tel-headers/include)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/tel-headers/tel_generated_code.h DESTINATION ${DBUS_GEN_CODE_PATH})
+INSTALL(TARGETS tel-headers LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tel-headers.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from include/common/tel_ss.h
rename to tel-headers/include/tel_ss.h
diff --git a/tel-headers/introspection/call.xml b/tel-headers/introspection/call.xml
new file mode 100644 (file)
index 0000000..5c2cbef
--- /dev/null
@@ -0,0 +1,287 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+  <interface name="org.tizen.telephony.Call">
+
+    <!-- Refer to TAPI API: tapi_call_dial -->
+    <method name="Dial">
+      <arg direction="in" type="i" name="call_type"/>
+      <arg direction="in" type="i" name="ecc"/>
+      <arg direction="in" type="s" name="number"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_answer -->
+    <method name="Answer">
+      <arg direction="in" type="i" name="answer_type"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_end-->
+    <method name="End">
+      <arg direction="in" type="u" name="call_id"/>
+      <arg direction="in" type="i" name="end_type"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_send_dtmf -->
+    <method name="SendDtmf">
+      <arg direction="in" type="s" name="dtmf_str"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_hold -->
+    <method name="Hold">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_active -->
+    <method name="Active">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_swap -->
+    <method name="Swap">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_join -->
+    <method name="Join">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_split -->
+    <method name="Split">
+      <arg direction="in" type="u" name="call_id"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_transfer -->
+    <method name="Transfer">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_deflect -->
+    <method name="Deflect">
+      <arg direction="in" type="s" name="deflect_to"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+     <!-- Refer to TAPI API: tapi_call_set_active_line -->
+    <method name="SetActiveLine">
+      <arg direction="in" type="i" name="active_line"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_get_active_line -->
+    <method name="GetActiveLine">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="i" name="active_line"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_get_status -->
+    <method name="GetStatus">
+      <arg direction="in" type="u" name="call_id"/>
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="call_id"/>
+      <arg direction="out" type="i" name="call_type"/>
+      <arg direction="out" type="i" name="call_state"/>
+      <arg direction="out" type="b" name="mo_call"/>
+      <arg direction="out" type="b" name="mpty"/>
+      <arg direction="out" type="i" name="cli_validity"/>
+      <arg direction="out" type="s" name="number"/>
+      <arg direction="out" type="i" name="cni_validity"/>
+      <arg direction="out" type="s" name="name"/>
+      <arg direction="out" type="b" name="forward"/>
+      <arg direction="out" type="i" name="active_line"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_get_status_all -->
+    <method name="GetStatusAll">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="count"/>
+      <arg direction="out" type="aa{sv}" name="status_list"/>
+    </method>
+
+    <!-- Refer to TAPI API: -->
+    <method name="SetVolumeInfo">
+      <arg direction="in" type="i" name="device"/>
+      <arg direction="in" type="u" name="volume"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_get_volume_info -->
+    <method name="GetVolumeInfo">
+      <arg direction="in" type="i" name="sound_device"/>
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="volume_info"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_set_sound_path -->
+    <method name="SetSoundPath">
+      <arg direction="in" type="i" name="path"/>
+      <arg direction="in" type="b" name="ex_volume"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_set_mute_status -->
+    <method name="SetMute">
+       <arg direction="in" type="b" name="mute"/>
+       <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_get_mute_status -->
+    <method name="GetMuteStatus">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="b" name="mute"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_set_sound_recording -->
+    <method name="SetSoundRecording">
+      <arg direction="in" type="i" name="sound_rec"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_call_set_sound_equalization -->
+    <method name="SetSoundEqualization">
+      <arg direction="in" type="i" name="mode"/>
+      <arg direction="in" type="i" name="direction"/>
+      <arg direction="in" type="aq" name="parameter"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TEL_NOTI_VOICE_CALL_STATUS_IDLE -->
+    <signal name="VoiceCallStatusIdle">
+      <arg type="u" name="call_id"/>
+      <arg type="i" name="cause"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VOICE_CALL_STATUS_ACTIVE -->
+    <signal name="VoiceCallStatusActive">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VOICE_CALL_STATUS_HELD -->
+    <signal name="VoiceCallStatusHeld">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VOICE_CALL_STATUS_DIALING -->
+    <signal name="VoiceCallStatusDialing">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VOICE_CALL_STATUS_ALERT -->
+    <signal name="VoiceCallStatusAlert">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VOICE_CALL_STATUS_INCOMING -->
+    <signal name="VoiceCallStatusIncoming">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VIDEO_CALL_STATUS_IDLE -->
+    <signal name="VideoCallStatusIdle">
+      <arg type="u" name="call_id"/>
+      <arg type="i" name="end_cause"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VIDEO_CALL_STATUS_ACTIVE -->
+    <signal name="VideoCallStatusActive">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VIDEO_CALL_STATUS_DIALING -->
+    <signal name="VideoCallStatusDialing">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VIDEO_CALL_STATUS_ALERT -->
+    <signal name="VideoCallStatusAlert">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_VIDEO_CALL_STATUS_INCOMING -->
+    <signal name="VideoCallStatusIncoming">
+      <arg type="u" name="call_id"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_WAITING -->
+    <signal name="MoWaiting">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_FORWARDED -->
+    <signal name="MoForwarded">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_BARRED_INCOMING -->
+    <signal name="MoBarredIncoming">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_BARRED_OUTGOING -->
+    <signal name="MoBarredOutgoing">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_FORWARD_UNCONDITIONAL -->
+    <signal name="MoForwardUnconditional">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_FORWARD_CONDITIONAL -->
+    <signal name="MoForwardConditional">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MO_DEFLECTED -->
+    <signal name="MoDeflected">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_TRANSFERED -->
+    <signal name="Transfered">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MT_FORWARDED -->
+    <signal name="MtForwarded">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_MT_DEFLECTED -->
+    <signal name="MtDeflected">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_HELD -->
+    <signal name="CallHeld">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_ACTIVE -->
+    <signal name="CallActive">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_INFO_JOINED -->
+    <signal name="CallJoined">
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_SOUND_RINGBACK_TONE -->
+    <signal name="CallSoundRingbackTone">
+      <arg type="i" name="status"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_SOUND_WBAMR -->
+    <signal name="CallSoundWbamr">
+      <arg type="i" name="status"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_SOUND_EQUALIZATION -->
+    <signal name="CallSoundEqualization">
+      <arg type="i" name="mode"/>
+      <arg type="i" name="direction"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_CALL_SOUND_CLOCK_STATUS -->
+    <signal name="CallSoundClockStatus">
+       <arg type="b" name="status"/>
+    </signal>
+
+    </interface>
+</node>
diff --git a/tel-headers/introspection/gen.sh b/tel-headers/introspection/gen.sh
new file mode 100755 (executable)
index 0000000..86fde51
--- /dev/null
@@ -0,0 +1,6 @@
+gdbus-codegen --interface-prefix org.tizen.telephony. \
+       --generate-c-code generated-code                        \
+       --c-namespace Telephony                       \
+       --c-generate-object-manager                 \
+       --generate-docbook generated-docs                       \
+       manager.xml network.xml sim.xml phonebook.xml sat.xml sap.xml gps.xml call.xml ss.xml modem.xml sms.xml
diff --git a/tel-headers/introspection/gps.xml b/tel-headers/introspection/gps.xml
new file mode 100644 (file)
index 0000000..54523e5
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+  <interface name="org.tizen.telephony.Gps">
+
+    <!-- Refer to TAPI API: tapi_gps_confirm_measure_pos() -->
+    <method name="ConfirmMeasurePos">
+      <arg direction="in" type="s" name="data"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_gps_set_frequency_aiding() -->
+    <method name="SetFrequencyAiding">
+      <arg direction="in" type="b" name="state"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TEL_NOTI_GPS_ASSIST_DATA event -->
+    <signal name="AssistData">
+      <arg type="s" name="data"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_GPS_MEASURE_POSITION event -->
+    <signal name="MeasurePosition">
+      <arg type="s" name="data"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_GPS_RESET_ASSIST_DATA event -->
+    <signal name="ResetAssistData">
+    </signal>
+
+  </interface>
+</node>
diff --git a/tel-headers/introspection/manager.xml b/tel-headers/introspection/manager.xml
new file mode 100644 (file)
index 0000000..867b994
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+
+    <!-- Refer to TAPI API: tel_get_cp_name_list() -->
+    <interface name="org.tizen.telephony.Manager">
+        <method name="GetModems">
+            <arg direction="out" type="as" name="modem_list"/>
+        </method>
+    </interface>
+
+</node>
diff --git a/tel-headers/introspection/modem.xml b/tel-headers/introspection/modem.xml
new file mode 100644 (file)
index 0000000..16acfe9
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+  <interface name="org.tizen.telephony.Modem">
+
+    <!-- Refer to TAPI API: tapi_modem_set_power_status() -->
+    <method name="SetPowerStatus">
+      <arg direction="in" type="i" name="status"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_modem_set_flight_mode() -->
+    <method name="SetFlightMode">
+      <arg direction="in" type="b" name="enable"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_modem_get_flight_mode() -->
+    <method name="GetFlightMode">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="b" name="enable"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_modem_get_version() -->
+      <method name="GetVersion">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="s" name="software_version"/>
+      <arg direction="out" type="s" name="hardware_version"/>
+      <arg direction="out" type="s" name="calibration_date"/>
+      <arg direction="out" type="s" name="product_code"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_modem_get_imei() -->
+    <method name="GetImei">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="s" name="imei"/>
+    </method>
+
+    <!-- Caches power status -->
+    <property name="status" type="i" access="read"/>
+
+    <!-- Caches flight mode status -->
+    <property name="flight_mode_status" type="i" access="read"/>
+
+    <!-- Caches IMEI value -->
+    <property name="imei" type="s" access="read"/>
+
+    <!--
+         Version information
+         @version: software_version, hardware_version, calibration_date, product_code
+    -->
+    <property name="version" type="a{sv}" access="read"/>
+
+  </interface>
+</node>
diff --git a/tel-headers/introspection/network.xml b/tel-headers/introspection/network.xml
new file mode 100644 (file)
index 0000000..edadd29
--- /dev/null
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+
+  <interface name="org.tizen.telephony.Network">
+
+    <!-- Refer to TAPI API: tapi_network_get_identity_info()-->
+    <method name="GetIdentityInfo">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="s" name="plmn"/>
+      <arg direction="out" type="s" name="short_name"/>
+      <arg direction="out" type="s" name="long_name"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_search()-->
+    <method name="Search">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="count"/>
+      <arg direction="out" type="aa{sv}" name="network_list"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_cancel_search()-->
+    <method name="CancelSearch">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_select_automatic() -->
+    <method name="SelectAutomatic">
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API:tapi_network_select_manual() -->
+    <method name="SelectManual">
+      <arg direction="in" type="s" name="plmn"/>
+      <arg direction="in" type="i" name="act"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_get_selection_mode() -->
+    <method name="GetSelectionMode">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="i" name="selection_mode"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_set_preferred_plmn() -->
+    <method name="SetPreferredPlmn">
+      <arg direction="in" type="u" name="index"/>
+      <arg direction="in" type="s" name="plmn"/>
+      <arg direction="in" type="i" name="act"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_get_preferred_plmn()-->
+    <method name="GetPreferredPlmn">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="count"/>
+      <arg direction="out" type="aa{sv}" name="list"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_set_mode()-->
+    <method name="SetMode">
+      <arg direction="in" type="i" name="mode"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_get_mode()-->
+    <method name="GetMode">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="i" name="mode"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_network_get_neighboring_cell_info()-->
+    <method name="GetNgbrCellInfo">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="gsm_list_count"/>
+      <arg direction="out" type="aa{sv}" name="gsm_list"/>
+      <arg direction="out" type="u" name="umts_list_count"/>
+      <arg direction="out" type="aa{sv}" name="umts_list"/>
+    </method>
+
+    <!-- Refer to TEL_NOTI_NETWORK_REGISTRATION_STATUS -->
+    <signal name="RegistrationStatus">
+      <arg type="i" name="cs_status"/>
+      <arg type="i" name="ps_status"/>
+      <arg type="i" name="act"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_NETWORK_CELL_INFO -->
+    <signal name="CellInfo">
+      <arg type="u" name="lac"/>
+      <arg type="u" name="cell_id"/>
+      <arg type="u" name="rac"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_NETWORK_IDENTITY -->
+    <signal name="Identity">
+      <arg type="s" name="plmn"/>
+      <arg type="s" name="short_name"/>
+      <arg type="s" name="long_name"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_NETWORK_RSSI -->
+    <signal name="Rssi">
+      <arg type="u" name="rssi"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_NETWORK_TIME_INFO -->
+    <signal name="TimeInfo">
+      <arg type="u" name="year"/>
+      <arg type="u" name="month"/>
+      <arg type="u" name="day"/>
+      <arg type="u" name="hour"/>
+      <arg type="u" name="minute"/>
+      <arg type="u" name="second"/>
+      <arg type="i" name="gmtoff"/>
+      <arg type="b" name="isdst"/>
+      <arg type="i" name="dstoff"/>
+      <arg type="s" name="plmn"/>
+    </signal>
+
+     <!-- Caches rssi -->
+    <property name="rssi" type="u" access="read"/>
+
+    <!-- Caches lac  -->
+    <property name="lac" type="u" access="read"/>
+
+    <!-- Caches cell_id  -->
+    <property name="cell_id" type="u" access="read"/>
+
+    <!-- Caches rac  -->
+    <property name="rac" type="u" access="read"/>
+
+    <!-- Caches act -->
+    <property name="act" type="i" access="read"/>
+
+    <!-- Caches circuit_status  -->
+    <property name="cs_status" type="i" access="read"/>
+
+    <!-- Caches packet_status  -->
+    <property name="ps_status" type="i" access="read"/>
+
+  </interface>
+
+</node>
diff --git a/tel-headers/introspection/phonebook.xml b/tel-headers/introspection/phonebook.xml
new file mode 100644 (file)
index 0000000..c3da7f1
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+
+    <interface name="org.tizen.telephony.Phonebook">
+        <!-- Refer to TAPI API: tapi_pb_get_sim_pb_init_info () -->
+        <method name="GetInitInfo">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="b" name="init_completed"/>
+            <arg direction="out" type="b" name="fdn"/>
+            <arg direction="out" type="b" name="adn"/>
+            <arg direction="out" type="b" name="sdn"/>
+            <arg direction="out" type="b" name="usim"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_pb_get_sim_pb_info() -->
+        <method name="GetInfo">
+            <arg direction="in" type="i" name="pb_type"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="pb_type"/>
+            <arg direction="out" type="a{sv}" name="info_u"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_pb_read_sim_pb_record() -->
+        <method name="ReadRecord">
+            <arg direction="in" type="i" name="pb_type"/>
+            <arg direction="in" type="u" name="index"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="index"/>
+            <arg direction="out" type="u" name="next_index"/>
+            <arg direction="out" type="i" name="pb_type"/>
+            <arg direction="out" type="a{sv}" name="rec_u"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_pb_update_sim_pb_record() -->
+        <method name="UpdateRecord">
+            <arg direction="in" type="i" name="pb_type"/>
+            <arg direction="in" type="u" name="index"/>
+            <arg direction="in" type="a{sv}" name="rec_u"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_pb_delete_sim_pb_record() -->
+        <method name="DeleteRecord">
+            <arg direction="in" type="i" name="pb_type"/>
+            <arg direction="in" type="u" name="index"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TEL_NOTI_PB_STATUS event -->
+        <signal name="Status">
+            <arg type="b" name="init_status"/>
+            <arg type="b" name="fdn"/>
+            <arg type="b" name="adn"/>
+            <arg type="b" name="sdn"/>
+            <arg type="b" name="usim"/>
+        </signal>
+
+    </interface>
+
+</node>
diff --git a/tel-headers/introspection/sap.xml b/tel-headers/introspection/sap.xml
new file mode 100644 (file)
index 0000000..36f0b01
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+
+       <interface name="org.tizen.telephony.Sap">
+
+               <!-- Refer to TAPI API: tapi_sap_req_connect() -->
+               <method name="ReqConnect">
+                       <arg direction="in" type="u" name="max_msg_size"/>
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="u" name="max_msg_size_resp"/>
+               </method>
+
+               <!-- Refer to TAPI API: tapi_sap_req_disconnect() -->
+               <method name="ReqDisconnect">
+                       <arg direction="out" type="i" name="result"/>
+               </method>
+
+               <!-- Refer to TAPI API: tapi_sap_get_atr() -->
+               <method name="GetAtr">
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="s" name="atr"/>
+               </method>
+
+               <!-- Refer to TAPI API: tapi_sap_req_transfer_apdu() -->
+               <method name="ReqTransferApdu">
+                       <arg direction="in" type="s" name="apdu"/>
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="s" name="apdu_resp"/>
+               </method>
+
+               <!-- Refer to TAPI API: tapi_sap_req_transport_protocol() -->
+               <method name="ReqTransportProtocol">
+                       <arg direction="in" type="i" name="protocol"/>
+                       <arg direction="out" type="i" name="result"/>
+               </method>
+
+               <!-- Refer to TAPI API: tapi_sap_req_power_operation() -->
+               <method name="ReqPowerOperation">
+                       <arg direction="in" type="i" name="power_mode"/>
+                       <arg direction="out" type="i" name="result"/>
+               </method>
+
+               <!-- Refer to TAPI API: tapi_sap_get_cardreader_status() -->
+               <method name="GetCardReaderStatus">
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="i" name="status"/>
+               </method>
+
+               <signal name="Status">
+                       <arg type="i" name="status"/>
+               </signal>
+
+       </interface>
+
+</node>
diff --git a/tel-headers/introspection/sat.xml b/tel-headers/introspection/sat.xml
new file mode 100644 (file)
index 0000000..85b5cff
--- /dev/null
@@ -0,0 +1,265 @@
+<node>
+       <!--
+               org.tizen.telephony.Sat:
+               @short_description: Tizen Telephony SIM Application Toolkit interface
+
+               SAT interface.
+
+       -->
+       <interface name="org.tizen.telephony.Sat">
+
+               <method name="GetMainMenuInfo">
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="i" name="command_id"/>
+                       <arg direction="out" type="b" name="menu_present"/>
+                       <arg direction="out" type="s" name="main_title"/>
+                       <arg direction="out" type="v" name="menu_item"/>
+                       <arg direction="out" type="i" name="menu_count"/>
+                       <arg direction="out" type="b" name="menu_help_info"/>
+                       <arg direction="out" type="b" name="menu_updated"/>
+               </method>
+
+               <method name="SendUiDisplayStatus">
+                       <arg direction="in" type="i" name="command_id"/>
+                       <arg direction="in" type="b" name="display_status"/>
+                       <arg direction="out" type="i" name="result"/>
+               </method>
+
+               <method name="SendUserConfirm">
+                       <arg direction="in" type="i" name="command_id"/>
+                       <arg direction="in" type="i" name="command_type"/>
+                       <arg direction="in" type="i" name="user_confirm_type"/>
+                       <arg direction="in" type="s" name="additional_data"/>
+                       <arg direction="out" type="i" name="result"/>
+               </method>
+
+               <method name="SelectMenu">
+                       <arg direction="in" type="i" name="item_identifier"/>
+                       <arg direction="in" type="b" name="help_request"/>
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="i" name="envelop_rsp"/>
+               </method>
+
+               <method name="DownloadEvent">
+                       <arg direction="in" type="i" name="event_download_type"/>
+                       <arg direction="in" type="i" name="src_device"/>
+                       <arg direction="in" type="i" name="dest_device"/>
+                       <arg direction="in" type="v" name="download_data"/>
+                       <arg direction="out" type="i" name="result"/>
+                       <arg direction="out" type="i" name="envelop_rsp"/>
+               </method>
+
+               <method name="SendAppExecResult">
+                       <arg direction="in" type="i" name="command_id"/>
+                       <arg direction="in" type="i" name="command_type"/>
+                       <arg direction="in" type="v" name="exec_result"/>
+                       <arg direction="out" type="i" name="result"/>
+               </method>
+
+               <signal name="SetupMenu">
+                       <arg type="i" name="command_id"/>
+                       <arg type="b" name="menu_present"/>
+                       <arg type="s" name="main_title"/>
+                       <arg type="v" name="menu_item"/>
+                       <arg type="i" name="menu_count"/>
+                       <arg type="b" name="menu_help_info"/>
+                       <arg type="b" name="menu_updated"/>
+               </signal>
+
+               <signal name="DisplayText">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="duration"/>
+                       <arg type="b" name="priority_high"/>
+                       <arg type="b" name="user_rsp_required"/>
+                       <arg type="b" name="immediately_rsp"/>
+               </signal>
+
+               <signal name="SelectItem">
+                       <arg type="i" name="command_id"/>
+                       <arg type="b" name="help_info"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="default_item_index"/>
+                       <arg type="i" name="menu_count"/>
+                       <arg type="v" name="menu_item"/>
+               </signal>
+
+               <signal name="GetInkey">
+                       <arg type="i" name="command_id"/>
+                       <arg type="i" name="key_type"/>
+                       <arg type="i" name="input_alphabet_type"/>
+                       <arg type="b" name="numeric"/>
+                       <arg type="b" name="help_info"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="duration"/>
+               </signal>
+
+               <signal name="GetInput">
+                       <arg type="i" name="command_id"/>
+                       <arg type="i" name="input_alphabet_type"/>
+                       <arg type="b" name="numeric"/>
+                       <arg type="b" name="help_info"/>
+                       <arg type="b" name="echo_input"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="response_len_max"/>
+                       <arg type="i" name="response_len_min"/>
+                       <arg type="s" name="default_text"/>
+                       <arg type="i" name="default_text_len"/>
+               </signal>
+
+               <signal name="PlayTone">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="tone_type"/>
+                       <arg type="i" name="duration"/>
+               </signal>
+
+               <signal name="SendSMS">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="b" name="packing_required"/>
+                       <arg type="i" name="ton"/>
+                       <arg type="i" name="npi"/>
+                       <arg type="s" name="dialling_number"/>
+                       <arg type="i" name="number_len"/>
+                       <arg type="i" name="tpdu_type"/>
+                       <arg type="v" name="tpdu_data"/>
+                       <arg type="i" name="tpdu_data_len"/>
+               </signal>
+
+               <signal name="SendSS">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="ton"/>
+                       <arg type="i" name="npi"/>
+                       <arg type="s" name="ss_string"/>
+               </signal>
+
+               <signal name="SetupUSSD">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="s" name="ussd_string"/>
+               </signal>
+
+               <signal name="SetupCall">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="confirm_text"/>
+                       <arg type="i" name="confirm_text_len"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="call_type"/>
+                       <arg type="s" name="call_number"/>
+                       <arg type="i" name="duration"/>
+               </signal>
+
+               <signal name="SetupEventList">
+                       <arg type="i" name="event_cnt"/>
+                       <arg type="v" name="evt_list"/>
+               </signal>
+
+               <signal name="SetupIdleModeText">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+               </signal>
+
+               <signal name="OpenChannel">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="b" name="immediate_link"/>
+                       <arg type="b" name="auto_reconnection"/>
+                       <arg type="b" name="bg_mode"/>
+                       <arg type="i" name="bearer_type"/>
+                       <arg type="v" name="bearer_param"/>
+                       <arg type="i" name="buffer_size"/>
+                       <arg type="i" name="protocol_type"/>
+                       <arg type="i" name="port_number"/>
+                       <arg type="i" name="data_dest_address_type"/>
+                       <arg type="s" name="data_dest_address"/>
+                       <arg type="v" name="bearer_detail"/>
+               </signal>
+
+               <signal name="CloseChannel">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="channel_id"/>
+               </signal>
+
+               <signal name="ReceiveData">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="channel_id"/>
+                       <arg type="i" name="data_len"/>
+               </signal>
+
+               <signal name="SendData">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="i" name="channel_id"/>
+                       <arg type="b" name="send_data_immediately"/>
+                       <arg type="v" name="channel_data"/>
+                       <arg type="i" name="channel_data_len"/>
+               </signal>
+
+               <signal name="GetChannelStatus">
+                       <arg type="i" name="command_id"/>
+               </signal>
+
+               <signal name="Refresh">
+                       <arg type="i" name="command_id"/>
+                       <arg type="i" name="refresh_type"/>
+                       <arg type="v" name="file_list"/>
+               </signal>
+
+               <signal name="MoreTime">
+               </signal>
+
+               <signal name="SendDtmf">
+                       <arg type="i" name="command_id"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+                       <arg type="s" name="dtmf_str"/>
+                       <arg type="i" name="dtmf_str_len"/>
+               </signal>
+
+               <signal name="LaunchBrowser">
+                       <arg type="i" name="command_id"/>
+                       <arg type="i" name="launch_type"/>
+                       <arg type="i" name="browser_id"/>
+                       <arg type="s" name="url"/>
+                       <arg type="i" name="url_len"/>
+                       <arg type="s" name="gateway_proxy"/>
+                       <arg type="i" name="gateway_proxy_len"/>
+                       <arg type="s" name="text"/>
+                       <arg type="i" name="text_len"/>
+               </signal>
+
+               <signal name="ProvideLocalInfo">
+                       <arg type="i" name="info_type"/>
+               </signal>
+
+               <signal name="LanguageNotification">
+                       <arg type="i" name="command_id"/>
+                       <arg type="i" name="language"/>
+                       <arg type="b" name="b_specified"/>
+               </signal>
+
+               <signal name="EndProactiveSession">
+                       <arg type="i" name="command_type"/>
+               </signal>
+
+       </interface>
+
+</node>
diff --git a/tel-headers/introspection/sim.xml b/tel-headers/introspection/sim.xml
new file mode 100644 (file)
index 0000000..6cfa0eb
--- /dev/null
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+
+    <interface name="org.tizen.telephony.Sim">
+        <!-- Refer to TAPI API: tapi_sim_get_imsi () -->
+        <method name="GetImsi">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="s" name="mcc"/>
+            <arg direction="out" type="s" name="mnc"/>
+            <arg direction="out" type="s" name="msin"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_ecc () -->
+        <method name="GetEcc">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="count"/>
+            <arg direction="out" type="aa{sv}" name="ecc_list"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_iccid () -->
+        <method name="GetIccid">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="s" name="iccid"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_language () -->
+        <method name="GetLanguage">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="language"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_set_language () -->
+        <method name="SetLanguage">
+            <arg direction="in" type="i" name="language"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_callforwarding_info () -->
+        <method name="GetCallForwardingInfo">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="profile_count"/>
+            <arg direction="out" type="aa{sv}" name="cf"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_messagewaiting_info () -->
+        <method name="GetMessageWaitingInfo">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="profile_count"/>
+            <arg direction="out" type="aa{sv}" name="mw"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_set_messagewaiting_info () -->
+        <method name="SetMessageWaitingInfo">
+            <arg direction="in" type="y" name="profile_id"/>
+            <arg direction="in" type="b" name="count_valid"/>
+            <arg direction="in" type="a(by)" name="msg_waiting"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_mailbox_info () -->
+        <method name="GetMailboxInfo">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="alpha_id_max_len"/>
+            <arg direction="out" type="u" name="count"/>
+            <arg direction="out" type="aa{sv}" name="list"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_set_mailbox_info () -->
+        <method name="SetMailboxInfo">
+            <arg direction="in" type="y" name="profile_id"/>
+            <arg direction="in" type="i" name="mb_type"/>
+            <arg direction="in" type="u" name="alpha_id_len"/>
+            <arg direction="in" type="s" name="alpha_id"/>
+            <arg direction="in" type="s" name="number"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_msisdn () -->
+        <method name="GetMsisdn">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="count"/>
+            <arg direction="out" type="aa{sv}" name="list"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_spn () -->
+        <method name="GetSpn">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="display_condition"/>
+            <arg direction="out" type="s" name="spn"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_cphs_netname () -->
+        <method name="GetCphsNetName">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="s" name="full_name"/>
+            <arg direction="out" type="s" name="short_name"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_sp_display_info() -->
+        <method name="GetSpDisplayInfo">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="count"/>
+            <arg direction="out" type="aa{sv}" name="list"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_req_authentication () -->
+        <method name="ReqAuthentication">
+            <arg direction="in" type="i" name="auth_type"/>
+            <arg direction="in" type="s" name="rand_data"/>
+            <arg direction="in" type="s" name="autn_data"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="auth_type"/>
+            <arg direction="out" type="s" name="resp_data"/>
+            <arg direction="out" type="s" name="authentication_key"/>
+            <arg direction="out" type="s" name="cipher_data"/>
+            <arg direction="out" type="s" name="integrity_data"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_verify_pins () -->
+        <method name="VerifyPins">
+            <arg direction="in" type="i" name="pin_type"/>
+            <arg direction="in" type="s" name="pw"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="pin_type"/>
+            <arg direction="out" type="u" name="retry_count"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_verify_puks () -->
+        <method name="VerifyPuks">
+            <arg direction="in" type="i" name="puk_type"/>
+            <arg direction="in" type="s" name="puk_pw"/>
+            <arg direction="in" type="s" name="new_pin_pw"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="puk_type"/>
+            <arg direction="out" type="u" name="retry_count"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_change_pins () -->
+        <method name="ChangePins">
+            <arg direction="in" type="i" name="pin_type"/>
+            <arg direction="in" type="s" name="old_pw"/>
+            <arg direction="in" type="s" name="new_pw"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="pin_type"/>
+            <arg direction="out" type="u" name="retry_count"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_disable_facility () -->
+        <method name="DisableFacility">
+            <arg direction="in" type="i" name="lock_type"/>
+            <arg direction="in" type="s" name="pw"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="type"/>
+            <arg direction="out" type="u" name="retry_count"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_enable_facility () -->
+        <method name="EnableFacility">
+            <arg direction="in" type="i" name="lock_type"/>
+            <arg direction="in" type="s" name="pw"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="type"/>
+            <arg direction="out" type="u" name="retry_count"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_facility () -->
+        <method name="GetFacility">
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="type"/>
+            <arg direction="out" type="i" name="f_status"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_get_lock_info () -->
+        <method name="GetLockInfo">
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="lock_type"/>
+            <arg direction="out" type="i" name="lock_status"/>
+            <arg direction="out" type="u" name="retry_count"/>
+        </method>
+
+        <!--Refer to TAPI API: tapi_sim_req_apdu () -->
+        <method name="ReqApdu">
+            <arg direction="in" type="s" name="apdu"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="s" name="apdu_resp"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_sim_req_atr () -->
+        <method name="ReqAtr">
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="s" name="atr"/>
+        </method>
+
+       <!-- card_status: SIM Card Status -->
+       <property name="card_status" type="a{sv}" access="read"/>
+
+        <!-- sim_type: Type of SIM -->
+        <property name="sim_type" type="i" access="read"/>
+
+        <!-- mcc: Mobile Country Code -->
+        <property name="mcc" type="s" access="read"/>
+
+        <!-- mnc: Mobile Network Code -->
+        <property name="mnc" type="s" access="read"/>
+
+        <!-- msin: Mobile Subscriber Identification Number -->
+        <property name="msin" type="s" access="read"/>
+
+    </interface>
+
+</node>
diff --git a/tel-headers/introspection/sms.xml b/tel-headers/introspection/sms.xml
new file mode 100644 (file)
index 0000000..6928181
--- /dev/null
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+  <interface name="org.tizen.telephony.Sms">
+
+    <!-- Refer to TAPI API: tapi_sms_send() -->
+    <method name="Send">
+      <arg direction="in" type="b" name="more_msgs"/>
+      <arg direction="in" type="a{sv}" name="sca"/>
+      <arg direction="in" type="s" name="tpdu"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_read_sms_in_sim() -->
+    <method name="ReadInSim">
+      <arg direction="in" type="u" name="index"/>
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="i" name="status"/>
+      <arg direction="out" type="a{sv}" name="sca"/>
+      <arg direction="out" type="s" name="tpdu"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_write_sms_in_sim() -->
+    <method name="WriteInSim">
+      <arg direction="in" type="i" name="status"/>
+      <arg direction="in" type="a{sv}" name="sca"/>
+      <arg direction="in" type="s" name="tpdu"/>
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="index"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_delete_sms_in_sim() -->
+    <method name="DeleteInSim">
+      <arg direction="in" type="u" name="index"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_get_count() -->
+    <method name="GetCount">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="total_count"/>
+      <arg direction="out" type="u" name="used_count"/>
+      <arg direction="out" type="au" name="index_list"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_set_cb_config() -->
+    <method name="SetCbConfig">
+      <arg direction="in" type="b" name="cb_enabled"/>
+      <arg direction="in" type="u" name="msg_id_range_cnt"/>
+      <arg direction="in" type="aa{sv}" name="msg_ids"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_get_cb_config() -->
+    <method name="GetCbConfig">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="b" name="cb_enabled"/>
+      <arg direction="out" type="u" name="msg_id_range_cnt"/>
+      <arg direction="out" type="aa{sv}" name="msg_ids"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_get_parameters() -->
+    <method name="GetParameters">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="u" name="count"/>
+      <arg direction="out" type="aa{sv}" name="params"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_set_parameters() -->
+    <method name="SetParameters">
+      <arg direction="in" type="u" name="index"/>
+      <arg direction="in" type="a{sv}" name="sca"/>
+      <arg direction="in" type="q" name="vp"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_send_deliver_report() -->
+    <method name="SendDeliverReport">
+      <arg direction="in" type="i" name="report"/>
+      <arg direction="in" type="a{sv}" name="sca"/>
+      <arg direction="in" type="s" name="tpdu"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_set_sca() -->
+    <method name="SetSca">
+      <arg direction="in" type="a{sv}" name="sca"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_get_sca() -->
+    <method name="GetSca">
+      <arg direction="out" type="i" name="result"/>
+      <arg direction="out" type="a{sv}" name="sca"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_set_memory_status() -->
+    <method name="SetMemoryStatus">
+      <arg direction="in" type="b" name="available"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TAPI API: tapi_sms_set_message_status() -->
+    <method name="SetMessageStatus">
+      <arg direction="in" type="u" name="index"/>
+      <arg direction="in" type="i" name="status"/>
+      <arg direction="out" type="i" name="result"/>
+    </method>
+
+    <!-- Refer to TEL_NOTI_SMS_INCOM_MSG event -->
+    <signal name="IncomingMsg">
+      <arg type="a{sv}" name="sca"/>
+      <arg type="s" name="tpdu"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_SMS_CB_INCOM_MSG event -->
+    <signal name="IncomingCbMsg">
+      <arg type="i" name="cb_type"/>
+      <arg type="s" name="cb_data"/>
+    </signal>
+
+    <!-- Refer to TEL_NOTI_SMS_ETWS_INCOM_MSG event -->
+    <signal name="IncomingEtwsMsg">
+      <arg type="i" name="etws_type"/>
+      <arg type="s" name="etws_data"/>
+    </signal>
+
+    <!-- Caches memory available status -->
+    <property name="SimMemoryStatus" type="b" access="read"/>
+
+    <!-- Caches service init status -->
+    <property name="InitStatus" type="b" access="read"/>
+
+  </interface>
+</node>
diff --git a/tel-headers/introspection/ss.xml b/tel-headers/introspection/ss.xml
new file mode 100644 (file)
index 0000000..6ece3e5
--- /dev/null
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE node PUBLIC
+  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
+
+<node>
+
+    <interface name="org.tizen.telephony.Ss">
+
+        <!-- Refer to TAPI API: tapi_ss_set_barring () -->
+        <method name="SetBarring">
+            <arg direction="in" type="i" name="class"/>
+            <arg direction="in" type="b" name="enable"/>
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="in" type="s" name="pwd"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_get_barring_status () -->
+        <method name="GetBarringStatus">
+            <arg direction="in" type="i" name="class"/>
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="u" name="record_num"/>
+            <arg direction="out" type="aa{sv}" name="records"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_change_barring_password () -->
+        <method name="ChangeBarringPassword">
+            <arg direction="in" type="s" name="old_pwd"/>
+            <arg direction="in" type="s" name="new_pwd"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_set_forwarding () -->
+        <method name="SetForwarding">
+            <arg direction="in" type="i" name="class"/>
+            <arg direction="in" type="i" name="mode"/>
+            <arg direction="in" type="i" name="condition"/>
+            <arg direction="in" type="s" name="number"/>
+            <arg direction="in" type="u" name="wait_time"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_get_forwarding_status () -->
+        <method name="GetForwardingStatus">
+           <arg direction="in" type="i" name="class"/>
+           <arg direction="in" type="i" name="condition"/>
+           <arg direction="out" type="i" name="result"/>
+           <arg direction="out" type="u" name="record_num"/>
+           <arg direction="out" type="aa{sv}" name="records"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_set_waiting () -->
+        <method name="SetWaiting">
+           <arg direction="in" type="i" name="class"/>
+           <arg direction="in" type="b" name="enable"/>
+           <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_get_waiting_status () -->
+        <method name="GetWaitingStatus">
+           <arg direction="in" type="i" name="class"/>
+           <arg direction="out" type="i" name="result"/>
+           <arg direction="out" type="u" name="record_num"/>
+           <arg direction="out" type="aa{sv}" name="records"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_set_cli () -->
+        <method name="SetCli">
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="in" type="i" name="status"/>
+            <arg direction="out" type="i" name="result"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_get_cli_status () -->
+        <method name="GetCliStatus">
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="type"/>
+            <arg direction="out" type="i" name="net_status"/>
+            <arg direction="out" type="i" name="dev_status"/>
+        </method>
+
+        <!-- Refer to TAPI API: tapi_ss_send_ussd_request () -->
+        <method name="SendUssdRequest">
+            <arg direction="in" type="i" name="type"/>
+            <arg direction="in" type="s" name="str"/>
+            <arg direction="out" type="i" name="result"/>
+            <arg direction="out" type="i" name="type"/>
+            <arg direction="out" type="i" name="status"/>
+            <arg direction="out" type="s" name="str"/>
+        </method>
+
+        <!-- Refer to TEL_NOTI_SS_USSD event -->
+        <signal name="NotifyUssd">
+            <arg type="i" name="status"/>
+            <arg type="s" name="str"/>
+        </signal>
+
+    </interface>
+
+</node>
diff --git a/tel-headers/tel-headers.pc.in b/tel-headers/tel-headers.pc.in
new file mode 100644 (file)
index 0000000..54be8bf
--- /dev/null
@@ -0,0 +1,12 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: tcore
+Description: Telephony headers
+Version: 1.0
+Requires: glib-2.0 gobject-2.0 gio-unix-2.0 gio-2.0
+Libs: -L${libdir} -ldl -ltel-headers
+Cflags: -I${includedir}/tel-headers/include -I${includedir}/tel-headers/introspection
+