API published in: S60 1st Ed
Link against: sendui.lib
Required Capabilities
LocalServices NetworkServices ReadDeviceData ReadUserData WriteDeviceData WriteUserData
Exceptions
The capability DRM is required in:
EXPORT_C void CSendUi::CreateAndSendMessageL( TUid aServiceUid, const CMessageData* aMessageData, TUid aBioTypeUid, TBool aLaunchEditorEmbedded )
...and...
EXPORT_C void CSendUi::ShowQueryAndSendL( const CMessageData* aMessageData, TSendingCapabilities aRequiredCapabilities, CArrayFix<TUid>* aServicesToDim, TUid aBioTypeUid, TBool aLaunchEditorEmbedded, const TDesC& aTitleText )
...and...
EXPORT_C void CSendUi::ShowTypedQueryAndSendL( TSendUiMenuType aMenuType, const CMessageData* aMessageData, TSendingCapabilities aRequiredCapabilities, CArrayFix<TUid>* aServicesToDim, TUid aBioTypeUid, TBool aLaunchEditorEmbedded, const TDesC& aTitleText )
...when the Send UI client is sending DRM protected files over MMS.
#include <sendui.h>
Can be used to display "Send" list query and to create and send messages via available services. Sending services can be based on the MTM or ECom architecture. Created messages are sent directly or message editor is opened for editing, depending on the type of selected service.
Public Types |
|
enum | TSendUiMenuType { ESendMenu, EWriteMenu } |
Public Member Functions |
|
virtual IMPORT_C | ~CSendUi () |
Destructor. |
|
IMPORT_C void | AddSendMenuItemL (CEikMenuPane &aMenuPane, TInt aIndex, TInt aCommandId, TSendingCapabilities aRequiredCapabilities=TSendingCapabilities::CapabilitiesForAllServices()) |
Adds "Send" menu item to menupane. |
|
IMPORT_C void | ShowQueryAndSendL (const CMessageData *aMessageData, TSendingCapabilities aRequiredCapabilities=TSendingCapabilities::CapabilitiesForAllServices(), CArrayFix< TUid > *aServicesToDim=NULL, TUid aBioTypeUid=KNullUid, TBool aLaunchEditorEmbedded=ETrue, const TDesC &aTitleText=KNullDesC) |
First displays "Send" pop-up list query and then creates the message. |
|
IMPORT_C TUid | ShowSendQueryL (const CMessageData *aMessageData=NULL, TSendingCapabilities aRequiredCapabilities=TSendingCapabilities::CapabilitiesForAllServices(), CArrayFix< TUid > *aServicesToDim=NULL, const TDesC &aTitleText=KNullDesC) |
Displays "Send" pop-up list query and returns the user selection. |
|
IMPORT_C void | CreateAndSendMessageL (TUid aServiceUid, const CMessageData *aMessageData, TUid aBioTypeUid=KNullUid, TBool aLaunchEditorEmbedded=ETrue) |
Creates the message and launches the editor for editing the message or sends the message directly without opening the editor.
|
|
IMPORT_C TBool | ValidateServiceL (TUid aServiceUid, TSendingCapabilities aRequiredCapabilities) |
Validates that service is available and has required capabilities. |
|
IMPORT_C TInt | ServiceCapabilitiesL (TUid aServiceUid, TSendingCapabilities &aServiceCapabilities) |
Returns sending capabilities of the sending service. |
|
IMPORT_C TBool | CanSendBioMessage (TUid aBioMessageUid) const |
Can be used to check if sending of bio message is supported. |
|
IMPORT_C void | AvailableServicesL (RPointerArray< CSendingServiceInfo > &aServiceList, TUid aServiceProvider=KNullUid) |
Populates given list with the information about services provided by specified ECom service provider. |
|
IMPORT_C void | AddTypedMenuItemL (TSendUiMenuType aMenuType, CEikMenuPane &aMenuPane, TInt aIndex, TInt aCommandId, TSendingCapabilities aRequiredCapabilities=TSendingCapabilities::CapabilitiesForAllServices()) |
Adds menu item of given type to menupane. |
|
IMPORT_C void | ShowTypedQueryAndSendL (TSendUiMenuType aMenuType, const CMessageData *aMessageData, TSendingCapabilities aRequiredCapabilities=TSendingCapabilities::CapabilitiesForAllServices(), CArrayFix< TUid > *aServicesToDim=NULL, TUid aBioTypeUid=KNullUid, TBool aLaunchEditorEmbedded=ETrue, const TDesC &aTitleText=KNullDesC) |
Displays list query and creates message. |
|
IMPORT_C TUid | ShowTypedQueryL (TSendUiMenuType aMenuType, const CMessageData *aMessageData=NULL, TSendingCapabilities aRequiredCapabilities=TSendingCapabilities::CapabilitiesForAllServices(), CArrayFix< TUid > *aServicesToDim=NULL, const TDesC &aTitleText=KNullDesC) |
Displays list query and returns the user selection. |
|
IMPORT_C TUid | TechnologyType (TUid aServiceUid) const |
Returns the technology type of a service. |
|
Static Public Member Functions |
|
static IMPORT_C CSendUi * | NewL () |
Two-phased constructor. |
|
static IMPORT_C CSendUi * | NewLC () |
Two-phased constructor. |
|
|
Destructor. |
|
Adds "Send" menu item to menupane.
|
|
Adds menu item of given type to menupane.
|
|
Populates given list with the information about services provided by specified ECom service provider. Each service provider can provide 1..n services. Ownership of the pointed objects are transfered to caller. Can be used for ex. when creating own "Send" menu, which needs to include ECom based services. NOTE: Can be used only for ECom based services, also for MTMs
|
|
Can be used to check if sending of bio message is supported. Deprecated.
|
|
Creates the message and launches the editor for editing the message or sends the message directly without opening the editor. Functionality depends on the type of selected service.
|
|
Two-phased constructor. |
|
Two-phased constructor. |
|
Returns sending capabilities of the sending service.
|
|
First displays "Send" pop-up list query and then creates the message. Editor is launched for editing the message or the message is sent directly without opening the editor. Functionality depends on the type of selected service. "Send" pop-up list query can be manipulated in three ways. All three methods can be used or just some of those. The first option is to set the required capabilities for services. Eg. attachments supported. Sending services not matching to required capabilities are filtered away. Capabilities are defined in TSendingCapabilities.h. The second option is content based filtering. Filtering is based on the files intended to send. Those files can be set as part of message data. Filtering is done according the predefined rules. Eg. If oversized file is intended to send, MMS is filtered away from "Send" pop-up list. The third option is to set the array of service uids not wanted to be shown in list query. These sending services are filtered away even if those match to required capabilities.
|
|
Displays "Send" pop-up list query and returns the user selection. "Send" pop-up list query can be manipulated in three ways. All three methods can be used or just some of those. The first option is to set the required capabilities for services. Eg. attachments supported. Sending services not matching to required capabilities are filtered away. Capabilities are defined in TSendingCapabilities.h. The second option is content based filtering. Filtering is based on the files intended to send. Those files can be set as part of message data. Filtering is done according the predefined rules. Eg. If oversized file is intended to send, MMS is filtered away from "Send" pop-up list. The third option is to set the array of service uids not wanted to be shown in list query. These sending services are filtered away even if those match to required capabilities.
|
|
Displays list query and creates message. See ShowQueryAndSendL.
|
|
Displays list query and returns the user selection. See ShowSendQueryL.
|
|
Returns the technology type of a service.
|
|
Validates that service is available and has required capabilities. For ex. can be used when calling application creates its own "Send" menu.
|