Wtx ~ Wt Extension Library
WtxLib
Public Member Functions | Public Attributes | Friends | List of all members
Composer Class Reference

An E-mail composer widget. More...

#include <Composer.h>

+ Inheritance diagram for Composer:

Public Member Functions

 Composer ()
 Construct a new Composer.
 
void setFrom (const std::vector< Contact > &from)
 Set message From: contacts.
 
void setTo (const std::vector< Contact > &to)
 Set message To: contacts.
 
void setSubject (const WString &subject)
 Set subject.
 
void setMessage (const WString &message)
 Set the message.
 
void setAddressBook (const std::vector< Contact > &addressBook)
 Set the address book, for autocomplete suggestions.
 
std::vector< Contactfrom () const
 Get the From: contacts.
 
std::vector< Contactto () const
 Get the To: contacts.
 
std::vector< Contactcc () const
 Get the Cc: contacts.
 
std::vector< Contactbcc () const
 Get the Bc: contacts.
 
const WString & subject () const
 Get the subject.
 
std::vector< Attachmentattachments () const
 Get the list of attachments. More...
 
void addAttachment (const Attachment &attachment)
 
const WString & message () const
 Get the message.
 

Public Attributes

Wt::Signal send
 The message is ready to be sent...
 
Wt::Signal discard
 The message must be discarded.
 

Friends

class AttachmentEdit
 

Detailed Description

An E-mail composer widget.

This widget is part of the Wt composer example.

Definition at line 36 of file Composer.h.

Member Function Documentation

std::vector<Attachment> Composer::attachments ( ) const

Get the list of attachments.

The ownership of the attachment spool files is transferred to the caller as well, be sure to delete them !


The documentation for this class was generated from the following file: