UIQ Technology
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



Location: QikSendAsLogic.h
Link against: qikutils.lib

Class CQikSendAsLogic

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

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


NewL()

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

CQikSendAsLogic *

A pointer to the newly created CQikSendAsLogic object.


NewL()

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

CQikSendAsLogic *

A pointer to the newly created CQikSendAsLogic object.


~CQikSendAsLogic()

IMPORT_C ~CQikSendAsLogic();

Description

Destructor.

[Top]


Member functions


SendAs()

IMPORT_C RSendAs &SendAs();

Description

Returns a reference to the RSendAs object.

Return value

RSendAs &

The reference to the RSendAs object.

See also:


SendAsMessage()

IMPORT_C RSendAsMessage &SendAsMessage();

Description

Returns a reference to the RSendAsMessage object.

Return value

RSendAsMessage &

The reference to the RSendAsMessage object.

See also:


SetBodyTextL()

IMPORT_C void SetBodyTextL(const TDesC &aBodyText);

Description

Set the body text.

Parameters

const TDesC &aBodyText

The new body text


SetBodyTextL()

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

CRichText *aBodyRichText

The new body text


SetSubjectL()

IMPORT_C void SetSubjectL(const TDesC &aSubject);

Description

Set the subject.

Parameters

const TDesC &aSubject

The new body text


AddAttachmentL()

IMPORT_C void AddAttachmentL(const TDesC &aAttachmentPath);

Description

Add an attachment.

Parameters

const TDesC &aAttachmentPath

The full path to the attachment


AddAttachmentL()

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.


CreateMessageL()

IMPORT_C void CreateMessageL(const TUid &aMtmId);

Description

Parameters

const TUid &aMtmId


SaveMessageL()

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.


AddRecipientL()

IMPORT_C void AddRecipientL(const TDesC &aAddress, RSendAsMessage::TSendAsRecipientType aRecipientType);

Description

Parameters

const TDesC &aAddress

RSendAsMessage::TSendAsRecipientType aRecipientType

See also:


AddRecipientL()

IMPORT_C void AddRecipientL(const TDesC &aAddress, const TDesC &aAlias, RSendAsMessage::TSendAsRecipientType aRecipientType);

Description

Parameters

const TDesC &aAddress

const TDesC &aAlias

RSendAsMessage::TSendAsRecipientType aRecipientType

See also:


LaunchEditorAndCloseL()

IMPORT_C void LaunchEditorAndCloseL();

Description

See also:

Terms and conditions of use of the material