E-MailRelay
src
gverifiers
ginternalverifier.h
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 ginternalverifier.h
19
///
20
21
#ifndef G_INTERNAL_VERIFIER_H
22
#define G_INTERNAL_VERIFIER_H
23
24
#include "gdef.h"
25
#include "
gverifier.h
"
26
#include "
grequestclient.h
"
27
#include "
gclientptr.h
"
28
#include <string>
29
30
namespace
GVerifiers
31
{
32
class
InternalVerifier ;
33
}
34
35
//| \class GVerifiers::InternalVerifier
36
/// The standard internal Verifier that accepts all mailbox names.
37
///
38
class
GVerifiers::InternalVerifier
:
public
GSmtp::Verifier
39
{
40
public
:
41
InternalVerifier
() ;
42
///< Constructor.
43
44
private
:
// overrides
45
G::Slot::Signal<GSmtp::Verifier::Command,const GSmtp::VerifierStatus&>
& doneSignal()
override
;
// GSmtp::Verifier
46
void
cancel()
override
;
// Override from GSmtp::Verifier.
47
void
verify( GSmtp::Verifier::Command ,
const
std::string & rcpt_to_parameter ,
48
const
GSmtp::Verifier::Info
& )
override
;
// GSmtp::Verifier
49
50
public
:
51
~InternalVerifier
()
override
= default ;
52
InternalVerifier
(
const
InternalVerifier
& ) = delete ;
53
InternalVerifier
(
InternalVerifier
&& ) = delete ;
54
InternalVerifier
& operator=(
const
InternalVerifier
& ) = delete ;
55
InternalVerifier
& operator=(
InternalVerifier
&& ) = delete ;
56
57
private
:
58
G::Slot::Signal<GSmtp::Verifier::Command,const GSmtp::VerifierStatus&>
m_done_signal ;
59
} ;
60
61
#endif
GSmtp::Verifier
An asynchronous interface that verifies recipient 'to' addresses.
Definition:
gverifier.h:43
GVerifiers::InternalVerifier
The standard internal Verifier that accepts all mailbox names.
Definition:
ginternalverifier.h:39
GVerifiers::InternalVerifier::InternalVerifier
InternalVerifier()
Constructor.
gclientptr.h
grequestclient.h
gverifier.h
GVerifiers
Address verifier classes.
Definition:
gexecutableverifier.h:31
GSmtp::Verifier::Info
Extra information passed to GSmtp::Verifier::verify().
Definition:
gverifier.h:47
G::Slot::Signal< GSmtp::Verifier::Command, const GSmtp::VerifierStatus & >
Generated by
1.9.3