📄 todo.txt
字号:
Last updated 30/5/03
1. Increase error checking upon message receive complete, and add retry facility.
Currently CSMSReceiver::RunL() is overly optimistic on success.
2. Add binary data support. This is possible with a smallish change as follows.
(More details available within chapter 20 of the new Symbian C++ book)
The big problem with this is that this will not be readable by standard mobile phone
messaging apps, which will just complain. So will only be understandable to whoever can extract the binary data.
When encoding the sms message change :
TSmsUserDataSettings smsSettings;
smsSettings.SetAlphabet(TSmsDataCodingScheme::ESmsAlphabet7Bit);
smsSettings.SetTextCompressed(EFalse);
to :
TSmsUserDataSettings smsSettings;
smsSettings.SetAlphabet(TSmsDataCodingScheme::ESmsAlphabet8Bit);
smsSettings.SetTextCompressed(EFalse);
and to insert data :
CSmsPDU& pdu = iSmsMsg->SmsPDU();
CSmsUserData& userData = pdu.UserData();
userData.AddInformationElementL(CSmsInformationElement::ESmsIEIReserved, aData);
and when decoding the message we extract data with :
// Extract the message contents
CSmsPDU& pdu = iReceiver.iSmsMsg->SmsPDU();
CSmsUserData& userData = pdu.UserData();
CSmsInformationElement& recvElement = userData.InformationElement(0);
3. Add support for WAP SMS so that SMS can be sent to specific ports rather than using
pattern matching. However, this may be a good case for a CWAPSMSDatagramService.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -