E-MailRelay
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 
30 {
31  return std::string() ; // the empty string disables some other stuff
32 }
33 
34 GPop::Secrets::Secrets( const std::string & )
35 {
36 }
37 
39 {
40 }
41 
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 
86 {
87 }
88 
90 {
91 }
92 
93 GNet::ServerPeer * GPop::Server::newPeer( GNet::Server::PeerInfo )
94 {
95  return nullptr ;
96 }
97 
98 
99 /// \file gpop_disabled.cpp
An abstract base class for the GNet::Server's connection to a remote client.
Definition: gserver.h:173
bool contains(const std::string &mechanism) const
Returns true if there is one or more secrets using the given mechanism.
std::vector< std::string > StringArray
A std::vector of std::strings.
Definition: gstrings.h:33
void report() const
Generates helpful diagnostics after construction.
Store(G::Path spool_dir, bool by_name, bool allow_delete)
Constructor.
virtual bool valid() const override
Override from GSmtp::Valid virtual base class.
Secrets(const std::string &storage_path=defaultPath())
Constructor.
virtual ~Secrets()
Destructor.
Server(GNet::ExceptionHandler &, Store &store, const Secrets &, Config)
Constructor. The 'secrets' reference is kept.
Definition: gpopserver.cpp:89
virtual ~Server()
Destructor.
virtual std::string source() const override
Override from GAuth::SaslServerSecrets.
A structure used in GNet::Server::newPeer().
Definition: gserver.h:85
static std::string defaultPath()
Returns the default path.
A Path object represents a file system path.
Definition: gpath.h:72