Leosac  0.8.0
Open Source Access Control
Leosac::Module::SMTP::SMTPConfig Class Reference

Wrapper around the SMTP module configuration. More...

#include <SMTPConfig.hpp>

+ Collaboration diagram for Leosac::Module::SMTP::SMTPConfig:

Public Member Functions

 SMTPConfig ()
 
SMTPConfigId id () const
 
void server_add (SMTPServerInfo)
 
void server_clear ()
 
const std::vector< SMTPServerInfo > & servers () const
 

Private Attributes

SMTPConfigId id_
 
std::vector< SMTPServerInfoservers_
 

Friends

class odb::access
 

Detailed Description

Wrapper around the SMTP module configuration.

There probably shouldn't be more than one object of this type in the database.

Definition at line 73 of file SMTPConfig.hpp.

Constructor & Destructor Documentation

◆ SMTPConfig()

SMTPConfig::SMTPConfig ( )

Definition at line 25 of file SMTPConfig.cpp.

Member Function Documentation

◆ id()

SMTPConfigId SMTPConfig::id ( ) const

Definition at line 45 of file SMTPConfig.cpp.

◆ server_add()

void SMTPConfig::server_add ( SMTPServerInfo  smtps)

Definition at line 30 of file SMTPConfig.cpp.

◆ server_clear()

void SMTPConfig::server_clear ( )

Definition at line 35 of file SMTPConfig.cpp.

◆ servers()

const std::vector< SMTPServerInfo > & SMTPConfig::servers ( ) const

Definition at line 40 of file SMTPConfig.cpp.

Friends And Related Function Documentation

◆ odb::access

friend class odb::access
friend

Definition at line 91 of file SMTPConfig.hpp.

Member Data Documentation

◆ id_

SMTPConfigId Leosac::Module::SMTP::SMTPConfig::id_
private

Definition at line 86 of file SMTPConfig.hpp.

◆ servers_

std::vector<SMTPServerInfo> Leosac::Module::SMTP::SMTPConfig::servers_
private

Definition at line 89 of file SMTPConfig.hpp.


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