Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 062f324

Browse files
author
Eduardo Fullea
committed
Merge pull request #48 from efullea/dict
Several bug fixes (dictionaries, etc). Closes #13, #27, #33 and #35
2 parents 59a3f9d + c4349f5 commit 062f324

File tree

1 file changed

+58
-32
lines changed

1 file changed

+58
-32
lines changed

index.html

Lines changed: 58 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h2><a>MessagingManager</a> Interface</h2>
143143
represents the initial entry point for getting access to the mobile messaging
144144
services, i.e. SMS and MMS.
145145

146-
<dl title="[NoInterfaceObject] interface MessagingManager" class="idl">
146+
<dl title="interface MessagingManager" class="idl">
147147

148148
<dt>readonly attribute SmsManager sms</dt> <dd>Provides access to the
149149
SMS service's specific functionality.</dd>
@@ -436,7 +436,7 @@ <h2><a>SmsManager</a> Interface</h2>
436436
<p>The <a>SmsManager</a> interface represents the SMS messaging service
437437
manager.
438438

439-
<dl title="[NoInterfaceObject] interface SmsManager : EventTarget"
439+
<dl title="interface SmsManager : EventTarget"
440440
class="idl">
441441

442442
<dt>readonly attribute MessageType type</dt> <dd>MUST return the type of the
@@ -447,7 +447,7 @@ <h2><a>SmsManager</a> Interface</h2>
447447
identifier of the different services for this type of messaging service
448448
(e.g. 'sms_sim1').</dd>
449449

450-
<dt> SmsSegmentInfo getSegmentInfoForText ()</dt>
450+
<dt> SmsSegmentInfo segmentInfo ()</dt>
451451
<dd>This method returns an <code>SmsSegmentInfo</code> object including
452452
information on the number of concatenated SMS segments needed to send the
453453
text in the <code>text</code> parameter, the number of characters available
@@ -608,7 +608,7 @@ <h3>Steps</h3>
608608
</ol>
609609
</ol>
610610

611-
<p> The <dfn><code>getSegmentInfoForText</code></dfn> method when invoked MUST
611+
<p> The <dfn><code>segmentInfo</code></dfn> method when invoked MUST
612612
return a <code>SmsSegmentInfo</code> object that contains the following
613613
elements:
614614
<ol>
@@ -793,23 +793,23 @@ <h2>Event handlers</h2>
793793

794794
<!------------------------ Interface SmsSegmentInfo -------------------------->
795795
<section>
796-
<h2><a>SmsSegmentInfo</a> Interface</h2>
797-
<p>The <a>SmsSegmentInfo</a> interface contains information about the
796+
<h2><a>SmsSegmentInfo</a> Dictionary</h2>
797+
<p>The <a>SmsSegmentInfo</a> dictionary contains information about the
798798
segmentation of a given text to be sent as SMS.
799-
<dl title="[NoInterfaceObject] interface SmsSegmentInfo"
799+
<dl title="dictionary SmsSegmentInfo"
800800
class="idl">
801-
<dt>readonly attribute long segments</dt>
801+
<dt>long segments</dt>
802802
<dd>MUST return the total number of SMS segments needed to send the input
803803
string, taking into account the encoding to be used to send such message as
804804
well as the overhead associated to concatenated SMS messages.</dd>
805805

806-
<dt>readonly attribute long charsPerSegment</dt>
806+
<dt>long charsPerSegment</dt>
807807
<dd>MUST return the number of characters available per SMS segment as per
808808
the encoding to be used to send the SMS message. In case the variable length
809809
encoding, the value of this element MUST be calculated asumming the minimum
810810
length for all the characters.</dd>
811811

812-
<dt>readonly attribute long charsAvailableInLastSegment</dt>
812+
<dt>long charsAvailableInLastSegment</dt>
813813
<dd>MUST return the maximum number of available characters in the last
814814
segment needed to send the input string. In case the variable length
815815
encoding, the value of this element MUST be calculated asumming the minimum
@@ -825,7 +825,7 @@ <h2><a>MmsManager</a> Interface</h2>
825825
<p>The <a>MmsManager</a> interface represents the MMS messaging service
826826
manager.
827827

828-
<dl title="[NoInterfaceObject] interface MmsManager : EventTarget"
828+
<dl title="interface MmsManager : EventTarget"
829829
class="idl">
830830

