Class EmailHandler
Defined in File handler.hpp
Inheritance Relationships
Derived Types
public email::ServiceHandler
(Class ServiceHandler)public email::SubscriptionHandler
(Class SubscriptionHandler)
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
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 Attributes
-
std::atomic_bool registered_