Symbian
Symbian OS Library

FAQ-1044 How can I get a UIQ SendAs Dialog to display only relevant transport options?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: QIKON
Created: 04/30/2004 Modified: 05/05/2004
Number: FAQ-1044
Platform: Symbian OS v7.0

Question:
The CQikSendAsDialog shows a list of MTM's that can be used to send a message with attachments. But some MTMs (like SMS) are inappropriate when sending a message with large attachments. Can I stop the SendAs Dialog from displaying inappropriate options?

Answer:
Yes, you can. For the parameter TUid aCapabilityId in CQikSendAsDialog::RunDlgLD(), pass in the value KUidMtmQuerySupportAttachments to get rid of MTMs not supporting attachments. Otherwise the default is TUid::Null(), which causes all available MTMs to be displayed. This is documented in the API Reference documentation for CQikSendAsDialog. The relevant TUids are defined in mtmuids.h.

Note you can also specify a default MTM through the TUid aDefaultMtm parameter, if there is an obvious "best" choice. Here are some useful values for reference:

0x10001028 SMTP type

0x10001029 POP3 type. Note that POP3 cannot be used to send mail.

0x1000102B Fax type

0x1000102C SMS type