831831
<dt>readonly attribute MessageType type</dt> <dd>MUST return the type of the
@@ -1308,7 +1308,7 @@ <h2><a>SmsMessage</a> Interface</h2>
13081308
<p>The <a>SmsMessage</a> interface represents an SMS message as defined in
13091309
[[!GSM-SMS]]. This interface is not intended to represent binary SMS, which
13101310
are out of the scope of this API.
1311-
<dl title="[NoInterfaceObject] interface SmsMessage"
1311+
<dl title="interface SmsMessage"
13121312
class="idl">
13131313
<dt>readonly attribute DOMString messageID</dt>
13141314
<dd>MUST return the identifier of the message.</dd>
@@ -1348,11 +1348,9 @@ <h2><a>SmsMessage</a> Interface</h2>
13481348
<dd>MUST return the delivery status of the SMS message.
13491349
</dd>
13501350

1351-
<dt>readonly attribute DOMString messageClass</dt>
1352-
<dd>MUST return the SMS message class, with possible values: 'class-0',
1353-
'class-1', 'class-2', 'class-3' or 'normal' (same as 'class-1'), according
1354-
to the value indicated in the TP-Data-Coding-Scheme (TP-DCS) field of the
1355-
SMS.</dd>
1351+
<dt>readonly attribute MessageClass messageClass</dt>
1352+
<dd>MUST return the SMS message class, according to the value indicated in
1353+
the TP-Data-Coding-Scheme (TP-DCS) field of the SMS.</dd>
13561354

13571355
</dl>
13581356
</section>
@@ -1362,7 +1360,7 @@ <h2><a>SmsMessage</a> Interface</h2>
13621360
<h2><a>MmsMessage</a> Interface</h2>
13631361
<p>The <a>MmsMessage</a> interface represents an MMS message, as defined in
13641362
[[!MMS13]].
1365-
<dl title="[NoInterfaceObject] interface MmsMessage"
1363+
<dl title="interface MmsMessage"
13661364
class="idl">
13671365
<dt>readonly attribute DOMString messageID</dt>
13681366
<dd>MUST return the identifier of the message.</dd>
@@ -1425,33 +1423,33 @@ <h2><a>MmsMessage</a> Interface</h2>
14251423
<section>
14261424
<h2><a>MmsContent</a> Dictionary</h2>
14271425
<dl title="dictionary MmsContent" class="idl">
1428-
<dt>optional attribute DOMString subject</dt>
1426+
<dt>DOMString subject</dt>
14291427
<dd>Indicates the subject of the MMS message, corresponding to the
14301428
'Subject' field of the MMS message.</dd>
14311429

1432-
<dt>optional DOMString[] to</dt>
1430+
<dt>DOMString[] to</dt>
14331431
<dd>Indicates the recipient(s) included in the 'To' field of the MMS
14341432
message.
14351433
There MUST be at least one recipient in any of the <code>to</code>,
14361434
<code>cc</code> or <code>bcc</code> attributes.</dd>
14371435

1438-
<dt>optional DOMString[] cc</dt>
1436+
<dt>DOMString[] cc</dt>
14391437
<dd>Indicates the recipient(s) included in the 'Cc' field of the MMS
14401438
message.
14411439
There MUST be at least one recipient in any of the <code>to</code>,
14421440
<code>cc</code> or <code>bcc</code> attributes.</dd>
14431441

1444-
<dt>optional DOMString[] bcc</dt>
1442+
<dt>DOMString[] bcc</dt>
14451443
<dd>Indicates the recipient(s) included in the 'Bcc' field of the MMS
14461444
message.
14471445
There MUST be at least one recipient in any of the <code>to</code>,
14481446
<code>cc</code> or <code>bcc</code> attributes.</dd>
14491447

1450-
<dt>optional DOMString smil</dt>
1448+
<dt>DOMString smil</dt>
14511449
<dd>Contains the SMIL component, i.e. the presentation element that
14521450
determines the way the content of the MMS message MUST be displayed.</dd>
14531451

