E-MailRelay

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

gpop_disabled.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2001-2018 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 // gpop_disabled.cpp
19 //
20
21 #include "gdef.h"
22 #include "gpop.h"
23 #include "gpopserver.h"
24 #include "gpopsecrets.h"
25 #include "gpopstore.h"
26 #include "gexception.h"
27 #include "gstrings.h"
28
29 std::string GPop::Secrets::defaultPath()
30 {
31 return std::string() ; // the empty string disables some other stuff
32 }
33
34 GPop::Secrets::Secrets( const std::string & )
35 {
36 }
37
38 GPop::Secrets::~Secrets()
39 {
40 }
41
42 bool GPop::Secrets::valid() const
43 {
44 return false ;
45 }
46
47 std::string GPop::Secrets::source() const
48 {
49 return std::string() ;
50 }
51
52 std::string GPop::Secrets::secret( const std::string & , const std::string & ) const
53 {
54 return std::string() ;
55 }
56
57 bool GPop::Secrets::contains( const std::string & ) const
58 {
59 return false ;
60 }
61
62 // ==
63
64 GPop::Store::Store( G::Path , bool , bool )
65 {
66 }
67
68 // ==
69
70 GPop::Server::Config::Config( bool , unsigned int , const G::StringArray & )
71 {
72 }
73
74 // ==
75
76 G_EXCEPTION( NotImplemented , "cannot do pop: pop support not enabled at build time" ) ;
77
78 GPop::Server::Server( Store & store , const Secrets & secrets , Config ) :
79 m_store(store) ,
80 m_secrets(secrets)
81 {
82 throw NotImplemented() ;
83 }
84
85 GPop::Server::~Server()
86 {
87 }
88
89 void GPop::Server::report() const
90 {
91 }
92
93 GNet::ServerPeer * GPop::Server::newPeer( GNet::Server::PeerInfo )
94 {
95 return nullptr ;
96 }
97
98
99 /// \file gpop_disabled.cpp
GNet::ServerPeer
An abstract base class for the GNet::Server's connection to a remote client.
Definition: gserver.h:173
gstrings.h
GPop::Secrets::contains
bool contains(const std::string &mechanism) const
Returns true if there is one or more secrets using the given mechanism.
Definition: gpop_disabled.cpp:57
G::StringArray
std::vector< std::string > StringArray
A std::vector of std::strings.
Definition: gstrings.h:33
GPop::Server::report
void report() const
Generates helpful diagnostics after construction.
Definition: gpop_disabled.cpp:89
GPop::Store::Store
Store(G::Path spool_dir, bool by_name, bool allow_delete)
Constructor.
Definition: gpop_disabled.cpp:64
gpopstore.h
GPop::Secrets::valid
virtual bool valid() const override
Override from GSmtp::Valid virtual base class.
Definition: gpop_disabled.cpp:42
gpopsecrets.h
GPop::Secrets::Secrets
Secrets(const std::string &storage_path=defaultPath())
Constructor.
Definition: gpop_disabled.cpp:34
GPop::Secrets::~Secrets
virtual ~Secrets()
Destructor.
Definition: gpop_disabled.cpp:38
GPop::Server::Server
Server(GNet::ExceptionHandler &, Store &store, const Secrets &, Config)
Constructor. The 'secrets' reference is kept.
Definition: gpopserver.cpp:89
GPop::Server::~Server
virtual ~Server()
Destructor.
Definition: gpop_disabled.cpp:85
gpop.h
gexception.h
GPop::Secrets::source
virtual std::string source() const override
Override from GAuth::SaslServerSecrets.
Definition: gpop_disabled.cpp:47
gpopserver.h
GNet::Server::PeerInfo
A structure used in GNet::Server::newPeer().
Definition: gserver.h:85
GPop::Secrets::defaultPath
static std::string defaultPath()
Returns the default path.
Definition: gpop_disabled.cpp:29
G::Path
A Path object represents a file system path.
Definition: gpath.h:72