#include <gsmustor.h>
| class TSAREntry | 
| Protected Attributes | |
|---|---|
| TInt | iData1 | 
| TInt | iData2 | 
| TInt | iData3 | 
| TInt | iData4 | 
| Public Member Enumerations | |
|---|---|
| enum | anonymous { ESmsSAREntryDescriptionLength } | 
| Public Member Functions | |
|---|---|
| TSAREntry() | |
| TInt | Count() | 
| TInt | Data3() | 
| TStreamId | DataStreamId() | 
| TPtrC | Description1() | 
| TPtrC | Description2() | 
| IMPORT_C void | ExternalizeL(RWriteStream &) | 
| IMPORT_C void | InternalizeL(RReadStream &) | 
| TBool | IsComplete() | 
| TInt | LogServerId() | 
| TInt | Reference() | 
| void | SetCount(TInt) | 
| void | SetData3(TInt) | 
| void | SetDataStreamId(TStreamId) | 
| void | SetDescription1(const TDesC &) | 
| void | SetDescription2(const TDesC &) | 
| void | SetLogServerId(TInt) | 
| void | SetReference(TInt) | 
| void | SetTime(const TTime &) | 
| void | SetTotal(TInt) | 
| const TTime & | Time() | 
| TInt | Total() | 
Provides generic information useful for the segmentation and reassembly of SMS messages and reassembly of WAP datagrams.
The constituent parts of both concatenated SMS messages and concatenated 7-bit WAP datagrams contain a reference, the total number of parts and the index of the part in the complete message or datagram.
Field for the segmentation store are:
Reference - concatenation reference Total - total number of PDUs in SMS message Count - number of PDUs sent Data1 - total PDUs delivered<<16 and failed Data2 - log server id Data3 - validity period Data4 - type and min and max message reference Description1 - first 32 characters from buffer Description2 - original address Time - time on SMS message
Abstracts an entry which is stored in the CSARStore
The data stored in Data1-4 has a different meaning depending on if it is used by the Reassembly store or the Segmentation store. The lists below detail the uses:
Reassembly store:
Data1: byte 3: bits7to4; byte 1: identifier1; byte 0: identifier2.
Data2: Log server ID.
Data3: byte 0: PDU type.
Data4: SMS message storage .
Segmentation store:
Data1: bytes 3, 2: N delivered; byte 1,0 N failed.
Data2: Log server ID.
Data3: SMS submit validity period.
Data4: byte 3,2 message PDU type; byte 1: reference1; byte 0: reference2.
WAP reassembly store:
Data1: to port.
Data2: not used .
Data3: not used.
Data4: not used.
The data stored in Data1-4 has a different meaning depending on if it is used by the Reassembly store or the Segmentation store. The tables below detail the uses:
Reassembly Store:
----------------------------------------------------------------- | member | 3 | 2 | 1 | 0 | ----------------------------------------------------------------- | iData1 | bits7to4 | identifier1 | identifier2 | | iData2 | Log server ID | | iData3 | | PDU type | | iData4 | SMS message storage | -----------------------------------------------------------------
Segmentation Store:
----------------------------------------------------------------- | member | 3 | 2 | 1 | 0 | ----------------------------------------------------------------- | iData1 | N delivered | N failed | | iData2 | Log server ID | | iData3 | SMS submit validity period | | iData4 | message PDU type | reference1 | reference2 | -----------------------------------------------------------------
WAP Reassembly Store:
----------------------------------------------------------------- | member | 3 | 2 | 1 | 0 | ----------------------------------------------------------------- | iData1 | to port | | iData2 | not used | | iData3 | not used | | iData4 | not used | -----------------------------------------------------------------
| TPtrC | Description1 | ( | ) | const [inline] | 
Gets the Description1 field: a pointer to the first 32 characters from buffer.
Returns: Description1 field
| TPtrC | Description2 | ( | ) | const [inline] | 
Gets the Description2 field: a pointer to the original address.
Returns: Description2 field
| IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const | 
Externalises the object.
| Parameter | Description | 
|---|---|
| aStream | Stream to write to | 
| IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | 
Internalises the object.
| Parameter | Description | 
|---|---|
| aStream | Stream to read from | 
| TBool | IsComplete | ( | ) | const [inline] | 
Tests if the whole message is sent/received.
Returns: True if the whole message is sent/received
| void | SetCount | ( | TInt | aCount | ) | [inline] | 
Sets the Count field.
| Parameter | Description | 
|---|---|
| aCount | The number of PDUs sent/received | 
| void | SetDataStreamId | ( | TStreamId | aStreamId | ) | [inline] | 
Sets the data stream ID.
| Parameter | Description | 
|---|---|
| aStreamId | Data stream ID | 
| void | SetDescription1 | ( | const TDesC & | aDescription | ) | [inline] | 
Sets the Description1 field: the first 32 characters in buffer.
| Parameter | Description | 
|---|---|
| aDescription | Description1 field | 
| void | SetDescription2 | ( | const TDesC & | aDescription | ) | [inline] | 
Sets the Description2 field: the original address.
| Parameter | Description | 
|---|---|
| aDescription | Description2 field | 
| void | SetLogServerId | ( | TInt | aId | ) | [inline] | 
Sets the Log server ID field.
| Parameter | Description | 
|---|---|
| aId | Log server ID field | 
| void | SetReference | ( | TInt | aReference | ) | [inline] | 
Sets the Reference field.
| Parameter | Description | 
|---|---|
| aReference | The concatenation reference | 
| void | SetTotal | ( | TInt | aTotal | ) | [inline] | 
Sets the total number of PDUs in SMS message
| Parameter | Description | 
|---|---|
| aTotal | The total number of PDUs in the message |