/***************************************************************************
 * trackpossubject.h
 *
 * This file is part of KTabEdit, a KDE tabulature editor
 *
 * copyright (C) 2007- the KTabEdit development team <mrgwen@gmail.com>
 ***************************************************************************/

/***************************************************************************
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * See the file COPYING for more information.
 ***************************************************************************/

#ifndef TRACKPOSSUBJECT_H
#define TRACKPOSSUBJECT_H

#include <QList>

class TrackPosObserver;

class TrackPosSubject
{
public:
	TrackPosSubject();
	virtual ~TrackPosSubject();
	
	virtual void attach(TrackPosObserver* o);
	virtual void detach(TrackPosObserver* o);
	
	virtual void notifyPositionUpdated();
	
private:
	typedef QList<TrackPosObserver*>::iterator iterator;
	
	QList<TrackPosObserver*> mObserver;
};

#endif
