class TMsvSmsEntry : public TMsvEntry |
A specialisation of the message server index class for SMS message entries.
It provides accessers for SMS message specific data, for instance the class type of the SMS message.
Public Member Functions | |
---|---|
TMsvSmsEntry() | |
TMsvSmsEntry(const TMsvEntry &) | |
IMPORT_C TMsvSmsEntryAckSummary | AckSummary(TSmsAckType) |
TBool | Class(TSmsDataCodingScheme::TSmsClass &) |
IMPORT_C TBool | MessageId(TInt32 &) |
TUint8 | ProtocolIdentifier() |
IMPORT_C void | SetAckSummary(TSmsAckType, TMsvSmsEntryAckSummary) |
void | SetClass(TBool, TSmsDataCodingScheme::TSmsClass) |
IMPORT_C void | SetMessageId(TInt32, TBool) |
void | SetProtocolIdentifier(TSmsProtocolIdentifier) |
void | SetProtocolIdentifier(TUint8) |
void | SetUserPromptIndicator(TBool) |
TBool | UserPromptIndicator() |
Public Member Enumerations | |
---|---|
enum | TMsvSmsEntryAckSummary { ENoAckSummary = 0, EPendingAcks, EAllSuccessful, EAllFailed, EMixed } |
enum | TMsvSmsEntryFlags { EMsvSmsEntryClearFlag = 0x00000000, EMsvSmsEntryProtocolIdentifier = 0x000000FF, EMsvSmsEntryUserPromptIndicator = 0x00000100, EMsvSmsEntryClass = 0x00000E00, EMsvSmsEntryClassDefined = 0x00001000, EMsvSmsMessageValid = 0x00002000, EMsvSmsEntryDeliveryAckSummary = 0x0001C000, EMsvSmsEntryClassShift = 9, EMsvSmsEntryDeliveryAckSummaryShift = 14 } |
TMsvSmsEntry | ( | const TMsvEntry & | aEntry | ) | [inline] |
Copy constuctor.
const TMsvEntry & aEntry | The index entry to copy. |
IMPORT_C TMsvSmsEntryAckSummary | AckSummary | ( | TSmsAckType | aAckType | ) | const |
Gets the summary information for the specified acknowledgement.
If the specified acknowledgement is not recognised, then this function returns the default value of TMsvSmsEntryAckSummary::ENoAckSummary. nothing.
TSmsAckType aAckType | The requested acknowledgement summary. |
TBool | Class | ( | TSmsDataCodingScheme::TSmsClass & | aClass | ) | const [inline] |
Gets the SMS class data and defined flag.
TSmsDataCodingScheme::TSmsClass & aClass | An output argument with the SMS class data. |
IMPORT_C TBool | MessageId | ( | TInt32 & | aMessageId | ) | const |
Gets the message log ID and a flag indicating if it is valid.
The returned flag indicates whether the message log ID is valid. If it is valid then the message has only a single recipient that is pending a status report. In this case the returned message log ID refers to the recipient that is pending.
If it is not valid then the message has more than one recipient that is pending a status report. The message log ID should is not valid and should not be used.
TInt32 & aMessageId | An output argument for the message log ID. |
IMPORT_C void | SetAckSummary | ( | TSmsAckType | aAckType, |
TMsvSmsEntryAckSummary | aAckSummary | |||
) |
Sets the summary information for the specified acknowlwdgement.
If the specified acknowledgement is not recognised, then this function does nothing.
TSmsAckType aAckType | The acknowledgement summary to be set. |
TMsvSmsEntryAckSummary aAckSummary | The summary information. |
void | SetClass | ( | TBool | aClassDefined, |
TSmsDataCodingScheme::TSmsClass | aClass = TSmsDataCodingScheme::ESmsClass0 | |||
) | [inline] |
Sets the SMS class data and defined flag.
TBool aClassDefined | A value of True to set the SMS class data defined flag. |
TSmsDataCodingScheme::TSmsClass aClass = TSmsDataCodingScheme::ESmsClass0 | The SMS class data. |
IMPORT_C void | SetMessageId | ( | TInt32 | aMessageId, |
TBool | aIsValid | |||
) |
Sets the message log ID and a flag indicating if it is valid.
If the message has only a single recipient that is pending a status report then the message log ID for that recipient can be set in the index. The flag must be set to true.
If the message has more than one recipient that is pending a status report then the message log ID must not be used. The flag must be set to false.
This functionality cannot be used with bio-messages. This function will panic if used with a bio-message.
void | SetProtocolIdentifier | ( | TSmsProtocolIdentifier | aPID | ) | [inline] |
Sets the Protocol Identifier data.
TSmsProtocolIdentifier aPID | The Protocol Identifier data. |
void | SetProtocolIdentifier | ( | TUint8 | aPID | ) | [inline] |
Sets the Protocol Identifier data.
TUint8 aPID | The Protocol Identifier data. |
void | SetUserPromptIndicator | ( | TBool | aUPI | ) | [inline] |
Sets the User Prompt Indicator flag.
TBool aUPI | A value of True to set the flag. |
TBool | UserPromptIndicator | ( | ) | const [inline] |
Gets the User Prompt Indicator flag.
Defines the summary acknowledgement information.
This information indicates whether the SMS message is not supplying a summary for an acknowledgement, is still expecting acknowledgments or it has received all expected acknowledgements.
If all acknowledgements have been received the summary indicates whether all the recipients have successfully acknowledged the message, all failed or there was a mixture of successful and failed acknowledgements from the recipients.
ENoAckSummary = 0 |
No summary information is being formed. |
EPendingAcks |
The message is waiting for acknowledgements to be received for all recipients of this message. Some recipients may have received their acknowledgements but there are still some recipients that have not. |
EAllSuccessful |
The summary indicates that the message was successfully acknowledged by all recipients. |
EAllFailed |
The summary indicates that the message failed to be acknowledged by all recipients. |
EMixed |
The summary indicates a mixture of successful and failed acknowledgements from the recipients of the message. All recipients of this message have received their acknowledgements. |
Defines a set flags used to access message entry data specific to an SMS message.
EMsvSmsEntryClearFlag = 0x00000000 |
Clears the entire set of SMS flags. |
EMsvSmsEntryProtocolIdentifier = 0x000000FF |
Mask for the protocol identifier data. |
EMsvSmsEntryUserPromptIndicator = 0x00000100 |
Mask for the User Prompt Indicator flag. |
EMsvSmsEntryClass = 0x00000E00 |
Mask for the SMS class data. |
EMsvSmsEntryClassDefined = 0x00001000 |
Mask for the flag indicating whether the class data has been defined. |
EMsvSmsMessageValid = 0x00002000 |
Mask for the flag indicating whether the message ID is valid. |
EMsvSmsEntryDeliveryAckSummary = 0x0001C000 |
Mask for the delivery acknowledgement information. |
EMsvSmsEntryClassShift = 9 |
Parameter defining the number of bits to be shifted in order for the SMS class data to be at the LSB of the data block. |
EMsvSmsEntryDeliveryAckSummaryShift = 14 |
Parameter defining the number of bits to be shifted in order for the delivery acknowlwdgement information to be at the LSB of the data block. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.