summaryrefslogtreecommitdiffstats
path: root/doc/sms-api.txt
blob: baa4aa13d88953fc94d4b0f7133c1b2d9e397a9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SmsManager hierarchy
===============

Service		org.ofono
Interface	org.ofono.SmsManager
Object path	[variable prefix]/{modem0,modem1,...}

Methods		dict GetProperties()

			Returns properties for the modem object. See
			the properties section for available properties.

			Possible Errors: [service].Error.InvalidArguments

		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.DoesNotExist

		void SendMessage(string to, string text)

			Send the message in text to the number in to.

Signals		PropertyChanged(string name, variant value)

			This signal indicates a changed value of the given
			property.

		ImmediateMessage(string message, dict info)

			New immediate (class 0) SMS received. Info has Sender,
			LocalSentTime, and SentTime information.  Sender
			address is given in string format.  LocalSentTime and
			SentTime are given in string form using ISO8601 format.

		IncomingMessage(string message, dict info)

			New incoming text SMS received. Info has Sender,
			LocalSentTime, and SentTime information.

Properties	string ServiceCenterAddress

			Contains the number of the SMS service center.