- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

gverifierstatus.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2001-2013 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 // ===
20
21 #ifndef G_SMTP_VERIFIER_STATUS_H
22 #define G_SMTP_VERIFIER_STATUS_H
23
24 #include "gdef.h"
25 #include "gsmtp.h"
26 #include <string>
27
29 namespace GSmtp
30 {
31 class VerifierStatus ;
32 }
33
51 class GSmtp::VerifierStatus
52 {
53 public:
54 bool is_valid ;
55 bool is_local ;
56 bool temporary ;
57 std::string full_name ;
58 std::string address ;
59 std::string reason ;
60 std::string help ;
61
62 VerifierStatus() ;
64
65 explicit VerifierStatus( const std::string & ) ;
68
69 static VerifierStatus parse( const std::string & str , std::string & to_ref ) ;
72
73 std::string str( const std::string & to ) const ;
76 } ;
77
78 #endif
GSmtp
SMTP and message-store classes.
GSmtp::VerifierStatus::parse
static VerifierStatus parse(const std::string &str, std::string &to_ref)
Parses a str() string into a structure and a recipient 'to' address (by reference).
Definition: gverifierstatus.cpp:42
GSmtp::VerifierStatus::VerifierStatus
VerifierStatus()
Default constructor for an invalid remote mailbox.
Definition: gverifierstatus.cpp:27
GSmtp::VerifierStatus::address
std::string address
Definition: gverifierstatus.h:58
GSmtp::VerifierStatus::help
std::string help
Definition: gverifierstatus.h:60
GSmtp::VerifierStatus
A structure returned by GSmtp::Verifier to describe the status of a rcpt-to recipient.
Definition: gverifierstatus.h:51
GSmtp::VerifierStatus::reason
std::string reason
Definition: gverifierstatus.h:59
gsmtp.h
GSmtp::VerifierStatus::is_local
bool is_local
Definition: gverifierstatus.h:55
GSmtp::VerifierStatus::temporary
bool temporary
Definition: gverifierstatus.h:56
GSmtp::VerifierStatus::is_valid
bool is_valid
Definition: gverifierstatus.h:54
GSmtp::VerifierStatus::full_name
std::string full_name
Definition: gverifierstatus.h:57
GSmtp::VerifierStatus::str
std::string str(const std::string &to) const
Returns a string representation of the structure plus the original recipient 'to' address...
Definition: gverifierstatus.cpp:67