- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

gnullprocessor.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_NULL_PROCESSOR_H
22 #define G_SMTP_NULL_PROCESSOR_H
23
24 #include "gdef.h"
25 #include "gsmtp.h"
26 #include "gexecutable.h"
27 #include "gprocessor.h"
28
30 namespace GSmtp
31 {
32 class NullProcessor ;
33 }
34
38 class GSmtp::NullProcessor : public GSmtp::Processor
39 {
40 public:
41 NullProcessor() ;
43
44 explicit NullProcessor( unsigned int exit_code ) ;
48
49 virtual ~NullProcessor() ;
51
52 virtual G::Signal1<bool> & doneSignal() ;
54
55 virtual void start( const std::string & path ) ;
57
58 virtual void abort() ;
60
61 virtual std::string text() const ;
63
64 virtual bool cancelled() const ;
66
67 virtual bool repoll() const ;
69
70 private:
71 NullProcessor( const NullProcessor & ) ; // not implemented
72 void operator=( const NullProcessor & ) ; // not implemented
73
74 private:
75 G::Signal1<bool> m_done_signal ;
76 bool m_cancelled ;
77 bool m_repoll ;
78 bool m_ok ;
79 } ;
80
81 #endif
GSmtp::NullProcessor::doneSignal
virtual G::Signal1< bool > & doneSignal()
Final override from GSmtp::Processor.
Definition: gnullprocessor.cpp:62
GSmtp::NullProcessor
A Processor class that does nothing.
Definition: gnullprocessor.h:38
GSmtp
SMTP and message-store classes.
GSmtp::Processor
An interface for processing message files.
Definition: gprocessor.h:51
G::Signal1< bool >
GSmtp::NullProcessor::NullProcessor
NullProcessor()
Constructor.
Definition: gnullprocessor.cpp:25
gexecutable.h
GSmtp::NullProcessor::start
virtual void start(const std::string &path)
Final override from GSmtp::Processor.
Definition: gnullprocessor.cpp:71
GSmtp::NullProcessor::abort
virtual void abort()
Final override from GSmtp::Processor.
Definition: gnullprocessor.cpp:67
GSmtp::NullProcessor::text
virtual std::string text() const
Final override from GSmtp::Processor.
Definition: gnullprocessor.cpp:57
GSmtp::NullProcessor::cancelled
virtual bool cancelled() const
Final override from GSmtp::Processor.
Definition: gnullprocessor.cpp:47
GSmtp::NullProcessor::~NullProcessor
virtual ~NullProcessor()
Destructor.
Definition: gnullprocessor.cpp:43
gprocessor.h
gsmtp.h
GSmtp::NullProcessor::repoll
virtual bool repoll() const
Final override from GSmtp::Processor.
Definition: gnullprocessor.cpp:52