* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef VAR_TEXT_HPP
/// String variable
-class VarText: public Variable, public Subject<VarText, void*>,
+class VarText: public Variable, public Subject<VarText>,
public Observer<VarPercent, void*>,
public Observer< VarText,void*>
{
virtual const UString get() const;
/// Methods called when an observed variable is modified
- virtual void onUpdate( Subject<VarPercent, void*> &rVariable, void* );
- virtual void onUpdate( Subject<VarText, void*> &rVariable, void* );
+ virtual void onUpdate( Subject<VarPercent> &rVariable, void* );
+ virtual void onUpdate( Subject<VarText> &rVariable, void* );
private:
+ /// Stop observing other variables
+ void delObservers();
+
/// Variable type
static const string m_type;
/// The text of the variable