00001 /* 00002 * Copyright (C) 2003-2009 Olivier Boudeville 00003 * 00004 * This file is part of the Ceylan library. 00005 * 00006 * The Ceylan library is free software: you can redistribute it and/or modify 00007 * it under the terms of either the GNU Lesser General Public License or 00008 * the GNU General Public License, as they are published by the Free Software 00009 * Foundation, either version 3 of these Licenses, or (at your option) 00010 * any later version. 00011 * 00012 * The Ceylan library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License and the GNU General Public License 00016 * for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License and the GNU General Public License along with the Ceylan library. 00020 * If not, see <http://www.gnu.org/licenses/>. 00021 * 00022 * Author: Olivier Boudeville (olivier.boudeville@esperide.com) 00023 * 00024 */ 00025 00026 00027 #ifndef CEYLAN_CALLER_EVENT_LISTENER_H_ 00028 #define CEYLAN_CALLER_EVENT_LISTENER_H_ 00029 00030 00031 #include "CeylanEventListener.h" // for inheritance 00032 00033 00034 #include <string> 00035 00036 00037 namespace Ceylan 00038 { 00039 00040 00041 // Events are propagated from sources to listeners. 00042 class Event ; 00043 00044 00045 // Sources emit events. 00046 class EventSource ; 00047 00048 00049 00061 class CEYLAN_DLL CallerEventListener : public EventListener 00062 { 00063 00064 00065 public: 00066 00067 00069 CallerEventListener() ; 00070 00071 00072 00078 explicit CallerEventListener( EventSource & source ) ; 00079 00080 00081 00087 virtual ~CallerEventListener() throw() ; 00088 00089 00090 00101 virtual const std::string toString( 00102 Ceylan::VerbosityLevels level = Ceylan::high ) const ; 00103 00104 00105 00106 private: 00107 00108 00116 CallerEventListener( const CallerEventListener & source ) ; 00117 00118 00126 CallerEventListener & operator = ( 00127 const CallerEventListener & source ) ; 00128 00129 00130 } ; 00131 00132 } 00133 00134 00135 00136 #endif // CEYLAN_CALLER_EVENT_LISTENER_H_ 00137