Newer
Older
** This file is part of Centreon Perl Connector.
** Centreon Perl Connector is free software: you can redistribute it
** and/or modify it under the terms of the GNU Affero General Public
** License as published by the Free Software Foundation, either version
** 3 of the License, or (at your option) any later version.
**
** Centreon Perl Connector is distributed in the hope that it will be
** useful, but WITHOUT ANY WARRANTY; without even the implied warranty
** of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public
** License along with Centreon Perl Connector. If not, see
** <http://www.gnu.org/licenses/>.
*/
#ifndef CCCP_CHECKS_TIMEOUT_HH
# define CCCP_CHECKS_TIMEOUT_HH
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# include "com/centreon/connector/perl/namespace.hh"
# include "com/centreon/task.hh"
CCCP_BEGIN()
namespace checks {
// Forward declaration.
class check;
/**
* @class timeout timeout.hh "com/centreon/connector/perl/checks/timeout.hh"
* @brief Check timeout.
*
* Task executed when a check timeouts.
*/
class timeout : public com::centreon::task {
public:
timeout(check* chk = NULL, bool final = false);
timeout(timeout const& t);
~timeout() throw ();
timeout& operator=(timeout const& t);
check* get_check() const throw ();
bool is_final() const throw ();
void run();
void set_check(check* chk) throw ();
void set_final(bool final) throw ();
private:
void _internal_copy(timeout const& t);
check* _check;
bool _final;
};
}
CCCP_END()
#endif // !CCCP_CHECKS_TIMEOUT_HH