Wt examples: Contact Struct Reference

Wt examples 3.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes
Contact Struct Reference
Composer example

An email contact. More...

`#include <Contact.h>`

List of all members.

## Public Member Functions
| Contact (const std::wstring name_, const std::wstring email_)
| Create a new contact.
std::wstring | formatted () const
| Get the typical single string form: "name" <email>
## Public Attributes
std::wstring | name
| The contact name.
std::wstring | email
| The contact email address.

## 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 | ( | const std::wstring | name_,
|  | const std::wstring | email_
| ) |  | `[inline]`

Create a new contact.

Definition at line 31 of file Contact.h.

        : name(name_),
          email(email_)
      { }

## Member Function Documentation

std::wstring Contact::formatted | ( |  | ) | const`[inline]`

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

Definition at line 38 of file Contact.h.

                                   {
        return L'"' + name + L"\" <" + email + L">";
      }

## Member Data Documentation

std::wstring Contact::email

The contact email address.

Definition at line 27 of file Contact.h.

std::wstring Contact::name

The contact name.

Definition at line 23 of file Contact.h.

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

- /home/koen/project/wt/public-git/wt/examples/composer/Contact.h