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
24 class GSmtp::AdminServerImp
25{
26} ;
27
28 bool GSmtp::AdminServer::enabled()
29{
30 return false ;
31}
32
33 GSmtp::AdminServer::AdminServer( GNet::EventState , GStore::MessageStore & ,
34 FilterFactoryBase & , const GAuth::SaslClientSecrets & ,
35 const G::StringArray & , const Config & )
36{
37}
38
39 GSmtp::AdminServer::~AdminServer()
40= default ;
41
42 void GSmtp::AdminServer::emitCommand( Command , unsigned int )
43{
44}
45
46 G::Slot::Signal<GSmtp::AdminServer::Command,unsigned int> & GSmtp::AdminServer::commandSignal()
47{
48 throw NotImplemented() ;
49}
50
51 void GSmtp::AdminServer::report( const std::string & ) const
52{
53}
54
55 void GSmtp::AdminServer::notify( const std::string & , const std::string & , const std::string & , const std::string & )
56{
57}
58
59 GStore::MessageStore & GSmtp::AdminServer::store()
60{
61 throw NotImplemented() ;
62}
63
64 GSmtp::FilterFactoryBase & GSmtp::AdminServer::ff()
65{
66 throw NotImplemented() ;
67}
68
69 const GAuth::SaslClientSecrets & GSmtp::AdminServer::clientSecrets() const
70{
71 throw NotImplemented() ;
72}
73
74 bool GSmtp::AdminServer::notifying() const
75{
76 return false ;
77}
78
GAuth::SaslClientSecrets
An interface used by GAuth::SaslClient to obtain a client id and its authentication secret.
Definition: gsaslclientsecrets.h:39
GNet::EventState
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
Definition: geventstate.h:131
GSmtp::AdminServer::enabled
static bool enabled()
Returns true if the server is enabled.
Definition: gadminserver_disabled.cpp:28
GSmtp::AdminServer::~AdminServer
~AdminServer()
Destructor.
GSmtp::AdminServer::commandSignal
G::Slot::Signal< Command, unsigned int > & commandSignal()
Returns a reference to a signal that is emit()ted when the remote user makes a request.
Definition: gadminserver_disabled.cpp:46
GSmtp::AdminServer::report
void report(const std::string &group={}) const
Generates helpful diagnostics.
Definition: gadminserver_disabled.cpp:51
GSmtp::AdminServer::AdminServer
AdminServer(GNet::EventState, GStore::MessageStore &store, FilterFactoryBase &, const GAuth::SaslClientSecrets &client_secrets, const G::StringArray &interfaces, const Config &config)
Constructor.
Definition: gadminserver_disabled.cpp:33
GSmtp::AdminServer::emitCommand
void emitCommand(Command, unsigned int)
Emits an asynchronous event on the commandSignal().
Definition: gadminserver_disabled.cpp:42
GSmtp::AdminServer::notify
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.
Definition: gadminserver_disabled.cpp:55
GSmtp::AdminServer::store
GStore::MessageStore & store()
Returns a reference to the message store, as passed in to the constructor.
Definition: gadminserver_disabled.cpp:59
GSmtp::AdminServer::ff
FilterFactoryBase & ff()
Returns a reference to the filter factory, as passed in to the constructor.
Definition: gadminserver_disabled.cpp:64
GSmtp::AdminServer::clientSecrets
const GAuth::SaslClientSecrets & clientSecrets() const
Returns a reference to the client secrets object, as passed in to the constructor.
Definition: gadminserver_disabled.cpp:69
GSmtp::AdminServer::notifying
bool notifying() const
Returns true if the remote user has asked for notifications.
Definition: gadminserver_disabled.cpp:74
GSmtp::FilterFactoryBase
A factory interface for making GSmtp::Filter message processors.
Definition: gfilterfactorybase.h:43
GStore::MessageStore
A class which allows SMTP messages to be stored and retrieved.
Definition: gmessagestore.h:73
gadminserver.h
G::StringArray
std::vector< std::string > StringArray
A std::vector of std::strings.
Definition: gstringarray.h:30
GSmtp::AdminServer::Config
A configuration structure for GSmtp::AdminServer.
Definition: gadminserver.h:126
G::Slot::Signal
A slot holder, with connect() and emit() methods.
Definition: gslot.h:184