E-MailRelay
gpop.h
Go to the documentation of this file.
1//
2// Copyright (C) 2001-2023 Graeme Walker <graeme_walker@users.sourceforge.net>
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16// ===
17///
18/// \file gpop.h
19///
20
21#ifndef G_POP_H
22#define G_POP_H
23
24#include "gdef.h"
25#include "gpopstore.h"
26#include "gpopserver.h"
27#include "gsecrets.h"
28#include "gexceptionsink.h"
29#include "gpath.h"
30#include <memory>
31
32namespace GPop
33{
34 bool enabled() noexcept ;
35 ///< Returns true if pop code is built in.
36
37 std::unique_ptr<Store> newStore( const G::Path & spool_dir ,
38 bool pop_by_name , bool allow_delete ) ;
39 ///< Creates a new Pop::Store.
40
41 std::unique_ptr<GAuth::SaslServerSecrets> newSecrets( const std::string & path ) ;
42 ///< Creates a new SaslServerSecrets for newStore().
43
44 std::unique_ptr<Server> newServer( GNet::ExceptionSink , Store & ,
45 const GAuth::SaslServerSecrets & , const Server::Config & ) ;
46 ///< Creates a new server.
47
48 void report( const Server * , const std::string & group = {} ) ;
49 ///< Calls GPop::Server::report().
50}
51
52#endif
53
An interface used by GAuth::SaslServer to obtain authentication secrets.
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.
A POP server class.
Definition: gpopserver.h:85
A message store.
Definition: gpopstore.h:47
A Path object represents a file system path.
Definition: gpath.h:73
POP3 classes.
Definition: gpop.h:33
std::unique_ptr< Server > newServer(GNet::ExceptionSink, Store &, const GAuth::SaslServerSecrets &, const Server::Config &)
Creates a new server.
std::unique_ptr< GAuth::SaslServerSecrets > newSecrets(const std::string &path)
Creates a new SaslServerSecrets for newStore().
bool enabled() noexcept
Returns true if pop code is built in.
std::unique_ptr< Store > newStore(const G::Path &spool_dir, bool pop_by_name, bool allow_delete)
Creates a new Pop::Store.
void report(const Server *, const std::string &group={})
Calls GPop::Server::report().
A structure containing GPop::Server configuration parameters.
Definition: gpopserver.h:89