E-MailRelay
gadminserver_disabled.cpp
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 gadminserver_disabled.cpp
19///
20
21#include "gdef.h"
22#include "gadminserver.h"
23
24class GSmtp::AdminServerImp
25{
26} ;
27
29{
30 return false ;
31}
32
35 const G::StringArray & , const Config & )
36{
37}
38
40{
41}
42
43void GSmtp::AdminServer::emitCommand( Command , unsigned int )
44{
45}
46
48{
49 throw NotImplemented() ;
50}
51
52void GSmtp::AdminServer::report( const std::string & ) const
53{
54}
55
56void GSmtp::AdminServer::notify( const std::string & , const std::string & , const std::string & , const std::string & )
57{
58}
59
61{
62 throw NotImplemented() ;
63}
64
66{
67 throw NotImplemented() ;
68}
69
71{
72 throw NotImplemented() ;
73}
74
76{
77 return false ;
78}
79
An interface used by GAuth::SaslClient to obtain a client id and its authentication secret.
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.
static bool enabled()
Returns true if the server is enabled.
G::Slot::Signal< Command, unsigned int > & commandSignal()
Returns a reference to a signal that is emit()ted when the remote user makes a request.
void report(const std::string &group={}) const
Generates helpful diagnostics.
void emitCommand(Command, unsigned int)
Emits an asynchronous event on the commandSignal().
void notify(const std::string &s0, const std::string &s1, const std::string &s2, const std::string &s3)
Called when something happens which the admin users might be interested in.
GStore::MessageStore & store()
Returns a reference to the message store, as passed in to the constructor.
FilterFactoryBase & ff()
Returns a reference to the filter factory, as passed in to the constructor.
const GAuth::SaslClientSecrets & clientSecrets() const
Returns a reference to the client secrets object, as passed in to the constructor.
AdminServer(GNet::ExceptionSink, GStore::MessageStore &store, FilterFactoryBase &, const GAuth::SaslClientSecrets &client_secrets, const G::StringArray &interfaces, const Config &config)
Constructor.
bool notifying() const
Returns true if the remote user has asked for notifications.
A factory interface for making GSmtp::Filter message processors.
A class which allows SMTP messages to be stored and retrieved.
Definition: gmessagestore.h:73
std::vector< std::string > StringArray
A std::vector of std::strings.
Definition: gstringarray.h:30
A configuration structure for GSmtp::AdminServer.
Definition: gadminserver.h:126
A slot holder, with connect() and emit() methods.
Definition: gslot.h:184