1454-
<dt>optional MmsAttachment[] attachments</dt>
1452+
<dt>MmsAttachment[] attachments</dt>
14551453
<dd>Contains the set of attachments of the MMS message.</dd>
14561454
</dl>
14571455
</section>
@@ -1461,14 +1459,14 @@ <h2><a>MmsContent</a> Dictionary</h2>
14611459
<section>
14621460
<h2><a>MmsAttachment</a> Dictionary</h2>
14631461
<dl title="dictionary MmsAttachment" class="idl">
1464-
<dt>optional DOMString contentID</dt>
1462+
<dt>DOMString contentID</dt>
14651463
<dd>
14661464
The Content-ID parameter that MAY be used to refer to the attachment from
14671465
the SMIL presentation object as described in [[!MMS13]] and [[!MIME-ENC]].
14681466
At least one of contentID and contentLocation MUST be specified if the
14691467
MMS Message contains an SMIL presentation object.
14701468
</dd>
1471-
<dt>optional DOMString contentLocation</dt>
1469+
<dt>DOMString contentLocation</dt>
14721470
<dd>
14731471
The Content-Location parameter that MAY be used to refer to the attachment
14741472
from the SMIL presentation object as described in [[!MMS13]] and
@@ -1491,7 +1489,7 @@ <h2><a>Conversation</a> Interface</h2>
14911489
<p>The <a>Conversation</a> interface represents a set of messages that are
14921490
grouped together either because they are exchanged among the same set of
14931491
participants or because they have the same subject.
1494-
<dl title="[NoInterfaceObject] interface Conversation"
1492+
<dl title="interface Conversation"
14951493
class="idl">
14961494
<dt>readonly attribute DOMString conversationID</dt>
14971495
<dd>MUST return the identifier of the conversation, which is globally unique
@@ -1551,7 +1549,7 @@ <h2><a>MessagingCursor</a> Interface</h2>
15511549
retrieved, the <a>associated request</a>'s <code>readyState</code> must be set
15521550
to 'done' and the <code>result</code> must point to the cursor. If no element
15531551
was found, the cursor's <code>element</code> property must return null.</p>
1554-
<dl title="[NoInterfaceObject] interface MessagingCursor"
1552+
<dl title="interface MessagingCursor"
15551553
class="idl">
15561554
<dt>readonly attribute any? element</dt>
15571555
<dd>
@@ -1636,7 +1634,7 @@ <h2><a>DeliveryReport</a> Interface</h2>
16361634
<h2><a>MessagingEvent</a> Interface</h2>
16371635
<p>The <a>MessagingEvent</a> interface represents events related to a message
16381636
sent or received.
1639-
<dl title="[NoInterfaceObject] interface MessagingEvent : ProgressEvent"
1637+
<dl title="interface MessagingEvent : ProgressEvent"
16401638
class="idl">
16411639
<dt>readonly attribute (SmsMessage or MmsMessage) message</dt>
16421640
<dd>MUST return the <code>SmsMessage</code> or <code>MmsMessage</code>
@@ -1650,7 +1648,7 @@ <h2><a>MessagingEvent</a> Interface</h2>
16501648
<h2><a>DeliveryReportEvent</a> Interface</h2>
16511649
<p>The <a>DeliveryReportEvent</a> interface represents events related
16521650
to a delivery report of a sent message.
1653-
<dl title="[NoInterfaceObject] interface DeliveryReportEvent : Event"
1651+
<dl title="interface DeliveryReportEvent : Event"
16541652
class="idl">
16551653
<dt>readonly attribute DOMString serviceID</dt>
16561654
<dd>MUST return the identifier of the service used to send the message to
@@ -1676,7 +1674,7 @@ <h2><a>DeliveryReportEvent</a> Interface</h2>
16761674
<h2><a>ServiceChangeEvent</a> Interface</h2>
16771675
<p>The <a>ServiceChangeEvent</a> interface represents events related to
16781676
messaging services enabled or disabled.
1679-
<dl title="[NoInterfaceObject] interface ServiceChangeEvent : Event"
1677+
<dl title="interface ServiceChangeEvent : Event"
16801678
class="idl">
16811679
<dt>readonly attribute DOMString serviceID</dt>
16821680
<dd>MUST return the identifier of the messaging service which is enabled or
@@ -1738,7 +1736,7 @@ <h2><a>FilterOptions</a> Dictionary</h2>
17381736
<dt>DOMString sortBy</dt>
17391737
<dd>Indicates the attribute on which the filtered messages are sorted.</dd>
17401738
1741-
<dt>optional DOMString sortOrder</dt>
1739+
<dt>DOMString sortOrder</dt>
17421740
<dd>Indicates the order on which the filtered messages are sorted with
17431741
possible values 'ascending' and 'descending'.</dd>
17441742
@@ -1838,6 +1836,34 @@ <h2>Enumerations</h2>
18381836
</dd>
18391837
</dl>
18401838

1839+
<p>The attibute <code>messageClass</code> in an <code>SmsMessage</code> can have
1840+
the following values:
1841+
<dl class="idl" title="enum MessageClass">
1842+
<dt>class-0</dt>
1843+
<dd>
1844+
The message is of class 0.
1845+
</dd>
1846+
1847+
<dt>class-1</dt>
1848+
<dd>
1849+
The message is of class 1.
1850+
</dd>
1851+
1852+
<dt>class-2</dt>
1853+
<dd>
1854+
The message is of class 2.
1855+
</dd>
1856+
1857+
<dt>class-3</dt>
1858+
<dd>
1859+
The message is of class 3.
1860+
</dd>
1861+
1862+
<dt>normal</dt>
1863+
<dd>
1864+
The message is of class 1 (same as 'class-1').
1865+
</dd>
1866+
</dl>
18411867
<p>The attibute <code>state</code> in an <code>SmsMessage</code> can have
18421868
the following values:
18431869
<dl class="idl" title="enum SmsState">

0 commit comments

Comments
 (0)