Class EmailHandler

Inheritance Relationships

Derived Types

Class Documentation

class EmailHandler

Generic email handler.

Gets new emails and handles them by conditionally passing them on.

Subclassed by email::ServiceHandler, email::SubscriptionHandler

Public Functions

virtual void register_handler(std::shared_ptr<PollingManager> polling_manager) = 0

Register this handler.

Registers this handler with the PollingManager so that it is called with new emails. To be called after creation.

Parameters:

polling_manager – the polling manager to register with

virtual void handle(const struct EmailData &data) = 0

Handle new email.

To be called by the PollingManager.

Parameters:

data – the new email data

Protected Functions

EmailHandler()

Constructor.

virtual ~EmailHandler()

Protected Attributes

std::atomic_bool registered_