Wt examples  4.10.4
Public Member Functions | Public Attributes | List of all members
Contact Struct Reference

An email contact. More...

#include <Contact.h>

Public Member Functions

 Contact (const std::u32string name_, const std::u32string email_)
 Create a new contact. More...
 
std::u32string formatted () const
 Get the typical single string form: "name" <email> More...
 

Public Attributes

std::u32string name
 The contact name. More...
 
std::u32string email
 The contact email address. More...
 

Detailed Description

An email contact.

This widget is part of the Wt composer example.

Definition at line 19 of file Contact.h.

Constructor & Destructor Documentation

◆ Contact()

Contact::Contact ( const std::u32string  name_,
const std::u32string  email_ 
)
inline

Create a new contact.

Definition at line 31 of file Contact.h.

32  : name(name_),
33  email(email_)
34  { }
std::u32string name
The contact name.
Definition: Contact.h:23
std::u32string email
The contact email address.
Definition: Contact.h:27

Member Function Documentation

◆ formatted()

std::u32string Contact::formatted ( ) const
inline

Get the typical single string form: "name" <email>

Definition at line 38 of file Contact.h.

38  {
39  return U"\"" + name + U"\" <" + email + U">";
40  }

Member Data Documentation

◆ email

std::u32string Contact::email

The contact email address.

Definition at line 27 of file Contact.h.

◆ name

std::u32string Contact::name

The contact name.

Definition at line 23 of file Contact.h.


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