E-MailRelay
gadminserver_disabled.cpp
Go to the documentation of this file.
1//
2// Copyright (C) 2001-2024 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= default ;
41
42void GSmtp::AdminServer::emitCommand( Command , unsigned int )
43{
44}
45
47{
48 throw NotImplemented() ;
49}
50
51void GSmtp::AdminServer::report( const std::string & ) const
52{
53}
54
55void GSmtp::AdminServer::notify( const std::string & , const std::string & , const std::string & , const std::string & )
56{
57}
58
60{
61 throw NotImplemented() ;
62}
63
65{
66 throw NotImplemented() ;
67}
68
70{
71 throw NotImplemented() ;
72}
73
75{
76 return false ;
77}
78
An interface used by GAuth::SaslClient to obtain a client id and its authentication secret.
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
Definition: geventstate.h:131
static bool enabled()
Returns true if the server is enabled.
~AdminServer()
Destructor.
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.
AdminServer(GNet::EventState, GStore::MessageStore &store, FilterFactoryBase &, const GAuth::SaslClientSecrets &client_secrets, const G::StringArray &interfaces, const Config &config)
Constructor.
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.
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