»
UIQ 3 SDK »
UIQ Developer Library »
UIQ API Reference »
UIQ C++ Component reference »
Qikon »
CQikSendAsLogic
Location:
QikSendAsLogic.h
Link against: qikutils.lib
class CQikSendAsLogic : public CBase;
Description
This class is used from the CQikSendAsDialog class or when attaching RFile s. It can also be used when creating a custom Send As dialog. CQikSendAsLogic opens a session to the Send As server and creates the message to send.
Usage: 1) Creation and set observer. 2) Optionally modify RSendAs , for example get information about available mtm:s with specific capabilities. Useful when creating your own SendAs dialog. 3) Optionally set bodytext and subject. 4) Add any filenames for attachment. 5) Add any filehandlers for attachment. 6) Call CreateMessageL() with selected the uid of the mtm to use. 7) A call-back to your observer will occur when asyncronous operations are ready. 8) Optionally modify the RSendAsMessage . 9) Call either of SaveMessageL() or LaunchEditorAndCloseL() wich will complete the SendAs session.
Derivation
CBase - Base class for all classes to be instantiated on the heapCQikSendAsLogic - This class is used from the CQikSendAsDialog class or when attaching RFile s
Members
Defined in CQikSendAsLogic:
AddAttachmentL(), AddAttachmentL(), AddRecipientL(), AddRecipientL(), CreateMessageL(), LaunchEditorAndCloseL(), NewL(), NewL(), SaveMessageL(), SendAs(), SendAsMessage(), SetBodyTextL(), SetBodyTextL(), SetMessageCreatedObserver(), SetSubjectL(), ~CQikSendAsLogic()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
See also:
Construction and destruction
static IMPORT_C CQikSendAsLogic *NewL(CRichText *aBodyRichText, const TDesC &aAttachmentPath, const TDesC &aSubject, const TUid &aBioMessageType=TUid::Null(), TBool aAlwaysSendBody=EFalse);
Description
Creates an instance of the class.
Parameters
CRichText *aBodyRichText |
The text displayed in the body. Takes ownership. |
const TDesC &aAttachmentPath |
The full path to the attachment file. |
const TDesC &aSubject |
The text displayed on the subject line. |
const TUid &aBioMessageType |
Set to the application specific Uid for biomessages, default null. |
TBool aAlwaysSendBody |
Set to ETrue if the bodytext should be shown in email, default EFalse . |
|
Return value
static IMPORT_C CQikSendAsLogic *NewL(const TUid &aBioMessageType=TUid::Null(), TBool aAlwaysSendBody=EFalse);
Description
Creates an instance of the class.
Parameters
const TUid &aBioMessageType |
Set to the application specific Uid for biomessages, default null. |
TBool aAlwaysSendBody |
Set to ETrue if the bodytext should be shown in email, default EFalse . |
|
Return value
IMPORT_C ~CQikSendAsLogic();
Description
Destructor.
IMPORT_C RSendAs &SendAs();
Description
Returns a reference to the RSendAs object.
Return value
See also:
IMPORT_C RSendAsMessage &SendAsMessage();
Description
Returns a reference to the RSendAsMessage object.
Return value
See also:
IMPORT_C void SetBodyTextL(const TDesC &aBodyText);
Description
Set the body text.
Parameters
const TDesC &aBodyText |
The new body text |
|
IMPORT_C void SetBodyTextL(CRichText *aBodyRichText);
Description
Set the body text. Takes ownership. The body text set here is used if both this and SetBodyTextL(const TDesC& aBodyText) is used.
Parameters
IMPORT_C void SetSubjectL(const TDesC &aSubject);
Description
Set the subject.
Parameters
const TDesC &aSubject |
The new body text |
|
IMPORT_C void AddAttachmentL(const TDesC &aAttachmentPath);
Description
Add an attachment.
Parameters
const TDesC &aAttachmentPath |
The full path to the attachment |
|
IMPORT_C void AddAttachmentL(const RFile &aAttachment);
Description
Add an attachment. The client is responsible for closing the file handle.
Parameters
const RFile &aAttachment |
Handle to attachment. |
|
IMPORT_C void CreateMessageL(const TUid &aMtmId);
Description
Parameters
IMPORT_C void SaveMessageL();
Description
See also:
SetMessageCreatedObserver()
IMPORT_C void SetMessageCreatedObserver(MSendAsDialogMessageCreatedObserver *aObserver);
Description
Set the MSendAsDialogMessageCreatedObserver observer.
Parameters
MSendAsDialogMessageCreatedObserver *aObserver |
The observer to notify when message is created. |
|
IMPORT_C void AddRecipientL(const TDesC &aAddress, RSendAsMessage::TSendAsRecipientType aRecipientType);
Description
Parameters
See also:
IMPORT_C void AddRecipientL(const TDesC &aAddress, const TDesC &aAlias, RSendAsMessage::TSendAsRecipientType aRecipientType);
Description
Parameters
See also:
IMPORT_C void LaunchEditorAndCloseL();
Description
See also:
Terms and conditions of use of the material