class TSmsValidityPeriod |
TP-VP Validity Period Found in SUBMIT PDUs.
The validy period format is encoded in the first octet of the PDU, so the class takes a reference to a TSmsFirstOctet. The validty period specifies the length of time the PDU lives in the service center if the PDU cannot be immediately delivered.
Public Member Functions | |
---|---|
TSmsValidityPeriod(TSmsFirstOctet &) | |
void | DecodeL(TGsmuLex8 &) |
TUint8 * | EncodeL(TUint8 *) |
TUint8 * | EncodeL(TUint8 *, const TEncodeParams *) |
void | ExternalizeL(RWriteStream &) |
void | InternalizeL(RReadStream &) |
void | SetTimeIntervalMinutes(const TTimeIntervalMinutes &) |
void | SetValidityPeriodFormat(TSmsFirstOctet::TSmsValidityPeriodFormat) |
TTime | Time() |
const TTimeIntervalMinutes & | TimeIntervalMinutes() |
TSmsFirstOctet::TSmsValidityPeriodFormat | ValidityPeriodFormat() |
Public Member Enumerations | |
---|---|
enum | TValidityPeriodLimit { EFiveMinuteUnitLimit = 143, EHalfHourUnitLimit = 167, EOneDayUnitLimit = 196, EOneWeekUnitLimit = 255 } |
enum | TValidityPeriodUnitInMinutes { EFiveMinuteUnitInMinutes = 5, EHalfHourUnitInMinutes = 30, EOneDayUnitInMinutes = 1440, EOneWeekUnitInMinutes = 7*EOneDayUnitInMinutes } |
enum | TValidityPeriodUnitLimitInMinutes { EFiveMinuteUnitLimitInMinutes = 24*EHalfHourUnitInMinutes, EHalfHourUnitLimitInMinutes = EOneDayUnitInMinutes, EOneDayUnitLimitInMinutes = 30*EOneDayUnitInMinutes, EOneWeekUnitLimitInMinutes = 63*EOneWeekUnitInMinutes } |
Private Attributes | |
---|---|
TSmsFirstOctet & | iFirstOctet |
TTimeIntervalMinutes | iTimeIntervalMinutes |
TSmsValidityPeriod | ( | TSmsFirstOctet & | aFirstOctet | ) |
TSmsFirstOctet & aFirstOctet |
TUint8 * | EncodeL | ( | TUint8 * | aPtr, |
const TEncodeParams * | aEncodeParams | |||
) | const |
TUint8 * aPtr | |
const TEncodeParams * aEncodeParams |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
void | SetTimeIntervalMinutes | ( | const TTimeIntervalMinutes & | aTimeIntervalMinutes | ) | [inline] |
Sets the message Validity Period in minutes.
const TTimeIntervalMinutes & aTimeIntervalMinutes | The message Validity Period in minutes |
void | SetValidityPeriodFormat | ( | TSmsFirstOctet::TSmsValidityPeriodFormat | aValidityPeriodFormat | ) | [inline] |
Sets the message Validity Period Format.
TSmsFirstOctet::TSmsValidityPeriodFormat aValidityPeriodFormat | The message Validity Period Format |
const TTimeIntervalMinutes & | TimeIntervalMinutes | ( | ) | const [inline] |
Gets the message Validity Period in minutes.
The message Validity Period in minutes
TSmsFirstOctet::TSmsValidityPeriodFormat | ValidityPeriodFormat | ( | ) | const [inline] |
Gets the message Validity Period Format.
The message Validity Period Format
Limits for validity period units.
EFiveMinuteUnitLimit = 143 |
Limit for 5 minute validity period unit. |
EHalfHourUnitLimit = 167 |
Limit for 30 minute validity period unit. |
EOneDayUnitLimit = 196 |
Limit for 1 day validity period unit. |
EOneWeekUnitLimit = 255 |
Limit for 1 week validity period unit. |
Validity period units (in minutes).
EFiveMinuteUnitInMinutes = 5 |
Five minutes. |
EHalfHourUnitInMinutes = 30 |
30 minutes. |
EOneDayUnitInMinutes = 1440 |
1 day. |
EOneWeekUnitInMinutes = 7*EOneDayUnitInMinutes |
1 week. |
Limits for validity period units (in minutes).
EFiveMinuteUnitLimitInMinutes = 24*EHalfHourUnitInMinutes |
Limit for 5 minute validity period unit. |
EHalfHourUnitLimitInMinutes = EOneDayUnitInMinutes |
Limit for 30 minute validity period unit. |
EOneDayUnitLimitInMinutes = 30*EOneDayUnitInMinutes |
Limit for 1 day validity period unit. |
EOneWeekUnitLimitInMinutes = 63*EOneWeekUnitInMinutes |
Limit for 1 week validity period unit. |