ctm: add documentation for TextTelephony interface
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 25 Nov 2010 17:41:58 +0000 (15:41 -0200)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 26 Nov 2010 19:08:48 +0000 (13:08 -0600)
Makefile.am
doc/text-telephony-api.txt [new file with mode: 0644]

index 93db7ea..77965d4 100644 (file)
@@ -356,7 +356,7 @@ doc_files = doc/overview.txt doc/ofono-paper.txt \
                        doc/message-api.txt doc/message-waiting-api.txt \
                        doc/phonebook-api.txt doc/radio-settings-api.txt \
                        doc/sim-api.txt doc/stk-api.txt \
-                       doc/audio-settings-api.txt
+                       doc/audio-settings-api.txt doc/text-telephony-api.txt
 
 
 test_scripts = test/backtrace \
diff --git a/doc/text-telephony-api.txt b/doc/text-telephony-api.txt
new file mode 100644 (file)
index 0000000..3fa7942
--- /dev/null
@@ -0,0 +1,39 @@
+Text Telephony hierarchy
+========================
+
+Service                org.ofono
+Interface      org.ofono.TextTelephony
+Object path    [variable prefix]/{modem0,modem1,...}
+
+Methods                dict GetProperties()
+
+                       Returns all Text Telephony properties. See the
+                       properties section for available properties.
+
+                       Possible Errors: [service].Error.InProgress
+                                        [service].Error.Failed
+
+               void SetProperty(string name, variant value)
+
+                       Changes the value of the specified property. Only
+                       properties that are listed as read-write are
+                       changeable. On success a PropertyChanged signal
+                       will be emitted.
+
+                       Possible Errors: [service].Error.InvalidArguments
+                                        [service].Error.InProgress
+                                        [service].Error.Failed
+
+Signals                PropertyChanged(string property, variant value)
+
+                       This signal indicates a changed value of the given
+                       property.
+
+Properties     boolean Powered [readwrite]
+
+                       This property will enable or disable the text
+                       telephony feature in the modem.
+
+                       Text telephony (TTY), also known as Cellular Text Modem
+                       (CTM), is a feature present in some modems that allow
+                       them to be used by hearing impaired people.