todo.txt

来自「symbian EasyDgm源程序。 symbian 源程序。」· 文本 代码 · 共 38 行

TXT
38
字号
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 + =
减小字号Ctrl + -
显示快捷键?