2
* WengoPhone, a voice over Internet phone
3
* Copyright (C) 2004-2006 Wengo
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#include <boost/signals/trackable.hpp>
26
* Delegates/Design Pattern Observer.
28
* Provides the mechanism for automatic signal/slot disconnection when the object is destructed.
29
* You must inherit publicly from this class.
31
* The problem solved by Trackable is simple:
32
* what if a signal is emitted and the receiver object for this signal is already been destroyed?
33
* most likely, a segmentation fault will occur.
35
* The emitter of a signal does not inherit from Trackable, the receiver does inherit from Trackable.
37
* @author Tanguy Krotoff
39
class Trackable : public boost::signals::trackable {
42
#endif //OWTRACKABLE_H