00001 /* 00002 * WindowInterface.h 00003 * 00004 * Created on: Feb 24, 2011 00005 * Author: lipari 00006 */ 00007 00008 #ifndef WINDOWINTERFACE_H_ 00009 #define WINDOWINTERFACE_H_ 00010 00011 #include <vector> 00012 #include "ObserverConnector.hpp" 00013 00014 class WindowInterface { 00015 std::vector<ObserverConnectorInt *> observers; 00016 public: 00017 WindowInterface(); 00018 virtual ~WindowInterface(); 00019 void addObserver(ObserverConnectorInt *); 00020 void detachObserver(ObserverConnectorInt *); 00021 void notify(); 00022 }; 00023 00024 #endif /* WINDOWINTERFACE_H_ */