Commit 76483c28 authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Connector SSH: added checks listener class.

parent 13b1a65b
......@@ -123,6 +123,7 @@ set(CONNECTORLIB "centreonconnectorssh")
add_library("${CONNECTORLIB}"
# Sources.
# "${SRC_DIR}/channel.cc"
"${SRC_DIR}/checks/listener.cc"
"${SRC_DIR}/checks/result.cc"
# "${SRC_DIR}/commander.cc"
# "${SRC_DIR}/credentials.cc"
......@@ -134,6 +135,7 @@ add_library("${CONNECTORLIB}"
# "${SRC_DIR}/socket_handle.cc"
# Headers.
# "${INC_DIR}/channel.hh"
"${INC_DIR}/checks/listener.hh"
"${INC_DIR}/checks/result.hh"
# "${INC_DIR}/commander.hh"
# "${INC_DIR}/credentials.hh"
......
/*
** Copyright 2011 Merethis
**
** This file is part of Centreon Connector SSH.
**
** Centreon Connector SSH 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 Connector SSH 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 Connector SSH. If not, see
** <http://www.gnu.org/licenses/>.
*/
#ifndef CCCS_CHECKS_LISTENER_HH
# define CCCS_CHECKS_LISTENER_HH
# include "com/centreon/connector/ssh/checks/result.hh"
# include "com/centreon/connector/ssh/namespace.hh"
CCCS_BEGIN()
namespace checks {
/**
* @class listener listener.hh "com/centreon/connector/ssh/checks/listener.hh"
* @brief Check listener.
*
* Listen check events.
*/
class listener {
public:
listener();
listener(listener const& l);
virtual ~listener();
listener& operator=(listener const& l);
virtual void on_result(result const& result) = 0;
};
}
CCCS_END()
#endif // !CCCS_CHECKS_LISTENER_HH
/*
** Copyright 2011 Merethis
**
** This file is part of Centreon Connector SSH.
**
** Centreon Connector SSH 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 Connector SSH 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 Connector SSH. If not, see
** <http://www.gnu.org/licenses/>.
*/
#include "com/centreon/connector/ssh/checks/listener.hh"
using namespace com::centreon::connector::ssh::checks;
/**************************************
* *
* Public Methods *
* *
**************************************/
/**
* Default constructor.
*/
listener::listener() {}
/**
* Copy constructor.
*
* @param[in] l Unused.
*/
listener::listener(listener const& l) {
(void)l;
}
/**
* Destructor.
*/
listener::~listener() {}
/**
* Assignment operator.
*
* @param[in] l Unused.
*
* @return This object.
*/
listener& listener::operator=(listener const& l) {
(void)l;
return (*this);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment