Location:
gsmustor.h
Link against: gsmu.lib
class TSAREntry;
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.
Defined in TSAREntry
:
Count()
, Data3()
, DataStreamId()
, Description1()
, Description2()
, ESmsSAREntryDescriptionLength
, ExternalizeL()
, InternalizeL()
, IsComplete()
, LogServerId()
, Reference()
, SetCount()
, SetData3()
, SetDataStreamId()
, SetDescription1()
, SetDescription2()
, SetLogServerId()
, SetReference()
, SetTime()
, SetTotal()
, TSAREntry()
, Time()
, Total()
, anonymous
, iData1
, iData2
, iData3
, iData4
inline TInt Reference() const;
Gets the Reference field.
|
inline void SetReference(TInt aReference);
Sets the Reference field.
|
inline TInt Total() const;
Gets the Total field.
|
inline void SetTotal(TInt aTotal);
Sets the total number of PDUs in SMS message
|
inline TInt Count() const;
Gets the Count field.
|
inline void SetCount(TInt aCount);
Sets the Count field.
|
inline TBool IsComplete() const;
Tests if the whole message is sent/received.
|
inline TInt LogServerId() const;
Gets the Log server ID field.
|
inline void SetLogServerId(TInt aId);
Sets the Log server ID field.
|
inline TPtrC Description1() const;
Gets the Description1 field: a pointer to the first 32 characters from buffer.
|
inline void SetDescription1(const TDesC &aDescription);
Sets the Description1 field: the first 32 characters in buffer.
|
inline TPtrC Description2() const;
Gets the Description2 field: a pointer to the original address.
|
inline void SetDescription2(const TDesC &aDescription);
Sets the Description2 field: the original address.
|
inline void SetData3(TInt aData);
Sets the Data3 field.
|
inline const TTime &Time() const;
Gets the Time
field: the time when this message was sent/received.
|
inline void SetTime(const TTime &aTime);
Sets the Time
field: the time when this message was sent/received.
|
inline TStreamId DataStreamId() const;
Gets the data stream ID.
|
inline void SetDataStreamId(TStreamId aStreamId);
Sets the data stream ID.
|
Capability: | Illegal |
IMPORT_C void InternalizeL(RReadStream &aStream);
Internalises the object.
|
Capability: | Illegal |
IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Externalises the object.
|
protected: TInt iData4;